Browse Source

重新生成工时表

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

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

@ -8,9 +8,9 @@ import java.math.BigDecimal;
/** /**
* 组织 com 顶级模块 xm 大模块 core 小模块 <br> * 组织 com 顶级模块 xm 大模块 core 小模块 <br>
* 实体 XmTaskSbillDetail所有属性名: <br> * 实体 XmTaskSbillDetail所有属性名: <br>
* userid,username,ctime,taskId,bizDate,remark,id,sbillId,stime,sstatus,amt,samt,workload,projectId,sworkload,bizMonth,budgetAt,budgetWorkload,initWorkload,quoteAt,quoteWorkload,sschemel,uniPrice,qendTime,qstartTime,actEndTime,actStartTime,oshare,shareFee,sfee,sfeeRate,cpId,cpName,cpType,distUserid,distUsername,shareKey;<br>
* userid,username,ctime,taskId,bizDate,remark,id,sbillId,stime,sstatus,amt,samt,workload,projectId,sworkload,bizMonth,budgetAt,budgetWorkload,initWorkload,quoteAt,quoteWorkload,sschemel,uniPrice,qendTime,qstartTime,actEndTime,actStartTime,oshare,shareFee,sfee,sfeeRate,cpId,cpName,cpType,distUserid,distUsername,shareKey,taskOut,crowd;<br>
* xm_task_sbill_detail 工时登记表的所有字段名: <br> * xm_task_sbill_detail 工时登记表的所有字段名: <br>
* userid,username,ctime,task_id,biz_date,remark,id,sbill_id,stime,sstatus,amt,samt,workload,project_id,sworkload,biz_month,budget_at,budget_workload,init_workload,quote_at,quote_workload,sschemel,uni_price,qend_time,qstart_time,act_end_time,act_start_time,oshare,share_fee,sfee,sfee_rate,cp_id,cp_name,cp_type,dist_userid,dist_username,share_key;<br>
* userid,username,ctime,task_id,biz_date,remark,id,sbill_id,stime,sstatus,amt,samt,workload,project_id,sworkload,biz_month,budget_at,budget_workload,init_workload,quote_at,quote_workload,sschemel,uni_price,qend_time,qstart_time,act_end_time,act_start_time,oshare,share_fee,sfee,sfee_rate,cp_id,cp_name,cp_type,dist_userid,dist_username,share_key,task_out,crowd;<br>
* 当前主键(包括多主键):<br> * 当前主键(包括多主键):<br>
* id;<br> * id;<br>
*/ */
@ -130,6 +130,12 @@ public class XmTaskSbillDetail implements java.io.Serializable {
@ApiModelProperty(notes="分享码",allowEmptyValue=true,example="",allowableValues="") @ApiModelProperty(notes="分享码",allowEmptyValue=true,example="",allowableValues="")
String shareKey; String shareKey;
@ApiModelProperty(notes="是否外购0否1是",allowEmptyValue=true,example="",allowableValues="")
String taskOut;
@ApiModelProperty(notes="是否众包",allowEmptyValue=true,example="",allowableValues="")
String crowd;
/**主键**/ /**主键**/
public XmTaskSbillDetail(String id) { public XmTaskSbillDetail(String id) {
@ -362,6 +368,18 @@ public class XmTaskSbillDetail implements java.io.Serializable {
public void setShareKey(String shareKey) { public void setShareKey(String shareKey) {
this.shareKey = shareKey; this.shareKey = shareKey;
} }
/**
* 是否外购0否1是
**/
public void setTaskOut(String taskOut) {
this.taskOut = taskOut;
}
/**
* 是否众包
**/
public void setCrowd(String crowd) {
this.crowd = crowd;
}
/** /**
* 员工编号 * 员工编号
@ -585,5 +603,17 @@ public class XmTaskSbillDetail implements java.io.Serializable {
public String getShareKey() { public String getShareKey() {
return this.shareKey; return this.shareKey;
} }
/**
* 是否外购0否1是
**/
public String getTaskOut() {
return this.taskOut;
}
/**
* 是否众包
**/
public String getCrowd() {
return this.crowd;
}
} }

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

@ -76,7 +76,7 @@
insert into xm_task_sbill_detail( insert into xm_task_sbill_detail(
<include refid="columns"/> <include refid="columns"/>
) values ( ) values (
#{userid},#{username},#{ctime},#{taskId},#{bizDate},#{remark},#{id},#{sbillId},#{stime},#{sstatus},#{amt},#{samt},#{workload},#{projectId},#{sworkload},#{bizMonth},#{budgetAt},#{budgetWorkload},#{initWorkload},#{quoteAt},#{quoteWorkload},#{sschemel},#{uniPrice},#{qendTime},#{qstartTime},#{actEndTime},#{actStartTime},#{oshare},#{shareFee},#{sfee},#{sfeeRate},#{cpId},#{cpName},#{cpType},#{distUserid},#{distUsername},#{shareKey}
#{userid},#{username},#{ctime},#{taskId},#{bizDate},#{remark},#{id},#{sbillId},#{stime},#{sstatus},#{amt},#{samt},#{workload},#{projectId},#{sworkload},#{bizMonth},#{budgetAt},#{budgetWorkload},#{initWorkload},#{quoteAt},#{quoteWorkload},#{sschemel},#{uniPrice},#{qendTime},#{qstartTime},#{actEndTime},#{actStartTime},#{oshare},#{shareFee},#{sfee},#{sfeeRate},#{cpId},#{cpName},#{cpType},#{distUserid},#{distUsername},#{shareKey},#{taskOut},#{crowd}
) )
</insert> </insert>
@ -151,7 +151,7 @@
<!--sql片段 列--> <!--sql片段 列-->
<sql id="columns"> <sql id="columns">
userid,username,ctime,task_id,biz_date,remark,id,sbill_id,stime,sstatus,amt,samt,workload,project_id,sworkload,biz_month,budget_at,budget_workload,init_workload,quote_at,quote_workload,sschemel,uni_price,qend_time,qstart_time,act_end_time,act_start_time,oshare,share_fee,sfee,sfee_rate,cp_id,cp_name,cp_type,dist_userid,dist_username,share_key
userid,username,ctime,task_id,biz_date,remark,id,sbill_id,stime,sstatus,amt,samt,workload,project_id,sworkload,biz_month,budget_at,budget_workload,init_workload,quote_at,quote_workload,sschemel,uni_price,qend_time,qstart_time,act_end_time,act_start_time,oshare,share_fee,sfee,sfee_rate,cp_id,cp_name,cp_type,dist_userid,dist_username,share_key,task_out,crowd
</sql> </sql>
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> <!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS-->
@ -193,6 +193,8 @@
<if test="distUserid != null and distUserid != ''"> and res.dist_userid = #{distUserid} </if> <if test="distUserid != null and distUserid != ''"> and res.dist_userid = #{distUserid} </if>
<if test="distUsername != null and distUsername != ''"> and res.dist_username = #{distUsername} </if> <if test="distUsername != null and distUsername != ''"> and res.dist_username = #{distUsername} </if>
<if test="shareKey != null and shareKey != ''"> and res.share_key = #{shareKey} </if> <if test="shareKey != null and shareKey != ''"> and res.share_key = #{shareKey} </if>
<if test="taskOut != null and taskOut != ''"> and res.task_out = #{taskOut} </if>
<if test="crowd != null and crowd != ''"> and res.crowd = #{crowd} </if>
</sql> </sql>
<!--sql片段 更新字段 --> <!--sql片段 更新字段 -->
<sql id="set"> <sql id="set">
@ -231,7 +233,9 @@
cp_type = #{cpType}, cp_type = #{cpType},
dist_userid = #{distUserid}, dist_userid = #{distUserid},
dist_username = #{distUsername}, dist_username = #{distUsername},
share_key = #{shareKey}
share_key = #{shareKey},
task_out = #{taskOut},
crowd = #{crowd}
</sql> </sql>
<sql id="someFieldSet"> <sql id="someFieldSet">
<if test="userid != null and userid != ''"> userid = #{userid}, </if> <if test="userid != null and userid != ''"> userid = #{userid}, </if>
@ -270,6 +274,8 @@
<if test="distUserid != null and distUserid != ''"> dist_userid = #{distUserid}, </if> <if test="distUserid != null and distUserid != ''"> dist_userid = #{distUserid}, </if>
<if test="distUsername != null and distUsername != ''"> dist_username = #{distUsername}, </if> <if test="distUsername != null and distUsername != ''"> dist_username = #{distUsername}, </if>
<if test="shareKey != null and shareKey != ''"> share_key = #{shareKey}, </if> <if test="shareKey != null and shareKey != ''"> share_key = #{shareKey}, </if>
<if test="taskOut != null and taskOut != ''"> task_out = #{taskOut}, </if>
<if test="crowd != null and crowd != ''"> crowd = #{crowd}, </if>
</sql> </sql>
<!--sql片段 批量更新 --> <!--sql片段 批量更新 -->
<sql id="batchSet"> <sql id="batchSet">
@ -308,6 +314,8 @@
cp_type = #{item.cpType}, cp_type = #{item.cpType},
dist_userid = #{item.distUserid}, dist_userid = #{item.distUserid},
dist_username = #{item.distUsername}, dist_username = #{item.distUsername},
share_key = #{item.shareKey}
share_key = #{item.shareKey},
task_out = #{item.taskOut},
crowd = #{item.crowd}
</sql> </sql>
</mapper> </mapper>
Loading…
Cancel
Save