修改精确查询
This commit is contained in:
parent
ea06da2cf9
commit
e27b0bed0b
|
@ -166,7 +166,6 @@ public class WechatController extends BaseController {
|
|||
his.setDept(tAmentPartyAffairs.getDeptName());
|
||||
his.setTarget(tAmentPartyAffairs.getShotName());
|
||||
his.setCommitTime(new Date());
|
||||
his.setDept(tAmentPartyAffairs.getDeptName());
|
||||
his.setRemark(tAmentPartyAffairs.getRemark());
|
||||
his.setFiles(tAmentPartyAffairs.getFiles());
|
||||
tAmentPartyAffairs.setStatus("2");
|
||||
|
|
|
@ -54,9 +54,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<where>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="unit != null and unit != ''"> and a.unit = #{unit}</if>
|
||||
<if test="target != null and target != ''">
|
||||
AND a.target like concat('%', #{target}, '%')
|
||||
</if>
|
||||
<if test="unit != target and target != ''"> and a.target = #{target}</if>
|
||||
<!-- <if test="target != null and target != ''">-->
|
||||
<!-- AND a.target like concat('%', #{target}, '%')-->
|
||||
<!-- </if>-->
|
||||
<if test="demand != null and demand != ''">
|
||||
AND a.demand like concat('%', #{demand}, '%')
|
||||
</if>
|
||||
|
@ -125,6 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="perId != null "> and a.per_id = #{perId}</if>
|
||||
<if test="deptId != null "> and a.dept_id = #{deptId}</if>
|
||||
<if test="branchId != null "> and a.branch_id = #{branchId}</if>
|
||||
order by finish_date
|
||||
</select>
|
||||
|
||||
<select id="approveList" parameterType="TAmentPartyAffairs" resultMap="TAmentPartyAffairsResult">
|
||||
|
|
Loading…
Reference in New Issue