Commit 9ebfa0a1 authored by Shen's avatar Shen

1. 对活动信息排序

parent e2bff8ac
...@@ -140,6 +140,7 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe ...@@ -140,6 +140,7 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
pensionOrderEntity.setStatusName(Constant.OrderStatus.WAIT_EVALUATE.getMessage()); pensionOrderEntity.setStatusName(Constant.OrderStatus.WAIT_EVALUATE.getMessage());
update(ConvertUtils.sourceToTarget(pensionOrderEntity, PensionOrderDTO.class)); update(ConvertUtils.sourceToTarget(pensionOrderEntity, PensionOrderDTO.class));
pensionServiceService.addServiceTimes(pensionOrderEntity.getServiceId()); pensionServiceService.addServiceTimes(pensionOrderEntity.getServiceId());
pushMessage.sendWeChatMsg(ConvertUtils.sourceToTarget(pensionOrderEntity, PensionOrderDTO.class), userService.getUserByUserId(pensionOrderEntity.getCreator()).getOpenid(), "oldman");
} }
} }
return true; return true;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<select id="getEventForUser" resultType="io.hmit.modules.serviceOrder.dto.PensionEventDTO"> <select id="getEventForUser" resultType="io.hmit.modules.serviceOrder.dto.PensionEventDTO">
SELECT pe.id, pe.event_title, pe.event_image_url, pe.event_org_name, pe.event_date, pe.create_date SELECT pe.id, pe.event_title, pe.event_image_url, pe.event_org_name, pe.event_date, pe.create_date
FROM pension_event pe WHERE pe.status != 0 AND pe.status != 4 FROM pension_event pe WHERE pe.status != 0 AND pe.status != 4
ORDER BY id DESC
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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