|
@@ -187,8 +187,12 @@ public class TaH5SampleController extends BaseController {
|
187
|
187
|
ResponseBean responseBean = new ResponseBean();
|
188
|
188
|
try {
|
189
|
189
|
TaH5Sample taH5Sample = iTaH5SampleService.getById(id);
|
|
190
|
+ QueryWrapper<TaH5Demand> queryWrapper = new QueryWrapper<>();
|
|
191
|
+ queryWrapper.eq("sample_id", id);
|
|
192
|
+ Integer demandNum = iTaH5DemandService.count(queryWrapper);
|
190
|
193
|
IPage<TaContact> taContactIPage = taContactService.taContactInfoBySampleId(String.valueOf(id), 1 , 10);
|
191
|
194
|
taH5Sample.setTaContactList(taContactIPage.getRecords());
|
|
195
|
+ taH5Sample.setDemandNum(demandNum);
|
192
|
196
|
responseBean.addSuccess(taH5Sample);
|
193
|
197
|
} catch (Exception e) {
|
194
|
198
|
e.printStackTrace();
|