diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormApplyController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormApplyController.java index 6a2499c..df5bb57 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormApplyController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormApplyController.java @@ -153,6 +153,16 @@ public class StudyFormApplyController extends BaseController { return AjaxResult.success(studyFormApplyService.bc(studyFormApply)); } + /** + * 仅保存 + */ + @PostMapping("/bcOnly") + @RequiresPermissions(value={"business:drugFormApply:bj","business:drugFormApply:xz"}, logical= Logical.OR) + public AjaxResult bcOnly(@RequestBody StudyFormApply studyFormApply) { + return AjaxResult.success(studyFormApplyService.bcOnly(studyFormApply)); + } + + /** * 提交 diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormFillController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormFillController.java index 8178954..4764c25 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormFillController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormFillController.java @@ -63,7 +63,7 @@ public class StudyFormFillController extends BaseController { * 稽查轨迹列表 */ @GetMapping("/jcgjList") - @RequiresPermissions(value = {"business:studyFormFill:bj", "business:nonTrialFormFill:bj", "business:drugFormFill:bj"}, logical = Logical.OR) + @RequiresPermissions(value = {"business:studyFormFill:xq", "business:nonTrialFormFill:xq", "business:drugFormFill:xq"}, logical = Logical.OR) public TableDataInfo jcgjList(StudyFormFillJcgj form) { startPage(); List list = studyFormFillJcgjService.queryList(form); @@ -158,6 +158,17 @@ public class StudyFormFillController extends BaseController { return AjaxResult.success(studyFormFillService.bc(studyFormFill)); } + /** + * 仅保存 + */ + @PostMapping("/bcOnly") + @RequiresPermissions(value = {"business:studyFormFill:bj", "business:studyFormFill:xz", + "business:nonTrialFormFill:bj", "business:nonTrialFormFill:xz", + "business:drugFormFill:bj", "business:drugFormFill:xz"}, logical = Logical.OR) + public AjaxResult bcOnly(@RequestBody StudyFormFill studyFormFill) { + return AjaxResult.success(studyFormFillService.bcOnly(studyFormFill)); + } + /** * 提交 diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPlanController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPlanController.java index 3f0e157..a17001c 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPlanController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPlanController.java @@ -122,6 +122,15 @@ public class StudyFormPlanController extends BaseController return AjaxResult.success(studyFormPlanService.bc(studyFormPlan)); } + /** + * 仅保存 + */ + @PostMapping("/bcOnly") + @RequiresPermissions(value={"business:studyFormPlan:bj","business:studyFormPlan:xz"}, logical= Logical.OR) + public AjaxResult bcOnly(@RequestBody StudyFormPlan studyFormPlan) { + return AjaxResult.success(studyFormPlanService.bcOnly(studyFormPlan)); + } + /** * 提交 diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java index 5a989a7..9890d40 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java @@ -133,6 +133,18 @@ public class StudyFormPreController extends BaseController } /** + * 仅保存 + */ + @PostMapping("/bcOnly") + @RequiresPermissions(value={"business:studyFormPre:bj","business:studyFormPre:xz", + "business:nonTrialFormPre:bj","business:nonTrialFormPre:xz", + "business:drugFormPre:bj","business:drugFormPre:xz"}, logical= Logical.OR) + public AjaxResult bcOnly(@RequestBody StudyFormPre studyFormPre) + { + return AjaxResult.success(studyFormPreService.bcOnly(studyFormPre)); + } + + /** * 提交 */ @PostMapping("/tj") diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormApplyService.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormApplyService.java index 1dd01a4..ad8af22 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormApplyService.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormApplyService.java @@ -67,6 +67,12 @@ public interface IStudyFormApplyService extends IService public StudyFormApply bc(StudyFormApply studyFormApply); /** + * 仅保存 + * @param studyFormApply + */ + public StudyFormApply bcOnly(StudyFormApply studyFormApply); + + /** * 提交 * @param studyFormApply */ diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormFillService.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormFillService.java index d122bd5..24c86da 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormFillService.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormFillService.java @@ -65,6 +65,17 @@ public interface IStudyFormFillService extends IService */ public StudyFormFill bc(StudyFormFill studyFormFill); + /** + * 预填填报 + * @param studyFormFill + */ + public void bcAuto(StudyFormFill studyFormFill); + + /** + * 仅保存 + * @param studyFormFill + */ + public StudyFormFill bcOnly(StudyFormFill studyFormFill); /** * 提交 diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPlanService.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPlanService.java index a72a266..1d70307 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPlanService.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPlanService.java @@ -44,6 +44,12 @@ public interface IStudyFormPlanService extends IService */ public StudyFormPlan bc(StudyFormPlan studyFormPlan); + /** + * 仅保存 + * @param studyFormPlan + */ + public StudyFormPlan bcOnly(StudyFormPlan studyFormPlan); + /** * 提交 diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPreService.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPreService.java index 219d5ee..d5f53c9 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPreService.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPreService.java @@ -44,6 +44,12 @@ public interface IStudyFormPreService extends IService public StudyFormPre bc(StudyFormPre studyFormPre); /** + * 仅保存 + * @param studyFormPre + */ + public StudyFormPre bcOnly(StudyFormPre studyFormPre); + + /** * 提交 * @param studyFormPre */ diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java index 8c5a881..d9d4ac3 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java @@ -297,7 +297,43 @@ public class StudyFormApplyServiceImpl extends ServiceImpl fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(studyFormFillOld, studyFormFill); - if (fieldChanges.size() > 0) { - //稽查轨迹 - List studyFormFillJcgjs = new ArrayList<>(); - for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) { - studyFormFillJcgjs.add(studyFormFillJcgjService.getJcgj(studyFormFillOld.getId(), JcgjlxEnum.xg.getValue(), "修改", JcmcysEnum.orange.getValue(), fieldChange.toString(), fieldChange.toEnString(), SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark())); - } - studyFormFillJcgjService.saveBatch(studyFormFillJcgjs); - } + //签名信息 + studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "填写并保存记录", qmr, studyFormFill.getRemark()); //稽查轨迹 - studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(), null); + studyFormFillJcgjService.saveJcgj(studyFormFillOld.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(), null); } else { studyFormFill.setBdzt(StudyFormFillBdztEnum.tbz.getValue()); studyFormFill.setUserId(SecurityUtils.getUserId()); @@ -299,15 +294,66 @@ public class StudyFormFillServiceImpl extends ServiceImpl