Commit b4fd0ed5 by 吴博

Merge branch 'fix-1021161' into 'master'

fix order

See merge request rays/pcloud-book!478
parents a088d841 ff49d74c
...@@ -832,7 +832,7 @@ public class GroupSet { ...@@ -832,7 +832,7 @@ public class GroupSet {
selfPlanUserDto.setWxUserId(wechatUserId); selfPlanUserDto.setWxUserId(wechatUserId);
selfPlanUserDto.setNickName(userDTO.getNickName()); selfPlanUserDto.setNickName(userDTO.getNickName());
selfPlanUserDto.setSex(userDTO.getSex()); selfPlanUserDto.setSex(userDTO.getSex());
if (MapUtils.isEmpty(selfPlanUserDtoMap) && selfPlanUserDtoMap.containsKey(wechatUserId) && if (!MapUtils.isEmpty(selfPlanUserDtoMap) && selfPlanUserDtoMap.containsKey(wechatUserId) &&
null != selfPlanUserDtoMap.get(wechatUserId)){ null != selfPlanUserDtoMap.get(wechatUserId)){
selfPlanUserDto.setSlefPlanCount(selfPlanUserDtoMap.get(wechatUserId).getSlefPlanCount()); selfPlanUserDto.setSlefPlanCount(selfPlanUserDtoMap.get(wechatUserId).getSlefPlanCount());
selfPlanUserDto.setOrderCount(selfPlanUserDtoMap.get(wechatUserId).getOrderCount()); selfPlanUserDto.setOrderCount(selfPlanUserDtoMap.get(wechatUserId).getOrderCount());
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
where id = #{planId} where id = #{planId}
</update> </update>
<select id="getSelfPlanUserDtoMap" parameterType="list" resultType="java.util.Map"> <select id="getSelfPlanUserDtoMap" parameterType="list" resultType="com.pcloud.book.timecontrol.dto.SelfPlanUserDto">
SELECT SELECT
wx_id wxUserId, wx_id wxUserId,
count(id) slefPlanCount, count(id) slefPlanCount,
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
</foreach> </foreach>
</if> </if>
</where> </where>
group by wx_id
</select> </select>
<update id="updateServiceState" parameterType="com.pcloud.book.timecontrol.entity.TimeControlSelfPlan"> <update id="updateServiceState" parameterType="com.pcloud.book.timecontrol.entity.TimeControlSelfPlan">
......
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