|
|
@ -129,10 +129,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="applyUser != null and applyUser != ''"> and s.apply_user = #{applyUser}</if> |
|
|
|
<if test="applyTime != null and applyTime != ''"> and s.apply_time = #{applyTime}</if> |
|
|
|
<if test="applyTitle != null and applyTitle != ''"> and s.apply_title = #{applyTitle}</if> |
|
|
|
<if test="applyUsers != null and applyUsers != ''"> and s.apply_user in |
|
|
|
<foreach item="user" index="index" collection="applyUsers" open="(" separator="," close=")"> |
|
|
|
#{user} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by s.audit_status asc, s.create_time desc |
|
|
|
order by s.create_time desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectSysSalesOrderById" parameterType="Long" resultMap="SysSalesOrderResult"> |
|
|
|
<include refid="selectSysSalesOrderVo"/> |
|
|
|
where sales_order_id = #{salesOrderId} |
|
|
@ -203,6 +207,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="applyTime != null">apply_time,</if> |
|
|
|
<if test="applyTitle != null">apply_title,</if> |
|
|
|
<if test="createTime!= null">create_time,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
first_add_time, |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
@ -264,6 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="applyTime != null">#{applyTime},</if> |
|
|
|
<if test="applyTitle != null">#{applyTitle},</if> |
|
|
|
<if test="createTime!= null">#{createTime},</if> |
|
|
|
<if test="creatBy != null">#{creatBy},</if> |
|
|
|
now() |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
@ -330,6 +336,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
|
<if test="applyTitle != null">apply_title = #{applyTitle},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
update_info_time = now() |
|
|
|
</trim> |
|
|
|
where sales_order_id = #{salesOrderId} |
|
|
@ -398,6 +405,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
|
<if test="applyTitle != null">apply_title = #{applyTitle},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
</trim> |
|
|
|
where sales_order_code = #{salesOrderCode} |
|
|
|
</update> |
|
|
|