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