|
|
|
@ -99,7 +99,7 @@ |
|
|
|
insert into xm_product( |
|
|
|
<include refid="columns"/> |
|
|
|
) values ( |
|
|
|
#{id},#{productName},#{branchId},#{remark},#{version},#{pmUserid},#{pmUsername},#{ctime},#{deptid},#{pstatus},#{startTime},#{endTime},#{deptName},#{admUserid},#{admUsername},#{assistantUserid},#{assistantUsername},#{bizProcInstId},#{bizFlowState},#{isTpl},#{baselineId},#{baseTime} |
|
|
|
#{id},#{productName},#{branchId},#{remark},#{version},#{pmUserid},#{pmUsername},#{ctime},#{deptid},#{pstatus},#{startTime},#{endTime},#{deptName},#{admUserid},#{admUsername},#{assistantUserid},#{assistantUsername},#{bizProcInstId},#{bizFlowState},#{isTpl},#{baselineId},#{baseTime},#{code} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -162,7 +162,7 @@ |
|
|
|
|
|
|
|
<!--sql片段 列--> |
|
|
|
<sql id="columns"> |
|
|
|
id,product_name,branch_id,remark,version,pm_userid,pm_username,ctime,deptid,pstatus,start_time,end_time,dept_name,adm_userid,adm_username,assistant_userid,assistant_username,biz_proc_inst_id,biz_flow_state,is_tpl,baseline_id,base_time |
|
|
|
id,product_name,branch_id,remark,version,pm_userid,pm_username,ctime,deptid,pstatus,start_time,end_time,dept_name,adm_userid,adm_username,assistant_userid,assistant_username,biz_proc_inst_id,biz_flow_state,is_tpl,baseline_id,base_time,code |
|
|
|
</sql> |
|
|
|
|
|
|
|
<!--sql片段 动态条件 YYYY-MM-DD HH24:MI:SS--> |
|
|
|
@ -189,6 +189,7 @@ |
|
|
|
<if test="isTpl != null and isTpl != ''"> and res.is_tpl = #{isTpl} </if> |
|
|
|
<if test="baselineId != null and baselineId != ''"> and res.baseline_id = #{baselineId} </if> |
|
|
|
<if test="baseTime != null"> and date_format(res.base_time,'%Y-%m-%d') = date_format(#{baseTime},'%Y-%m-%d') </if> |
|
|
|
<if test="code != null and code != ''"> and res.code = #{code} </if> |
|
|
|
</sql> |
|
|
|
<!--sql片段 更新字段 --> |
|
|
|
<sql id="set"> |
|
|
|
@ -212,7 +213,8 @@ |
|
|
|
biz_flow_state = #{bizFlowState}, |
|
|
|
is_tpl = #{isTpl}, |
|
|
|
baseline_id = #{baselineId}, |
|
|
|
base_time = #{baseTime} |
|
|
|
base_time = #{baseTime}, |
|
|
|
code = #{code} |
|
|
|
</sql> |
|
|
|
<sql id="someFieldSet"> |
|
|
|
<if test="productName != null and productName != ''"> product_name = #{productName}, </if> |
|
|
|
@ -236,6 +238,7 @@ |
|
|
|
<if test="isTpl != null and isTpl != ''"> is_tpl = #{isTpl}, </if> |
|
|
|
<if test="baselineId != null and baselineId != ''"> baseline_id = #{baselineId}, </if> |
|
|
|
<if test="baseTime != null"> base_time = #{baseTime}, </if> |
|
|
|
<if test="code != null and code != ''"> code = #{code}, </if> |
|
|
|
</sql> |
|
|
|
<!--sql片段 批量更新 --> |
|
|
|
<sql id="batchSet"> |
|
|
|
@ -259,6 +262,7 @@ |
|
|
|
biz_flow_state = #{item.bizFlowState}, |
|
|
|
is_tpl = #{item.isTpl}, |
|
|
|
baseline_id = #{item.baselineId}, |
|
|
|
base_time = #{item.baseTime} |
|
|
|
base_time = #{item.baseTime}, |
|
|
|
code = #{item.code} |
|
|
|
</sql> |
|
|
|
</mapper> |