Procházet zdrojové kódy

Merge remote-tracking branch 'origin/dev' into dev

顾绍勇 před 5 roky
rodič
revize
3f88773ba1

+ 1
- 1
src/main/java/com/huiju/estateagents/sample/controller/TaH5DemandController.java Zobrazit soubor

149
             if (sampleContactList.size() > 0) {
149
             if (sampleContactList.size() > 0) {
150
                 List<TaContact> taContactList = taContactService.list(new QueryWrapper<TaContact>().in("contact_id", sampleContactList.stream().map(TaSampleContact::getContactId).collect(Collectors.toList())));
150
                 List<TaContact> taContactList = taContactService.list(new QueryWrapper<TaContact>().in("contact_id", sampleContactList.stream().map(TaSampleContact::getContactId).collect(Collectors.toList())));
151
                 taH5Sample.setTaContactList(taContactList);
151
                 taH5Sample.setTaContactList(taContactList);
152
-                String[] smsParams = {taH5Demand.getDemandStatus().toString(), taH5Demand.getRemark()};
152
+                String[] smsParams = {taH5Sample.getSampleName(), taH5Demand.getOrgName() + taH5Demand.getOrderer() + taH5Demand.getPhone()};
153
                 for (TaContact taContact : taContactList){
153
                 for (TaContact taContact : taContactList){
154
                     sendSmsMessage(taContact.getPhone(), CommConstant.MESSAGE_CONTENT_OF_DEMAND, smsParams);
154
                     sendSmsMessage(taContact.getPhone(), CommConstant.MESSAGE_CONTENT_OF_DEMAND, smsParams);
155
                 }
155
                 }

+ 4
- 1
src/main/java/com/huiju/estateagents/sample/controller/TaH5SampleController.java Zobrazit soubor

186
     public ResponseBean taH5SampleGet(@PathVariable Integer id) {
186
     public ResponseBean taH5SampleGet(@PathVariable Integer id) {
187
         ResponseBean responseBean = new ResponseBean();
187
         ResponseBean responseBean = new ResponseBean();
188
         try {
188
         try {
189
-            responseBean.addSuccess(iTaH5SampleService.getById(id));
189
+            TaH5Sample taH5Sample = iTaH5SampleService.getById(id);
190
+            IPage<TaContact> taContactIPage = taContactService.taContactInfoBySampleId(String.valueOf(id), 1 , 10);
191
+            taH5Sample.setTaContactList(taContactIPage.getRecords());
192
+            responseBean.addSuccess(taH5Sample);
190
         } catch (Exception e) {
193
         } catch (Exception e) {
191
             e.printStackTrace();
194
             e.printStackTrace();
192
             logger.error("taH5SampleDelete -=- {}", e.toString());
195
             logger.error("taH5SampleDelete -=- {}", e.toString());