Browse Source

fix:[模板管理]优化

master
15881625488@163.com 2 months ago
parent
commit
a5f4277a08
4 changed files with 7 additions and 13 deletions
  1. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java
  2. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java
  3. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SjServiceImpl.java
  4. +4
    -10
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java View File

@ -1498,8 +1498,8 @@ public class GyzjServiceImpl extends ServiceImpl implements IG
} else { } else {
this.updateById(gyzj); this.updateById(gyzj);
} }
studyFormFillResource.setType(StudyFormFillResourceTypeEnum.gyzj.getValue());
} }
studyFormFillResource.setType(StudyFormFillResourceTypeEnum.gyzj.getValue());
} else { } else {
//使用的才更新 Resource //使用的才更新 Resource
studyFormFillResource.setMc(gyzj.getMc()); studyFormFillResource.setMc(gyzj.getMc());

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java View File

@ -1284,8 +1284,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS
} else { } else {
this.updateById(mjy); this.updateById(mjy);
} }
studyFormFillResource.setType(StudyFormFillResourceTypeEnum.mjy.getValue());
} }
studyFormFillResource.setType(StudyFormFillResourceTypeEnum.mjy.getValue());
} else { } else {
//使用的才更新 Resource //使用的才更新 Resource
studyFormFillResource.setMc(mjy.getMc()); studyFormFillResource.setMc(mjy.getMc());

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SjServiceImpl.java View File

@ -712,8 +712,8 @@ public class SjServiceImpl extends ServiceImpl implements ISjServi
} }
sjMap.put(sj.getBh(), sj); sjMap.put(sj.getBh(), sj);
sjList.add(sj); sjList.add(sj);
studyFormFillResource.setType(StudyFormFillResourceTypeEnum.sj.getValue());
} }
studyFormFillResource.setType(StudyFormFillResourceTypeEnum.sj.getValue());
}else{ }else{
//使用的才更新 Resource //使用的才更新 Resource
studyFormFillResource.setMc(sj.getMc()); studyFormFillResource.setMc(sj.getMc());

+ 4
- 10
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java View File

@ -552,16 +552,10 @@ 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());
//第一次填报
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 //更新 Resource
this.updateById(studyFormFill); this.updateById(studyFormFill);
} }

Loading…
Cancel
Save