|
|
@@ -28,6 +28,8 @@
|
|
|
<result column="confirm_user" property="confirmUser"/>
|
|
|
<result column="confirm_user_real_name" property="confirmUserRealName"/>
|
|
|
<result column="confirm_date" property="confirmDate"/>
|
|
|
+ <result column="center_confirm_user" property="centerConfirmUser"/>
|
|
|
+ <result column="center_confirm_date" property="centerConfirmDate"/>
|
|
|
<result column="remark" property="remark"/>
|
|
|
<result column="submit_state" property="submitState"/>
|
|
|
<result column="del_flag" property="delFlag"/>
|
|
|
@@ -61,6 +63,8 @@
|
|
|
t.operator,
|
|
|
t.confirm_user,
|
|
|
t.confirm_date,
|
|
|
+ t.center_confirm_user,
|
|
|
+ t.center_confirm_date,
|
|
|
t.remark,
|
|
|
t.submit_state,
|
|
|
t.del_flag,
|
|
|
@@ -260,6 +264,8 @@
|
|
|
<if test='null != operator'>operator = #{operator},</if>
|
|
|
<if test='null != confirmUser'>confirm_user = #{confirmUser},</if>
|
|
|
<if test='null != confirmDate'>confirm_date = #{confirmDate},</if>
|
|
|
+ <if test='null != centerConfirmUser'>center_confirm_user = #{centerConfirmUser},</if>
|
|
|
+ <if test='null != centerConfirmDate'>center_confirm_date = #{centerConfirmDate},</if>
|
|
|
<if test='null != remark'>remark = #{remark},</if>
|
|
|
<if test='null != submitState'>submit_state = #{submitState},</if>
|
|
|
<if test='null != delFlag'>del_flag = #{delFlag},</if>
|
|
|
@@ -352,7 +358,16 @@
|
|
|
and t.operator like concat('%', #{operator}, '%')
|
|
|
</if>
|
|
|
<if test="submitState!=null and submitState!=''">
|
|
|
- and t.submit_state = #{submitState}
|
|
|
+ and (
|
|
|
+ t.submit_state = #{submitState}
|
|
|
+ <if test="submitState == '3'">
|
|
|
+ or t.submit_state = '9'
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[<]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ <if test="submitState == '9'">
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[>=]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="createBy!=null and createBy!=''">
|
|
|
and t.create_by=#{createBy}
|
|
|
@@ -385,7 +400,16 @@
|
|
|
<where>
|
|
|
t.del_flag='0'
|
|
|
<if test="submitState!=null and submitState!=''">
|
|
|
- and t.submit_state = #{submitState}
|
|
|
+ and (
|
|
|
+ t.submit_state = #{submitState}
|
|
|
+ <if test="submitState == '3'">
|
|
|
+ or t.submit_state = '9'
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[<]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ <if test="submitState == '9'">
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[>=]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="deptId!=null and deptId!=''">
|
|
|
and v.dept_id=#{deptId}
|
|
|
@@ -432,7 +456,16 @@
|
|
|
<where>
|
|
|
t.del_flag='0'
|
|
|
<if test="submitState!=null and submitState!=''">
|
|
|
- and t.submit_state = #{submitState}
|
|
|
+ and (
|
|
|
+ t.submit_state = #{submitState}
|
|
|
+ <if test="submitState == '3'">
|
|
|
+ or t.submit_state = '9'
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[<]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ <if test="submitState == '9'">
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[>=]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="deptId!=null and deptId!=''">
|
|
|
and v.dept_id=#{deptId}
|
|
|
@@ -473,7 +506,16 @@
|
|
|
<where>
|
|
|
t.del_flag='0'
|
|
|
<if test="submitState!=null and submitState!=''">
|
|
|
- and t.submit_state = #{submitState}
|
|
|
+ and (
|
|
|
+ t.submit_state = #{submitState}
|
|
|
+ <if test="submitState == '3'">
|
|
|
+ or t.submit_state = '9'
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[<]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ <if test="submitState == '9'">
|
|
|
+ or (DATEDIFF(t.confirm_date,NOW()) <![CDATA[>=]]> 3 and t.submit_state = '3')
|
|
|
+ </if>
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="deptId!=null and deptId!=''">
|
|
|
and v.dept_id=#{deptId}
|