Commit 91876c19 by 翁国栋

8小时运营后台--

方案分组错误
parent 3f22d206
...@@ -421,7 +421,7 @@ ...@@ -421,7 +421,7 @@
<select id="selectPlansListByIds" resultType="cn.timer.api.dto.insure.InsureUserDto"> <select id="selectPlansListByIds" resultType="cn.timer.api.dto.insure.InsureUserDto">
SELECT SELECT
policy_id as policyId, policy_id as policyId,
benefit_basic_plan as benefitBasicPlan, product_plan_id as benefitBasicPlan,
benefit_occupation_category as benefitOccupationCategory, benefit_occupation_category as benefitOccupationCategory,
count(id) as totalUser count(id) as totalUser
FROM insure_user FROM insure_user
...@@ -429,7 +429,7 @@ ...@@ -429,7 +429,7 @@
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
group by benefit_basic_plan,benefit_occupation_category group by product_plan_id,benefit_occupation_category
</select> </select>
<select id="selectPlansListById" resultType="cn.timer.api.dto.insure.InsureUserDto"> <select id="selectPlansListById" resultType="cn.timer.api.dto.insure.InsureUserDto">
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
FROM insure_user iu FROM insure_user iu
left join insure_product_plan ipp on ipp.id=iu.product_plan_id left join insure_product_plan ipp on ipp.id=iu.product_plan_id
WHERE policy_id = #{policyId} WHERE policy_id = #{policyId}
group by benefit_occupation_category group by iu.product_plan_id
</select> </select>
<update id="updateInsure"> <update id="updateInsure">
......
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