Commit 36e5eb62 by 翁国栋 Committed by 284718418@qq.com

8小时后台--

保单列表模糊查询、分页
parent fb987a55
...@@ -25,7 +25,8 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> { ...@@ -25,7 +25,8 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
PolicyDto getPolicyDetail(@Param("id")Integer id); PolicyDto getPolicyDetail(@Param("id")Integer id);
Integer totalPolicy(@Param("policy")PolicyDto policyDto); Integer totalPolicy(@Param("policy")PolicyDto policyDto);
List<PolicyDto> policyTotalList(); List<PolicyDto> policyTotalList();
List<InsureUserDto> selectPolicyListByorgCode(@Param("orgCode")Integer id); List<InsureUserDto> selectPolicyListByorgCode(@Param("orgCode")Integer id,@Param("policy")PolicyDto policyDto);
Integer selectPolicyTotalByorgCode(@Param("orgCode")Integer id,@Param("policy")PolicyDto policyDto);
List<InsurePolicy> selectPolicyListByStatus(@Param("date") Date date); List<InsurePolicy> selectPolicyListByStatus(@Param("date") Date date);
Integer selectPlansTotalByorgCode(@Param("orgCode")Integer id); Integer selectPlansTotalByorgCode(@Param("orgCode")Integer id);
......
...@@ -350,9 +350,28 @@ ...@@ -350,9 +350,28 @@
insure_policy ip insure_policy ip
LEFT JOIN insure_product ir on ir.id=ip.product_id LEFT JOIN insure_product ir on ir.id=ip.product_id
WHERE ip.org_code=#{orgCode} WHERE ip.org_code=#{orgCode}
<if test="policy.policyNo !=null and policy.policyNo!=''">
and ip.policy_no = #{policy.policyNo}
</if>
order by ip.update_time desc order by ip.update_time desc
<if test="policy.page.offset != null and policy.page.totalPage != null">
limit #{policy.page.offset}, #{policy.page.totalPage}
</if>
</select> </select>
<select id="selectPolicyTotalByorgCode" resultType="java.lang.Integer">
SELECT
count(ip.id)
FROM
insure_policy ip
LEFT JOIN insure_product ir on ir.id=ip.product_id
WHERE ip.org_code=#{orgCode}
<if test="policy.policyNo !=null and policy.policyNo!=''">
and ip.policy_no = #{policy.policyNo}
</if>
</select>
<select id="selectPlansTotalByorgCode" resultType="java.lang.Integer"> <select id="selectPlansTotalByorgCode" resultType="java.lang.Integer">
SELECT SELECT
count(ip.id) count(ip.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment