Commit 37935e39a4d984aef02c4ffe1005489dcaba8504

Authored by litao
1 parent 4a33a48429

bug修复

Showing 1 changed file with 2 additions and 2 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java View file @ 37935e3
... ... @@ -162,7 +162,7 @@
162 162 return CollectionUtils.isNotEmpty(list);
163 163 }
164 164  
165   - private void sendCoupon(List<Map<String, Object>> temps, String hospitalId, Integer createUserId, String userId, Integer personType) {
  165 + private void sendCoupon(List<Map<String, Object>> temps, String hospitalId, Integer createUserId, String userId, Integer personType, String areaCode) {
166 166 for (Map<String, Object> temp : temps) {
167 167 Object sendType = temp.get("send_type");
168 168 if(sendType != null) {/** 1=全部发放 2=按有效时间发放 */
... ... @@ -170,7 +170,7 @@
170 170 couponInfo.setCreateDate(new Date());
171 171 couponInfo.setCreateHospitalId(hospitalId);
172 172 couponInfo.setCreateUserId(String.valueOf(createUserId));
173   - couponInfo.setSequenceId(genIdService.poll());
  173 + couponInfo.setSequenceId(genIdService.poll(areaCode));
174 174 couponInfo.setStatus(1);
175 175 couponInfo.setUserId(userId);
176 176 if(temp.get("coupon_template_id") != null) {