|
@@ -188,12 +188,18 @@ public class TaH5SampleController extends BaseController {
|
188
|
188
|
* @param id 实体ID
|
189
|
189
|
*/
|
190
|
190
|
@RequestMapping(value = "/admin/taH5Sample/{id}", method = RequestMethod.GET)
|
191
|
|
- public ResponseBean taH5SampleGet(@PathVariable Integer id) {
|
|
191
|
+ public ResponseBean taH5SampleGet(@PathVariable Integer id, HttpServletRequest request) {
|
192
|
192
|
ResponseBean responseBean = new ResponseBean();
|
193
|
193
|
try {
|
194
|
194
|
TaH5Sample taH5Sample = iTaH5SampleService.getById(id);
|
|
195
|
+ QueryWrapper<TaH5Demand> queryWrapper = new QueryWrapper<>();
|
|
196
|
+ queryWrapper.eq("sample_id", id);
|
|
197
|
+ queryWrapper.ne("demand_status", CommConstant.STATUS_DELETE);
|
|
198
|
+ queryWrapper.eq("org_id", getOrgId(request));
|
|
199
|
+ Integer demandNum = iTaH5DemandService.count(queryWrapper);
|
195
|
200
|
IPage<TaContact> taContactIPage = taContactService.taContactInfoBySampleId(String.valueOf(id), 1 , 10);
|
196
|
201
|
taH5Sample.setTaContactList(taContactIPage.getRecords());
|
|
202
|
+ taH5Sample.setDemandNum(demandNum);
|
197
|
203
|
responseBean.addSuccess(taH5Sample);
|
198
|
204
|
} catch (Exception e) {
|
199
|
205
|
e.printStackTrace();
|