资金账户信息

beetlsql3-dev
Mlxa0324 2 years ago
parent 0cccff0c27
commit c549e29b22

@ -8,26 +8,26 @@ CREATE TABLE `student_account_asset_allocation` (
`student_id` bigint(20) DEFAULT NULL COMMENT '学生ID',
`application_id` bigint(20) DEFAULT NULL COMMENT '应用ID',
`universities_colleges_id` bigint(20) DEFAULT NULL COMMENT '院校ID',
`name` decimal(15,0) DEFAULT NULL COMMENT '账户名称',
`name` varchar(100) DEFAULT NULL COMMENT '账户名称',
`state` tinyint(2) DEFAULT NULL COMMENT '账户开通状态 1未开通 2已开通',
`initial_capital` decimal(15,0) DEFAULT NULL COMMENT '期初资金',
`available_funds` decimal(15,0) DEFAULT NULL COMMENT '可用资金',
`initial_capital` decimal(15,2) DEFAULT NULL COMMENT '期初资金',
`available_funds` decimal(15,2) DEFAULT NULL COMMENT '可用资金',
`into_account` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '转入账户',
`transfer_amount` decimal(15,0) DEFAULT NULL COMMENT '转账金额',
`transferIn_amount` decimal(15,0) DEFAULT NULL COMMENT '转入金额',
`transfer_out_amount` decimal(15,0) DEFAULT NULL COMMENT '转出金额',
`initial_investment_capital` decimal(15,0) DEFAULT NULL COMMENT '期初投资资金',
`borrowed_funds` decimal(15,0) DEFAULT NULL COMMENT '借入资金',
`investment_funds` decimal(15,0) DEFAULT NULL COMMENT '投资资金',
`investment_value` decimal(15,0) DEFAULT NULL COMMENT '投资市值',
`investment_income` decimal(15,0) DEFAULT NULL COMMENT '投资收益',
`total_assets_of_sub_accounts` decimal(15,0) DEFAULT NULL COMMENT '子账户总资产',
`asset_Investment` decimal(15,0) DEFAULT NULL COMMENT '总资产投资收益率',
`return_on_equity` decimal(15,0) DEFAULT NULL COMMENT '净资产收益率',
`transfer_amount` decimal(15,2) DEFAULT NULL COMMENT '转账金额',
`transferIn_amount` decimal(15,2) DEFAULT NULL COMMENT '转入金额',
`transfer_out_amount` decimal(15,2) DEFAULT NULL COMMENT '转出金额',
`initial_investment_capital` decimal(15,2) DEFAULT NULL COMMENT '期初投资资金',
`borrowed_funds` decimal(15,2) DEFAULT NULL COMMENT '借入资金',
`investment_funds` decimal(15,2) DEFAULT NULL COMMENT '投资资金',
`investment_value` decimal(15,2) DEFAULT NULL COMMENT '投资市值',
`investment_income` decimal(15,2) DEFAULT NULL COMMENT '投资收益',
`total_assets_of_sub_accounts` decimal(15,2) DEFAULT NULL COMMENT '子账户总资产',
`asset_Investment` decimal(15,2) DEFAULT NULL COMMENT '总资产投资收益率',
`return_on_equity` decimal(15,2) DEFAULT NULL COMMENT '净资产收益率',
`is_update` tinyint(2) DEFAULT NULL COMMENT '是否给予初始值 1未给 2已给',
`amount_frozen` decimal(15,0) DEFAULT NULL COMMENT '冻结金额',
`amount_frozen` decimal(15,2) DEFAULT NULL COMMENT '冻结金额',
`update_version` bigint(20) DEFAULT NULL COMMENT '乐观锁',
`update_by` bigint(20) DEFAULT NULL COMMENT '修改人',
`update_by` varchar(100) DEFAULT NULL COMMENT '修改人',
`update_time` datetime DEFAULT NULL COMMENT '修改时间',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`is_del` tinyint(2) DEFAULT '0' COMMENT '是否删除 1正常2删除',

@ -1,14 +1,14 @@
package com.ibeetl.jlw.entity;
import javax.validation.constraints.NotNull;
import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;
import org.beetl.sql.annotation.entity.*;
import com.ibeetl.admin.core.util.ValidateConfig;
import lombok.Data;
import org.beetl.sql.annotation.builder.UpdateTime;
import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.annotation.entity.Version;
import com.ibeetl.admin.core.annotation.Dict;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
@ -16,6 +16,7 @@ import java.util.Date;
*
* gen by Spring Boot2 Admin 2023-03-05
*/
@Data
public class StudentAccountAssetAllocation extends BaseEntity{
//主键ID
@ -42,7 +43,7 @@ public class StudentAccountAssetAllocation extends BaseEntity{
//账户名称
private Long name ;
private String name ;
//账户开通状态 1未开通 2已开通
@ -50,11 +51,11 @@ public class StudentAccountAssetAllocation extends BaseEntity{
//期初资金
private Long initialCapital ;
private BigDecimal initialCapital ;
//可用资金
private Long availableFunds ;
private BigDecimal availableFunds ;
//转入账户
@ -62,47 +63,47 @@ public class StudentAccountAssetAllocation extends BaseEntity{
//转账金额
private Long transferAmount ;
private BigDecimal transferAmount ;
//转入金额
private Long transferinAmount ;
private BigDecimal transferinAmount ;
//转出金额
private Long transferOutAmount ;
private BigDecimal transferOutAmount ;
//期初投资资金
private Long initialInvestmentCapital ;
private BigDecimal initialInvestmentCapital ;
//借入资金
private Long borrowedFunds ;
private BigDecimal borrowedFunds ;
//投资资金
private Long investmentFunds ;
private BigDecimal investmentFunds ;
//投资市值
private Long investmentValue ;
private BigDecimal investmentValue ;
//投资收益
private Long investmentIncome ;
private BigDecimal investmentIncome ;
//子账户总资产
private Long totalAssetsOfSubAccounts ;
private BigDecimal totalAssetsOfSubAccounts ;
//总资产投资收益率
private Long assetInvestment ;
private BigDecimal assetInvestment ;
//净资产收益率
private Long returnOnEquity ;
private BigDecimal returnOnEquity ;
//是否给予初始值 1未给 2已给
@ -110,18 +111,19 @@ public class StudentAccountAssetAllocation extends BaseEntity{
//冻结金额
private Long amountFrozen ;
private BigDecimal amountFrozen ;
//乐观锁
@Version
private Long updateVersion ;
//修改人
private Long updateBy ;
private String updateBy ;
//修改时间
@UpdateTime
private Date updateTime ;
//创建时间
@ -141,385 +143,4 @@ public class StudentAccountAssetAllocation extends BaseEntity{
private Long orgId ;
public StudentAccountAssetAllocation(){
}
/**ID
*@return
*/
public Long getId(){
return id;
}
/**ID
*@param id
*/
public void setId(Long id){
this.id = id;
}
/**ID
*@return
*/
public Long getStudentId(){
return studentId;
}
/**ID
*@param studentId
*/
public void setStudentId(Long studentId){
this.studentId = studentId;
}
/**ID
*@return
*/
public Long getApplicationId(){
return applicationId;
}
/**ID
*@param applicationId
*/
public void setApplicationId(Long applicationId){
this.applicationId = applicationId;
}
/**ID
*@return
*/
public Long getUniversitiesCollegesId(){
return universitiesCollegesId;
}
/**ID
*@param universitiesCollegesId
*/
public void setUniversitiesCollegesId(Long universitiesCollegesId){
this.universitiesCollegesId = universitiesCollegesId;
}
/**
*@return
*/
public Long getName(){
return name;
}
/**
*@param name
*/
public void setName(Long name){
this.name = name;
}
/** 1 2
*@return
*/
public Integer getState(){
return state;
}
/** 1 2
*@param state
*/
public void setState(Integer state){
this.state = state;
}
/**
*@return
*/
public Long getInitialCapital(){
return initialCapital;
}
/**
*@param initialCapital
*/
public void setInitialCapital(Long initialCapital){
this.initialCapital = initialCapital;
}
/**
*@return
*/
public Long getAvailableFunds(){
return availableFunds;
}
/**
*@param availableFunds
*/
public void setAvailableFunds(Long availableFunds){
this.availableFunds = availableFunds;
}
/**
*@return
*/
public String getIntoAccount(){
return intoAccount;
}
/**
*@param intoAccount
*/
public void setIntoAccount(String intoAccount){
this.intoAccount = intoAccount;
}
/**
*@return
*/
public Long getTransferAmount(){
return transferAmount;
}
/**
*@param transferAmount
*/
public void setTransferAmount(Long transferAmount){
this.transferAmount = transferAmount;
}
/**
*@return
*/
public Long getTransferinAmount(){
return transferinAmount;
}
/**
*@param transferinAmount
*/
public void setTransferinAmount(Long transferinAmount){
this.transferinAmount = transferinAmount;
}
/**
*@return
*/
public Long getTransferOutAmount(){
return transferOutAmount;
}
/**
*@param transferOutAmount
*/
public void setTransferOutAmount(Long transferOutAmount){
this.transferOutAmount = transferOutAmount;
}
/**
*@return
*/
public Long getInitialInvestmentCapital(){
return initialInvestmentCapital;
}
/**
*@param initialInvestmentCapital
*/
public void setInitialInvestmentCapital(Long initialInvestmentCapital){
this.initialInvestmentCapital = initialInvestmentCapital;
}
/**
*@return
*/
public Long getBorrowedFunds(){
return borrowedFunds;
}
/**
*@param borrowedFunds
*/
public void setBorrowedFunds(Long borrowedFunds){
this.borrowedFunds = borrowedFunds;
}
/**
*@return
*/
public Long getInvestmentFunds(){
return investmentFunds;
}
/**
*@param investmentFunds
*/
public void setInvestmentFunds(Long investmentFunds){
this.investmentFunds = investmentFunds;
}
/**
*@return
*/
public Long getInvestmentValue(){
return investmentValue;
}
/**
*@param investmentValue
*/
public void setInvestmentValue(Long investmentValue){
this.investmentValue = investmentValue;
}
/**
*@return
*/
public Long getInvestmentIncome(){
return investmentIncome;
}
/**
*@param investmentIncome
*/
public void setInvestmentIncome(Long investmentIncome){
this.investmentIncome = investmentIncome;
}
/**
*@return
*/
public Long getTotalAssetsOfSubAccounts(){
return totalAssetsOfSubAccounts;
}
/**
*@param totalAssetsOfSubAccounts
*/
public void setTotalAssetsOfSubAccounts(Long totalAssetsOfSubAccounts){
this.totalAssetsOfSubAccounts = totalAssetsOfSubAccounts;
}
/**
*@return
*/
public Long getAssetInvestment(){
return assetInvestment;
}
/**
*@param assetInvestment
*/
public void setAssetInvestment(Long assetInvestment){
this.assetInvestment = assetInvestment;
}
/**
*@return
*/
public Long getReturnOnEquity(){
return returnOnEquity;
}
/**
*@param returnOnEquity
*/
public void setReturnOnEquity(Long returnOnEquity){
this.returnOnEquity = returnOnEquity;
}
/** 1 2
*@return
*/
public Integer getIsUpdate(){
return isUpdate;
}
/** 1 2
*@param isUpdate
*/
public void setIsUpdate(Integer isUpdate){
this.isUpdate = isUpdate;
}
/**
*@return
*/
public Long getAmountFrozen(){
return amountFrozen;
}
/**
*@param amountFrozen
*/
public void setAmountFrozen(Long amountFrozen){
this.amountFrozen = amountFrozen;
}
/**
*@return
*/
public Long getUpdateVersion(){
return updateVersion;
}
/**
*@param updateVersion
*/
public void setUpdateVersion(Long updateVersion){
this.updateVersion = updateVersion;
}
/**
*@return
*/
public Long getUpdateBy(){
return updateBy;
}
/**
*@param updateBy
*/
public void setUpdateBy(Long updateBy){
this.updateBy = updateBy;
}
/**
*@return
*/
public Date getUpdateTime(){
return updateTime;
}
/**
*@param updateTime
*/
public void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
*@return
*/
public Date getCreateTime(){
return createTime;
}
/**
*@param createTime
*/
public void setCreateTime(Date createTime){
this.createTime = createTime;
}
/** 12
*@return
*/
public Integer getIsDel(){
return isDel;
}
/** 12
*@param isDel
*/
public void setIsDel(Integer isDel){
this.isDel = isDel;
}
/**ID
*@return
*/
public Long getUserId(){
return userId;
}
/**ID
*@param userId
*/
public void setUserId(Long userId){
this.userId = userId;
}
/**ID
*@return
*/
public Long getOrgId(){
return orgId;
}
/**ID
*@param orgId
*/
public void setOrgId(Long orgId){
this.orgId = orgId;
}
}

@ -159,6 +159,15 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
}
}
/**
* : <br>
* tokenupdateVersion
*
* @param applicationToken
* @param param
* @Author: 87966
* @Date: 2023/3/6 16:31
*/
public void updateByApplicationToken(@NotBlank(message = "applicationToken 传递的token不能为空") String applicationToken, StudentAccountAssetAllocationQuery param) {
// 获取资金账户信息
@ -166,6 +175,8 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
Assert.isTrue(accountAssetAllocationList.size() == 1, "无法对多个账户进行修改操作!");
Assert.notNull(param.getUpdateVersion(), "更新操作updateVersion 为必传项!");
// 主键拿过来
param.setId(accountAssetAllocationList.get(0).getId());
@ -173,11 +184,14 @@ public class StudentAccountAssetAllocationService extends CoreBaseService<Studen
}
/**
* : <br>
* token
*
* @param applicationToken token
* @param param
* @return
* @param param
* @return {@link List< StudentAccountAssetAllocation>}
* @Author: 87966
* @Date: 2023/3/6 16:32
*/
public List<StudentAccountAssetAllocation> getByApplicationToken(@NotBlank(message = "applicationToken 传递的token不能为空") String applicationToken, StudentAccountAssetAllocationQuery param) {

@ -1,12 +1,10 @@
package com.ibeetl.jlw.web.query;
import cn.jlw.validate.ValidateConfig;
import com.ibeetl.jlw.entity.StudentAccountAssetAllocation;
import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import com.ibeetl.jlw.entity.StudentAccountAssetAllocation;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
@ -15,6 +13,7 @@ import java.util.Date;
/**
*
*/
@Data
public class StudentAccountAssetAllocationQuery extends PageParam {
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
@Query(name = "主键ID", display = false)
@ -26,45 +25,45 @@ public class StudentAccountAssetAllocationQuery extends PageParam {
@Query(name = "院校ID", display = true,type=Query.TYPE_DICT,dict="universities_colleges.universities_colleges_name.universities_colleges_status=1")
private Long universitiesCollegesId;
@Query(name = "账户名称", display = false)
private Long name;
private String name;
@Query(name = "账户开通状态 1未开通 2已开通", display = true)
private Integer state;
@Query(name = "期初资金", display = false)
private Long initialCapital;
private BigDecimal initialCapital;
@Query(name = "可用资金", display = false)
private Long availableFunds;
private BigDecimal availableFunds;
@Query(name = "转入账户", display = false)
private String intoAccount;
@Query(name = "转账金额", display = false)
private Long transferAmount;
private BigDecimal transferAmount;
@Query(name = "转入金额", display = false)
private Long transferinAmount;
private BigDecimal transferinAmount;
@Query(name = "转出金额", display = false)
private Long transferOutAmount;
private BigDecimal transferOutAmount;
@Query(name = "期初投资资金", display = false)
private Long initialInvestmentCapital;
private BigDecimal initialInvestmentCapital;
@Query(name = "借入资金", display = false)
private Long borrowedFunds;
private BigDecimal borrowedFunds;
@Query(name = "投资资金", display = false)
private Long investmentFunds;
private BigDecimal investmentFunds;
@Query(name = "投资市值", display = false)
private Long investmentValue;
private BigDecimal investmentValue;
@Query(name = "投资收益", display = false)
private Long investmentIncome;
private BigDecimal investmentIncome;
@Query(name = "子账户总资产", display = false)
private Long totalAssetsOfSubAccounts;
private BigDecimal totalAssetsOfSubAccounts;
@Query(name = "总资产投资收益率", display = false)
private Long assetInvestment;
private BigDecimal assetInvestment;
@Query(name = "净资产收益率", display = false)
private Long returnOnEquity;
private BigDecimal returnOnEquity;
@Query(name = "是否给予初始值 1未给 2已给", display = false)
private Integer isUpdate;
@Query(name = "冻结金额", display = false)
private Long amountFrozen;
private BigDecimal amountFrozen;
@Query(name = "乐观锁", display = false)
private Long updateVersion;
@Query(name = "修改人", display = false)
private Long updateBy;
private String updateBy;
@Query(name = "修改时间", display = false)
private Date updateTime;
@Query(name = "创建时间", display = false)
@ -86,181 +85,6 @@ public class StudentAccountAssetAllocationQuery extends PageParam {
private String _given;//指定更新的特定字段,多个逗号隔开
public Long getId(){
return id;
}
public void setId(Long id ){
this.id = id;
}
public Long getStudentId(){
return studentId;
}
public void setStudentId(Long studentId ){
this.studentId = studentId;
}
public Long getApplicationId(){
return applicationId;
}
public void setApplicationId(Long applicationId ){
this.applicationId = applicationId;
}
public Long getUniversitiesCollegesId(){
return universitiesCollegesId;
}
public void setUniversitiesCollegesId(Long universitiesCollegesId ){
this.universitiesCollegesId = universitiesCollegesId;
}
public Long getName(){
return name;
}
public void setName(Long name ){
this.name = name;
}
public Integer getState(){
return state;
}
public void setState(Integer state ){
this.state = state;
}
public Long getInitialCapital(){
return initialCapital;
}
public void setInitialCapital(Long initialCapital ){
this.initialCapital = initialCapital;
}
public Long getAvailableFunds(){
return availableFunds;
}
public void setAvailableFunds(Long availableFunds ){
this.availableFunds = availableFunds;
}
public String getIntoAccount(){
return intoAccount;
}
public void setIntoAccount(String intoAccount ){
this.intoAccount = intoAccount;
}
public Long getTransferAmount(){
return transferAmount;
}
public void setTransferAmount(Long transferAmount ){
this.transferAmount = transferAmount;
}
public Long getTransferinAmount(){
return transferinAmount;
}
public void setTransferinAmount(Long transferinAmount ){
this.transferinAmount = transferinAmount;
}
public Long getTransferOutAmount(){
return transferOutAmount;
}
public void setTransferOutAmount(Long transferOutAmount ){
this.transferOutAmount = transferOutAmount;
}
public Long getInitialInvestmentCapital(){
return initialInvestmentCapital;
}
public void setInitialInvestmentCapital(Long initialInvestmentCapital ){
this.initialInvestmentCapital = initialInvestmentCapital;
}
public Long getBorrowedFunds(){
return borrowedFunds;
}
public void setBorrowedFunds(Long borrowedFunds ){
this.borrowedFunds = borrowedFunds;
}
public Long getInvestmentFunds(){
return investmentFunds;
}
public void setInvestmentFunds(Long investmentFunds ){
this.investmentFunds = investmentFunds;
}
public Long getInvestmentValue(){
return investmentValue;
}
public void setInvestmentValue(Long investmentValue ){
this.investmentValue = investmentValue;
}
public Long getInvestmentIncome(){
return investmentIncome;
}
public void setInvestmentIncome(Long investmentIncome ){
this.investmentIncome = investmentIncome;
}
public Long getTotalAssetsOfSubAccounts(){
return totalAssetsOfSubAccounts;
}
public void setTotalAssetsOfSubAccounts(Long totalAssetsOfSubAccounts ){
this.totalAssetsOfSubAccounts = totalAssetsOfSubAccounts;
}
public Long getAssetInvestment(){
return assetInvestment;
}
public void setAssetInvestment(Long assetInvestment ){
this.assetInvestment = assetInvestment;
}
public Long getReturnOnEquity(){
return returnOnEquity;
}
public void setReturnOnEquity(Long returnOnEquity ){
this.returnOnEquity = returnOnEquity;
}
public Integer getIsUpdate(){
return isUpdate;
}
public void setIsUpdate(Integer isUpdate ){
this.isUpdate = isUpdate;
}
public Long getAmountFrozen(){
return amountFrozen;
}
public void setAmountFrozen(Long amountFrozen ){
this.amountFrozen = amountFrozen;
}
public Long getUpdateVersion(){
return updateVersion;
}
public void setUpdateVersion(Long updateVersion ){
this.updateVersion = updateVersion;
}
public Long getUpdateBy(){
return updateBy;
}
public void setUpdateBy(Long updateBy ){
this.updateBy = updateBy;
}
public Date getUpdateTime(){
return updateTime;
}
public void setUpdateTime(Date updateTime ){
this.updateTime = updateTime;
}
public Date getCreateTime(){
return createTime;
}
public void setCreateTime(Date createTime ){
this.createTime = createTime;
}
public Integer getIsDel(){
return isDel;
}
public void setIsDel(Integer isDel ){
this.isDel = isDel;
}
public Long getUserId(){
return userId;
}
public void setUserId(Long userId ){
this.userId = userId;
}
public Long getOrgId(){
return orgId;
}
public void setOrgId(Long orgId ){
this.orgId = orgId;
}
public StudentAccountAssetAllocation pojo(){
StudentAccountAssetAllocation pojo = new StudentAccountAssetAllocation();
pojo.setId(this.getId());
@ -294,47 +118,4 @@ public class StudentAccountAssetAllocationQuery extends PageParam {
pojo.setOrgId(this.getOrgId());
return pojo;
}
public String getStudentIdPlural(){
return studentIdPlural;
}
public void setStudentIdPlural(String studentIdPlural){
this.studentIdPlural = studentIdPlural;
}
public String getApplicationIdPlural(){
return applicationIdPlural;
}
public void setApplicationIdPlural(String applicationIdPlural){
this.applicationIdPlural = applicationIdPlural;
}
public String getUniversitiesCollegesIdPlural(){
return universitiesCollegesIdPlural;
}
public void setUniversitiesCollegesIdPlural(String universitiesCollegesIdPlural){
this.universitiesCollegesIdPlural = universitiesCollegesIdPlural;
}
public String getUserIdPlural(){
return userIdPlural;
}
public void setUserIdPlural(String userIdPlural){
this.userIdPlural = userIdPlural;
}
public String getOrgIdPlural(){
return orgIdPlural;
}
public void setOrgIdPlural(String orgIdPlural){
this.orgIdPlural = orgIdPlural;
}
public String getStudentAccountAssetAllocationJsonStr(){
return studentAccountAssetAllocationJsonStr;
}
public void setStudentAccountAssetAllocationJsonStr(String studentAccountAssetAllocationJsonStr ){
this.studentAccountAssetAllocationJsonStr = studentAccountAssetAllocationJsonStr;
}
public String get_given() {
return _given;
}
public void set_given(String _given) {
this._given = _given;
}
}

Loading…
Cancel
Save