|
|
@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
|
<select id="selectEnterpriseComplaintList" parameterType="EnterpriseComplaint" resultMap="EnterpriseComplaintResult"> |
|
|
<select id="selectEnterpriseComplaintList" parameterType="EnterpriseComplaint" resultMap="EnterpriseComplaintResult"> |
|
|
<include refid="selectEnterpriseComplaintVo"/> |
|
|
<include refid="selectEnterpriseComplaintVo"/> |
|
|
<where> |
|
|
<where> |
|
|
<if test="relId != null and relId != ''"> and rel_id = #{relId}</if> |
|
|
<if test="relId != null and relId != ''"> and rel_id = #{relId}</if> |
|
|
<if test="enforceType != null "> and enforce_type = #{enforceType}</if> |
|
|
<if test="enforceType != null "> and enforce_type = #{enforceType}</if> |
|
|
<if test="problemDescription != null and problemDescription != ''"> and problem_description = #{problemDescription}</if> |
|
|
<if test="problemDescription != null and problemDescription != ''"> and problem_description = #{problemDescription}</if> |
|
|
@ -47,6 +47,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY create_time DESC |
|
|
ORDER BY create_time DESC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectEnterpriseComplaintNew" parameterType="EnterpriseComplaint" resultMap="EnterpriseComplaintResult"> |
|
|
|
|
|
select * from enterprise_complaint c left join enforcement_registration r on c.rel_id = r.id |
|
|
|
|
|
<where> |
|
|
|
|
|
<if test="relId != null and relId != ''"> and c.rel_id = #{relId}</if> |
|
|
|
|
|
<if test="enforceType != null "> and c.enforce_type = #{enforceType}</if> |
|
|
|
|
|
<if test="problemDescription != null and problemDescription != ''"> |
|
|
|
|
|
and c.problem_description like concat(concat('%',#{searchValue}),'%') |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="linkman != null and linkman != ''"> and c.linkman = #{linkman}</if> |
|
|
|
|
|
<if test="linkmanTel != null and linkmanTel != ''"> and c.linkman_tel = #{linkmanTel}</if> |
|
|
|
|
|
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and c.enterprise_number = #{enterpriseNumber}</if> |
|
|
|
|
|
<if test="status != null"> and c.status = #{status}</if> |
|
|
|
|
|
<if test="searchValue != null and searchValue != ''"> |
|
|
|
|
|
and (r.law_enforcement_item_text like concat(concat('%',#{searchValue}),'%') |
|
|
|
|
|
or r.law_enforcement_basis_text like concat(concat('%',#{searchValue}),'%') |
|
|
|
|
|
or c.problem_description like concat(concat('%',#{searchValue}),'%')) |
|
|
|
|
|
</if> |
|
|
|
|
|
</where> |
|
|
|
|
|
ORDER BY c.create_time DESC |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectByStatus" parameterType="EnterpriseComplaint" resultMap="EnterpriseComplaintResult"> |
|
|
<select id="selectByStatus" parameterType="EnterpriseComplaint" resultMap="EnterpriseComplaintResult"> |
|
|
<include refid="selectEnterpriseComplaintVo"/> |
|
|
<include refid="selectEnterpriseComplaintVo"/> |
|
|
where status != #{status} and pro_wo_code is not null |
|
|
where status != #{status} and pro_wo_code is not null |
|
|
|