Browse Source

重新生成工时表

master
陈裕财 4 years ago
parent
commit
c741c6f706
  1. 34
      xm-core/src/main/java/com/xm/core/entity/XmTaskWorkload.java
  2. 16
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml

34
xm-core/src/main/java/com/xm/core/entity/XmTaskWorkload.java

@ -8,9 +8,9 @@ import java.math.BigDecimal;
/**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmTaskWorkload所有属性名: <br>
* userid,username,ctime,taskId,cuserid,bizDate,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,projectId,detailId;<br>
* userid,username,ctime,taskId,cuserid,bizDate,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,projectId,detailId,branchId,ubranchId;<br>
* xm_task_workload 工时登记表的所有字段名: <br>
* userid,username,ctime,task_id,cuserid,biz_date,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,project_id,detail_id;<br>
* 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;<br>
* 当前主键(包括多主键):<br>
* id;<br>
*/
@ -71,6 +71,12 @@ public class XmTaskWorkload implements java.io.Serializable {
@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;
/**主键**/
public XmTaskWorkload(String id) {
this.id = id;
@ -182,6 +188,18 @@ public class XmTaskWorkload implements java.io.Serializable {
public void setDetailId(String detailId) {
this.detailId = detailId;
}
/**
* 项目归属机构
**/
public void setBranchId(String branchId) {
this.branchId = branchId;
}
/**
* 用户归属机构
**/
public void setUbranchId(String ubranchId) {
this.ubranchId = ubranchId;
}
/**
* 员工编号
@ -285,5 +303,17 @@ public class XmTaskWorkload implements java.io.Serializable {
public String getDetailId() {
return this.detailId;
}
/**
* 项目归属机构
**/
public String getBranchId() {
return this.branchId;
}
/**
* 用户归属机构
**/
public String getUbranchId() {
return this.ubranchId;
}
}

16
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskWorkloadMapper.xml

@ -263,7 +263,7 @@
insert into xm_task_workload(
<include refid="columns"/>
) values (
#{userid},#{username},#{ctime},#{taskId},#{cuserid},#{bizDate},#{wstatus},#{remark},#{ttype},#{id},#{stime},#{sstatus},#{workload},#{rworkload},#{cusername},#{projectId},#{detailId}
#{userid},#{username},#{ctime},#{taskId},#{cuserid},#{bizDate},#{wstatus},#{remark},#{ttype},#{id},#{stime},#{sstatus},#{workload},#{rworkload},#{cusername},#{projectId},#{detailId},#{branchId},#{ubranchId}
)
</insert>
@ -338,7 +338,7 @@
<!--sql片段 列-->
<sql id="columns">
userid,username,ctime,task_id,cuserid,biz_date,wstatus,remark,ttype,id,stime,sstatus,workload,rworkload,cusername,project_id,detail_id
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
</sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -360,6 +360,8 @@
<if test="cusername != null and cusername != ''"> and res.cusername = #{cusername} </if>
<if test="projectId != null and projectId != ''"> and res.project_id = #{projectId} </if>
<if test="detailId != null and detailId != ''"> and res.detail_id = #{detailId} </if>
<if test="branchId != null and branchId != ''"> and res.branch_id = #{branchId} </if>
<if test="ubranchId != null and ubranchId != ''"> and res.ubranch_id = #{ubranchId} </if>
</sql>
<!--sql片段 更新字段 -->
<sql id="set">
@ -378,7 +380,9 @@
rworkload = #{rworkload},
cusername = #{cusername},
project_id = #{projectId},
detail_id = #{detailId}
detail_id = #{detailId},
branch_id = #{branchId},
ubranch_id = #{ubranchId}
</sql>
<sql id="someFieldSet">
<if test="userid != null and userid != ''"> userid = #{userid}, </if>
@ -397,6 +401,8 @@
<if test="cusername != null and cusername != ''"> cusername = #{cusername}, </if>
<if test="projectId != null and projectId != ''"> project_id = #{projectId}, </if>
<if test="detailId != null and detailId != ''"> detail_id = #{detailId}, </if>
<if test="branchId != null and branchId != ''"> branch_id = #{branchId}, </if>
<if test="ubranchId != null and ubranchId != ''"> ubranch_id = #{ubranchId}, </if>
</sql>
<!--sql片段 批量更新 -->
<sql id="batchSet">
@ -415,6 +421,8 @@
rworkload = #{item.rworkload},
cusername = #{item.cusername},
project_id = #{item.projectId},
detail_id = #{item.detailId}
detail_id = #{item.detailId},
branch_id = #{item.branchId},
ubranch_id = #{item.ubranchId}
</sql>
</mapper>
Loading…
Cancel
Save