Commit 706f873382a8dc3cd57e89e7ff6cce1018ceacc8
1 parent
7a198313cc
Exists in
master
and in
6 other branches
产筛优惠劵
Showing 1 changed file with 10 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SieveFacade.java
View file @
706f873
... | ... | @@ -19,6 +19,7 @@ |
19 | 19 | import com.lyms.platform.operate.web.utils.CommonsHelper; |
20 | 20 | import com.lyms.platform.operate.web.worker.SieveWorker; |
21 | 21 | import com.lyms.platform.permission.model.Organization; |
22 | +import com.lyms.platform.permission.service.CouponService; | |
22 | 23 | import com.lyms.platform.permission.service.OrganizationService; |
23 | 24 | import com.lyms.platform.permission.service.UsersService; |
24 | 25 | import com.lyms.platform.pojo.*; |
... | ... | @@ -62,6 +63,8 @@ |
62 | 63 | |
63 | 64 | @Autowired |
64 | 65 | private SmsTemplateService smsTemplateService; |
66 | + @Autowired | |
67 | + private CouponService couponService; | |
65 | 68 | |
66 | 69 | @Autowired |
67 | 70 | private SmsConfigFacade smsConfigFacade; |
68 | 71 | |
... | ... | @@ -795,9 +798,16 @@ |
795 | 798 | result.put("mensesWeek", sieveApply.getMensesWeek()); |
796 | 799 | result.put("experimentNum", ""); |
797 | 800 | |
801 | + if (type == 1) | |
802 | + { | |
803 | + result.put("couponCode", couponService.findByUsedId(sieveApply.getId())); | |
804 | + } | |
805 | + | |
798 | 806 | map.put("sieveApplyInfo", result); |
799 | 807 | |
800 | 808 | if (type == 1 || type == 3) { |
809 | + | |
810 | + | |
801 | 811 | String applyDoctorName = CommonsHelper.getUserName(sieveApply.getApplyDoctor(), usersService); |
802 | 812 | viewInfo.put("applyDoctorName", applyDoctorName); |
803 | 813 |