@ -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}
#{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}
)
)
</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
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
</sql>
</sql>
<!-- sql片段 动态条件 YYYY - MM - DD HH24:MI:SS -->
<!-- sql片段 动态条件 YYYY - MM - DD HH24:MI:SS -->
@ -190,6 +190,9 @@
<if test= "cpId != null and cpId != ''" > and res.cp_id = #{cpId} </if>
<if test= "cpId != null and cpId != ''" > and res.cp_id = #{cpId} </if>
<if test= "cpName != null and cpName != ''" > and res.cp_name = #{cpName} </if>
<if test= "cpName != null and cpName != ''" > and res.cp_name = #{cpName} </if>
<if test= "cpType != null and cpType != ''" > and res.cp_type = #{cpType} </if>
<if test= "cpType != null and cpType != ''" > and res.cp_type = #{cpType} </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= "shareKey != null and shareKey != ''" > and res.share_key = #{shareKey} </if>
</sql>
</sql>
<!-- sql片段 更新字段 -->
<!-- sql片段 更新字段 -->
<sql id= "set" >
<sql id= "set" >
@ -225,7 +228,10 @@
sfee_rate = #{sfeeRate},
sfee_rate = #{sfeeRate},
cp_id = #{cpId},
cp_id = #{cpId},
cp_name = #{cpName},
cp_name = #{cpName},
cp_type = #{cpType}
cp_type = #{cpType},
dist_userid = #{distUserid},
dist_username = #{distUsername},
share_key = #{shareKey}
</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>
@ -261,6 +267,9 @@
<if test= "cpId != null and cpId != ''" > cp_id = #{cpId}, </if>
<if test= "cpId != null and cpId != ''" > cp_id = #{cpId}, </if>
<if test= "cpName != null and cpName != ''" > cp_name = #{cpName}, </if>
<if test= "cpName != null and cpName != ''" > cp_name = #{cpName}, </if>
<if test= "cpType != null and cpType != ''" > cp_type = #{cpType}, </if>
<if test= "cpType != null and cpType != ''" > cp_type = #{cpType}, </if>
<if test= "distUserid != null and distUserid != ''" > dist_userid = #{distUserid}, </if>
<if test= "distUsername != null and distUsername != ''" > dist_username = #{distUsername}, </if>
<if test= "shareKey != null and shareKey != ''" > share_key = #{shareKey}, </if>
</sql>
</sql>
<!-- sql片段 批量更新 -->
<!-- sql片段 批量更新 -->
<sql id= "batchSet" >
<sql id= "batchSet" >
@ -296,6 +305,9 @@
sfee_rate = #{item.sfeeRate},
sfee_rate = #{item.sfeeRate},
cp_id = #{item.cpId},
cp_id = #{item.cpId},
cp_name = #{item.cpName},
cp_name = #{item.cpName},
cp_type = #{item.cpType}
cp_type = #{item.cpType},
dist_userid = #{item.distUserid},
dist_username = #{item.distUsername},
share_key = #{item.shareKey}
</sql>
</sql>
</mapper>
</mapper>