diff --git a/xm-core/src/main/java/com/xm/core/entity/XmTaskWorkload.java b/xm-core/src/main/java/com/xm/core/entity/XmTaskWorkload.java index 776d714c..ea574bef 100644 --- a/xm-core/src/main/java/com/xm/core/entity/XmTaskWorkload.java +++ b/xm-core/src/main/java/com/xm/core/entity/XmTaskWorkload.java @@ -1,20 +1,19 @@ package com.xm.core.entity; +import lombok.Data; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; - -import java.math.BigDecimal; import java.util.Date; +import java.math.BigDecimal; /** * 组织 com 顶级模块 xm 大模块 core 小模块
* 实体 XmTaskWorkload所有属性名:
- * userid,username,ctime,taskId,cuserid,bizDate,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,projectId,detailId,branchId,ubranchId;
- * 表 xm_task_workload 工时登记表的所有字段名:
- * userid,username,ctime,task_id,cuserid,biz_date,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,project_id,detail_id,branch_id,ubranch_id;
+ * "userid","员工编号","username","姓名","ctime","创建日期","taskId","业务对象主键任务编号","cuserid","创建人编号","bizDate","业务日期yyyy-MM-dd","wstatus","状态0-待确认,1-已确认,2-无效","remark","备注","ttype","任务类型-关联字典taskType","id","主键","stime","结算提交时间","sstatus","结算状态0-无需结算,1-待结算2-已提交3-已通过4-已结算","workload","工时,一个task_id可多次提交,小时","rworkload","剩余工时(同一天取最后日期更新到task表budget_workload中)","cusername","创建人姓名","projectId","归属项目","branchId","项目归属机构","ubranchId","用户归属机构","sbillId","结算单编号","sbillName","结算单名称","samt","结算工时对应结算金额-根据结算方案计算结算金额","sworkload","结算工时,用于结算,默认=workload","taskOut","是否外购0否1是","crowd","是否众包","feeRemark","费用说明","subjectId","费用科目编号","subjectName","费用科目名称","sschemel","任务结算方案,来自task表、来自数字字典xmTaskSettleSchemel","uniPrice","工时单价,来自task表,根据task_out判断取内部还是外部单价";
* 当前主键(包括多主键):
* id;
*/ + @Data @ApiModel(description="工时登记表") public class XmTaskWorkload implements java.io.Serializable { @@ -69,252 +68,56 @@ public class XmTaskWorkload implements java.io.Serializable { @ApiModelProperty(notes="归属项目",allowEmptyValue=true,example="",allowableValues="") String projectId; - @ApiModelProperty(notes="结算明细编号,指向xm_task_sbill_detail.id",allowEmptyValue=true,example="",allowableValues="") - String detailId; - @ApiModelProperty(notes="项目归属机构",allowEmptyValue=true,example="",allowableValues="") String branchId; @ApiModelProperty(notes="用户归属机构",allowEmptyValue=true,example="",allowableValues="") String ubranchId; + + @ApiModelProperty(notes="结算单编号",allowEmptyValue=true,example="",allowableValues="") + String sbillId; + + @ApiModelProperty(notes="结算单名称",allowEmptyValue=true,example="",allowableValues="") + String sbillName; + + @ApiModelProperty(notes="结算工时对应结算金额-根据结算方案计算结算金额",allowEmptyValue=true,example="",allowableValues="") + BigDecimal samt; + + @ApiModelProperty(notes="结算工时,用于结算,默认=workload",allowEmptyValue=true,example="",allowableValues="") + BigDecimal sworkload; + + @ApiModelProperty(notes="是否外购0否1是",allowEmptyValue=true,example="",allowableValues="") + String taskOut; + + @ApiModelProperty(notes="是否众包",allowEmptyValue=true,example="",allowableValues="") + String crowd; + + @ApiModelProperty(notes="费用说明",allowEmptyValue=true,example="",allowableValues="") + String feeRemark; + + @ApiModelProperty(notes="费用科目编号",allowEmptyValue=true,example="",allowableValues="") + String subjectId; + + @ApiModelProperty(notes="费用科目名称",allowEmptyValue=true,example="",allowableValues="") + String subjectName; + + @ApiModelProperty(notes="任务结算方案,来自task表、来自数字字典xmTaskSettleSchemel",allowEmptyValue=true,example="",allowableValues="") + String sschemel; + + @ApiModelProperty(notes="工时单价,来自task表,根据task_out判断取内部还是外部单价",allowEmptyValue=true,example="",allowableValues="") + BigDecimal uniPrice; - /**主键**/ + /** + *主键 + **/ public XmTaskWorkload(String id) { this.id = id; } - /**工时登记表**/ + /** + * 工时登记表 + **/ public XmTaskWorkload() { } - - /** - * 员工编号 - **/ - public void setUserid(String userid) { - this.userid = userid; - } - /** - * 姓名 - **/ - public void setUsername(String username) { - this.username = username; - } - /** - * 创建日期 - **/ - public void setCtime(Date ctime) { - this.ctime = ctime; - } - /** - * 业务对象主键任务编号 - **/ - public void setTaskId(String taskId) { - this.taskId = taskId; - } - /** - * 创建人编号 - **/ - public void setCuserid(String cuserid) { - this.cuserid = cuserid; - } - /** - * 业务日期yyyy-MM-dd - **/ - public void setBizDate(String bizDate) { - this.bizDate = bizDate; - } - /** - * 状态0-待确认,1-已确认,2-无效 - **/ - public void setWstatus(String wstatus) { - this.wstatus = wstatus; - } - /** - * 备注 - **/ - public void setRemark(String remark) { - this.remark = remark; - } - /** - * 任务类型-关联字典taskType - **/ - public void setTtype(String ttype) { - this.ttype = ttype; - } - /** - * 主键 - **/ - public void setId(String id) { - this.id = id; - } - /** - * 结算提交时间 - **/ - public void setStime(Date stime) { - this.stime = stime; - } - /** - * 结算状态0-无需结算,1-待结算2-已提交3-已通过4-已结算 - **/ - public void setSstatus(String sstatus) { - this.sstatus = sstatus; - } - /** - * 工时,一个task_id可多次提交,小时 - **/ - public void setWorkload(BigDecimal workload) { - this.workload = workload; - } - /** - * 剩余工时(同一天取最后日期更新到task表budget_workload中) - **/ - public void setRworkload(BigDecimal rworkload) { - this.rworkload = rworkload; - } - /** - * 创建人姓名 - **/ - public void setCusername(String cusername) { - this.cusername = cusername; - } - /** - * 归属项目 - **/ - public void setProjectId(String projectId) { - this.projectId = projectId; - } - /** - * 结算明细编号,指向xm_task_sbill_detail.id - **/ - public void setDetailId(String detailId) { - this.detailId = detailId; - } - /** - * 项目归属机构 - **/ - public void setBranchId(String branchId) { - this.branchId = branchId; - } - /** - * 用户归属机构 - **/ - public void setUbranchId(String ubranchId) { - this.ubranchId = ubranchId; - } - - /** - * 员工编号 - **/ - public String getUserid() { - return this.userid; - } - /** - * 姓名 - **/ - public String getUsername() { - return this.username; - } - /** - * 创建日期 - **/ - public Date getCtime() { - return this.ctime; - } - /** - * 业务对象主键任务编号 - **/ - public String getTaskId() { - return this.taskId; - } - /** - * 创建人编号 - **/ - public String getCuserid() { - return this.cuserid; - } - /** - * 业务日期yyyy-MM-dd - **/ - public String getBizDate() { - return this.bizDate; - } - /** - * 状态0-待确认,1-已确认,2-无效 - **/ - public String getWstatus() { - return this.wstatus; - } - /** - * 备注 - **/ - public String getRemark() { - return this.remark; - } - /** - * 任务类型-关联字典taskType - **/ - public String getTtype() { - return this.ttype; - } - /** - * 主键 - **/ - public String getId() { - return this.id; - } - /** - * 结算提交时间 - **/ - public Date getStime() { - return this.stime; - } - /** - * 结算状态0-无需结算,1-待结算2-已提交3-已通过4-已结算 - **/ - public String getSstatus() { - return this.sstatus; - } - /** - * 工时,一个task_id可多次提交,小时 - **/ - public BigDecimal getWorkload() { - return this.workload; - } - /** - * 剩余工时(同一天取最后日期更新到task表budget_workload中) - **/ - public BigDecimal getRworkload() { - return this.rworkload; - } - /** - * 创建人姓名 - **/ - public String getCusername() { - return this.cusername; - } - /** - * 归属项目 - **/ - public String getProjectId() { - return this.projectId; - } - /** - * 结算明细编号,指向xm_task_sbill_detail.id - **/ - public String getDetailId() { - return this.detailId; - } - /** - * 项目归属机构 - **/ - public String getBranchId() { - return this.branchId; - } - /** - * 用户归属机构 - **/ - public String getUbranchId() { - return this.ubranchId; - } } \ No newline at end of file diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml index 9d50d28b..f843696a 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml @@ -284,7 +284,7 @@ insert into xm_task_workload( ) values ( - #{userid},#{username},#{ctime},#{taskId},#{cuserid},#{bizDate},#{wstatus},#{remark},#{ttype},#{id},#{stime},#{sstatus},#{workload},#{rworkload},#{cusername},#{projectId},#{detailId},#{branchId},#{ubranchId} + #{userid},#{username},#{ctime},#{taskId},#{cuserid},#{bizDate},#{wstatus},#{remark},#{ttype},#{id},#{stime},#{sstatus},#{workload},#{rworkload},#{cusername},#{projectId},#{branchId},#{ubranchId},#{sbillId},#{sbillName},#{samt},#{sworkload},#{taskOut},#{crowd},#{feeRemark},#{subjectId},#{subjectName},#{sschemel},#{uniPrice} ) @@ -359,7 +359,7 @@ - userid,username,ctime,task_id,cuserid,biz_date,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,project_id,detail_id,branch_id,ubranch_id + userid,username,ctime,task_id,cuserid,biz_date,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,project_id,branch_id,ubranch_id,sbill_id,sbill_name,samt,sworkload,task_out,crowd,fee_remark,subject_id,subject_name,sschemel,uni_price @@ -380,9 +380,19 @@ and res.rworkload = #{rworkload} and res.cusername = #{cusername} and res.project_id = #{projectId} - and res.detail_id = #{detailId} and res.branch_id = #{branchId} and res.ubranch_id = #{ubranchId} + and res.sbill_id = #{sbillId} + and res.sbill_name = #{sbillName} + and res.samt = #{samt} + and res.sworkload = #{sworkload} + and res.task_out = #{taskOut} + and res.crowd = #{crowd} + and res.fee_remark = #{feeRemark} + and res.subject_id = #{subjectId} + and res.subject_name = #{subjectName} + and res.sschemel = #{sschemel} + and res.uni_price = #{uniPrice} @@ -401,9 +411,19 @@ rworkload = #{rworkload}, cusername = #{cusername}, project_id = #{projectId}, - detail_id = #{detailId}, branch_id = #{branchId}, - ubranch_id = #{ubranchId} + ubranch_id = #{ubranchId}, + sbill_id = #{sbillId}, + sbill_name = #{sbillName}, + samt = #{samt}, + sworkload = #{sworkload}, + task_out = #{taskOut}, + crowd = #{crowd}, + fee_remark = #{feeRemark}, + subject_id = #{subjectId}, + subject_name = #{subjectName}, + sschemel = #{sschemel}, + uni_price = #{uniPrice} userid = #{userid}, @@ -421,9 +441,19 @@ rworkload = #{rworkload}, cusername = #{cusername}, project_id = #{projectId}, - detail_id = #{detailId}, branch_id = #{branchId}, ubranch_id = #{ubranchId}, + sbill_id = #{sbillId}, + sbill_name = #{sbillName}, + samt = #{samt}, + sworkload = #{sworkload}, + task_out = #{taskOut}, + crowd = #{crowd}, + fee_remark = #{feeRemark}, + subject_id = #{subjectId}, + subject_name = #{subjectName}, + sschemel = #{sschemel}, + uni_price = #{uniPrice}, @@ -442,8 +472,18 @@ rworkload = #{item.rworkload}, cusername = #{item.cusername}, project_id = #{item.projectId}, - detail_id = #{item.detailId}, branch_id = #{item.branchId}, - ubranch_id = #{item.ubranchId} + ubranch_id = #{item.ubranchId}, + sbill_id = #{item.sbillId}, + sbill_name = #{item.sbillName}, + samt = #{item.samt}, + sworkload = #{item.sworkload}, + task_out = #{item.taskOut}, + crowd = #{item.crowd}, + fee_remark = #{item.feeRemark}, + subject_id = #{item.subjectId}, + subject_name = #{item.subjectName}, + sschemel = #{item.sschemel}, + uni_price = #{item.uniPrice} \ No newline at end of file