Browse Source

轮播某条记录下钻,看到详情页(后)

v3
zouyx 2 years ago
parent
commit
d6367c7708
  1. 10
      lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementInspectionProgramController.java
  2. 10
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementInspectionProgramServiceImpl.java

10
lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementInspectionProgramController.java

@ -142,4 +142,14 @@ public class AppEnforcementInspectionProgramController extends BaseController
return enforcementInspectionProgramService.deleteEnforcementInspectionProgramByIds(ids) > 0 ?
ZDResponse.success("删除成功") : ZDResponse.error("删除失败");
}
/**
* id查询执法检查计划
*/
@GetMapping("/detail/{id}")
@ResponseBody//返回
public ZDResponse detail(@PathVariable("id") String id, EnforcementInspectionProgram enforcementInspectionProgram)
{
return ZDResponse.success("成功",enforcementInspectionProgramService.selectEnforcementInspectionProgramById(id));
}
}

10
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementInspectionProgramServiceImpl.java

@ -44,7 +44,15 @@ public class EnforcementInspectionProgramServiceImpl implements IEnforcementInsp
@Override
public EnforcementInspectionProgram selectEnforcementInspectionProgramById(String id)
{
return enforcementInspectionProgramMapper.selectEnforcementInspectionProgramById(id);
EnforcementInspectionProgram enforcementInspectionProgram=enforcementInspectionProgramMapper.selectEnforcementInspectionProgramById(id);
List<ZdxtFileCommon> zdxtFileCommons = zdxtFileCommonApi.selectZdxtFileById(id);
if(zdxtFileCommons != null && zdxtFileCommons.size() > 0){
EnforcementInspectionProgram.FileObject fileObject = new EnforcementInspectionProgram.FileObject();
fileObject.setFileName(zdxtFileCommons.get(0).getFileName());
fileObject.setFileUrl(zdxtFileCommons.get(0).getUploadPath());
enforcementInspectionProgram.setFileObject(fileObject);
}
return enforcementInspectionProgram;
}
/**

Loading…
Cancel
Save