瀏覽代碼

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

顾绍勇 5 年之前
父節點
當前提交
3f88773ba1

+ 1
- 1
src/main/java/com/huiju/estateagents/sample/controller/TaH5DemandController.java 查看文件

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

+ 4
- 1
src/main/java/com/huiju/estateagents/sample/controller/TaH5SampleController.java 查看文件

@@ -186,7 +186,10 @@ public class TaH5SampleController extends BaseController {
186 186
     public ResponseBean taH5SampleGet(@PathVariable Integer id) {
187 187
         ResponseBean responseBean = new ResponseBean();
188 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 193
         } catch (Exception e) {
191 194
             e.printStackTrace();
192 195
             logger.error("taH5SampleDelete -=- {}", e.toString());