修改精确查询

This commit is contained in:
liuwu 2023-08-31 14:48:24 +08:00
parent ea06da2cf9
commit e27b0bed0b
2 changed files with 5 additions and 4 deletions

View File

@ -166,7 +166,6 @@ public class WechatController extends BaseController {
his.setDept(tAmentPartyAffairs.getDeptName()); his.setDept(tAmentPartyAffairs.getDeptName());
his.setTarget(tAmentPartyAffairs.getShotName()); his.setTarget(tAmentPartyAffairs.getShotName());
his.setCommitTime(new Date()); his.setCommitTime(new Date());
his.setDept(tAmentPartyAffairs.getDeptName());
his.setRemark(tAmentPartyAffairs.getRemark()); his.setRemark(tAmentPartyAffairs.getRemark());
his.setFiles(tAmentPartyAffairs.getFiles()); his.setFiles(tAmentPartyAffairs.getFiles());
tAmentPartyAffairs.setStatus("2"); tAmentPartyAffairs.setStatus("2");

View File

@ -54,9 +54,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
<if test="type != null and type != ''"> and a.type = #{type}</if> <if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="unit != null and unit != ''"> and a.unit = #{unit}</if> <if test="unit != null and unit != ''"> and a.unit = #{unit}</if>
<if test="target != null and target != ''"> <if test="unit != target and target != ''"> and a.target = #{target}</if>
AND a.target like concat('%', #{target}, '%') <!-- <if test="target != null and target != ''">-->
</if> <!-- AND a.target like concat('%', #{target}, '%')-->
<!-- </if>-->
<if test="demand != null and demand != ''"> <if test="demand != null and demand != ''">
AND a.demand like concat('%', #{demand}, '%') AND a.demand like concat('%', #{demand}, '%')
</if> </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="perId != null "> and a.per_id = #{perId}</if>
<if test="deptId != null "> and a.dept_id = #{deptId}</if> <if test="deptId != null "> and a.dept_id = #{deptId}</if>
<if test="branchId != null "> and a.branch_id = #{branchId}</if> <if test="branchId != null "> and a.branch_id = #{branchId}</if>
order by finish_date
</select> </select>
<select id="approveList" parameterType="TAmentPartyAffairs" resultMap="TAmentPartyAffairsResult"> <select id="approveList" parameterType="TAmentPartyAffairs" resultMap="TAmentPartyAffairsResult">