|
@@ -132,12 +132,6 @@ public class TaH5DemandController extends BaseController {
|
132
|
132
|
public ResponseBean taH5DemandAdd(@RequestBody TaH5Demand taH5Demand, HttpServletRequest request){
|
133
|
133
|
ResponseBean responseBean = new ResponseBean();
|
134
|
134
|
try {
|
135
|
|
- TaH5Sample sample = iTaH5SampleService.getById(taH5Demand.getSampleId());
|
136
|
|
- if (sample.getStatus() != 1){
|
137
|
|
- responseBean.addError("该H5样例已取消发布或已删除");
|
138
|
|
- return responseBean;
|
139
|
|
- }
|
140
|
|
-
|
141
|
135
|
taH5Demand.setOrgId(getOrgId(request));
|
142
|
136
|
taH5Demand.setOrgName(iTaOrgService.getById(getOrgId(request)).getName());
|
143
|
137
|
taH5Demand.setDemandStatus(CommConstant.STATUS_NORMAL);
|
|
@@ -155,7 +149,7 @@ public class TaH5DemandController extends BaseController {
|
155
|
149
|
if (sampleContactList.size() > 0) {
|
156
|
150
|
List<TaContact> taContactList = taContactService.list(new QueryWrapper<TaContact>().in("contact_id", sampleContactList.stream().map(TaSampleContact::getContactId).collect(Collectors.toList())));
|
157
|
151
|
taH5Sample.setTaContactList(taContactList);
|
158
|
|
- String[] smsParams = {taH5Sample.getSampleName(), taH5Demand.getOrderer() + taH5Demand.getPhone()};
|
|
152
|
+ String[] smsParams = {taH5Sample.getSampleName(), taH5Demand.getOrderer() + "-" + taH5Demand.getPhone()};
|
159
|
153
|
for (TaContact taContact : taContactList){
|
160
|
154
|
sendSmsMessage(taContact.getPhone(), CommConstant.MESSAGE_CONTENT_OF_DEMAND, smsParams);
|
161
|
155
|
}
|