|
@@ -191,6 +191,12 @@ public class TaH5SampleController extends BaseController {
|
191
|
191
|
public ResponseBean taH5SampleGet(@PathVariable Integer id, HttpServletRequest request) {
|
192
|
192
|
ResponseBean responseBean = new ResponseBean();
|
193
|
193
|
try {
|
|
194
|
+ TaH5Sample sample = iTaH5SampleService.getById(id);
|
|
195
|
+ if (sample.getStatus() != 1){
|
|
196
|
+ responseBean.addError("该H5样例已取消发布或已删除");
|
|
197
|
+ return responseBean;
|
|
198
|
+ }
|
|
199
|
+
|
194
|
200
|
TaH5Sample taH5Sample = iTaH5SampleService.getById(id);
|
195
|
201
|
QueryWrapper<TaH5Demand> queryWrapper = new QueryWrapper<>();
|
196
|
202
|
queryWrapper.eq("sample_id", id);
|
|
@@ -305,7 +311,9 @@ public class TaH5SampleController extends BaseController {
|
305
|
311
|
queryWrapper.eq("sample_id", taH5Sample.getSampleId());
|
306
|
312
|
List<TaSampleContact> sampleContactList = iTaSampleContactService.list(queryWrapper);
|
307
|
313
|
if (sampleContactList.size() > 0) {
|
308
|
|
- List<TaContact> taContactList = taContactService.list(new QueryWrapper<TaContact>().in("contact_id", sampleContactList.stream().map(TaSampleContact::getContactId).collect(Collectors.toList())));
|
|
314
|
+ List<TaContact> taContactList = taContactService.list(new QueryWrapper<TaContact>()
|
|
315
|
+ .in("contact_ id", sampleContactList.stream().map(TaSampleContact::getContactId).collect(Collectors.toList()))
|
|
316
|
+ .eq("status",CommConstant.STATUS_NORMAL));
|
309
|
317
|
taH5Sample.setTaContactList(taContactList);
|
310
|
318
|
}
|
311
|
319
|
if (!StringUtils.isEmpty(taH5Sample.getTag())) {
|