|
|
@ -783,6 +783,14 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
*/ |
|
|
*/ |
|
|
public void genResource(StudyFormFill studyFormFill, String remark) { |
|
|
public void genResource(StudyFormFill studyFormFill, String remark) { |
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
|
|
|
List<StudyFormFillResource> studyFormFillResourceList = JSONUtil.toList(studyFormFill.getResource(), StudyFormFillResource.class); |
|
|
|
|
|
//如果elnType 不为空,则设置type为空 |
|
|
|
|
|
for(StudyFormFillResource studyFormFillResource:studyFormFillResourceList){ |
|
|
|
|
|
if(studyFormFillResource.getElnType()!=null&&studyFormFillResource.getElnType().intValue()>0){ |
|
|
|
|
|
studyFormFillResource.setType(null); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
studyFormFill.setResource(JSONObject.toJSONString(studyFormFillResourceList)); |
|
|
|
|
|
|
|
|
// 处置,存放,用量 |
|
|
// 处置,存放,用量 |
|
|
sjService.genResource(studyFormFill, template); |
|
|
sjService.genResource(studyFormFill, template); |
|
|
|