|
|
@@ -353,6 +353,9 @@
|
|
|
<if test="createTime!=null">
|
|
|
and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
|
|
|
</if>
|
|
|
+ <if test="submitState==null or submitState==''">
|
|
|
+ and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
<if test="orderBy!=null and orderBy!=''">
|
|
|
order by t.${orderBy}
|
|
|
@@ -398,6 +401,9 @@
|
|
|
<if test="createBy!=null and createBy!=''">
|
|
|
and t.create_by=#{createBy}
|
|
|
</if>
|
|
|
+ <if test="submitState==null or submitState==''">
|
|
|
+ and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -442,6 +448,9 @@
|
|
|
<if test="createBy!=null and createBy!=''">
|
|
|
and t.create_by=#{createBy}
|
|
|
</if>
|
|
|
+ <if test="submitState==null or submitState==''">
|
|
|
+ and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -474,6 +483,9 @@
|
|
|
<if test="createBy!=null and createBy!=''">
|
|
|
and t.create_by=#{createBy}
|
|
|
</if>
|
|
|
+ <if test="submitState==null or submitState==''">
|
|
|
+ and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|