|
|
|
@ -552,16 +552,10 @@ public class StudyFormFillServiceImpl extends ServiceImpl |
|
|
|
*/ |
|
|
|
public void genResource(StudyFormFill studyFormFill, String remark) { |
|
|
|
Template template = templateService.getById(studyFormFill.getTemplateId()); |
|
|
|
//第一次填报 |
|
|
|
if(studyFormFill.getSftb().equals(NormalEnum.no.getValue())){ |
|
|
|
// 处置,存放,用量 |
|
|
|
sjService.genResource(studyFormFill, template); |
|
|
|
gyzjService.genResource(studyFormFill, template, remark); |
|
|
|
mjyService.genResource(studyFormFill, template, remark); |
|
|
|
}else{ |
|
|
|
//todo 再次修改 只是使用到的药剂,同步更新物资列表 |
|
|
|
|
|
|
|
} |
|
|
|
// 处置,存放,用量 |
|
|
|
sjService.genResource(studyFormFill, template); |
|
|
|
gyzjService.genResource(studyFormFill, template, remark); |
|
|
|
mjyService.genResource(studyFormFill, template, remark); |
|
|
|
//更新 Resource |
|
|
|
this.updateById(studyFormFill); |
|
|
|
} |
|
|
|
|