diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java index 9eb5062..a703751 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java @@ -836,7 +836,7 @@ public class GyzjServiceImpl extends ServiceImpl implements IG } List gyzjJcgjList = new ArrayList<>(); - List fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(gyzjOld, form); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(gyzjOld, form); if (fieldChanges.size() == 0) { throw new ServiceException("你没有修改任何内容"); } @@ -941,7 +941,7 @@ public class GyzjServiceImpl extends ServiceImpl implements IG if (!(gyzjOld.getZjzt().equals(ZjztEnum.rk.getValue()) || gyzjOld.getZjzt().equals(ZjztEnum.yff.getValue()))) { throw new ServiceException("给药制剂【" + gyzjOld.getMc() + "】不是入库或已发放状态,不能修改库存"); } - List fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(gyzjOld, form); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(gyzjOld, form); if (fieldChanges.size() == 0) { throw new ServiceException("你没有修改任何内容"); } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java index 2509671..6a5029b 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java @@ -16,7 +16,6 @@ import com.hxhq.business.dto.study.StudyFormFillCz; import com.hxhq.business.dto.study.StudyFormFillResource; import com.hxhq.business.enums.archive.ArchiveLogTypeEnum; import com.hxhq.business.enums.study.StudyFormFillResourceTypeEnum; -import com.hxhq.business.enums.study.StudyTypeEnum; import com.hxhq.business.enums.zykgl.*; import com.hxhq.business.form.mjy.*; import com.hxhq.business.service.*; @@ -857,7 +856,7 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS } List mjyJcgjList = new ArrayList<>(); - List fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(mjyOld, form); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(mjyOld, form); if (fieldChanges.size() == 0) { throw new ServiceException("你没有修改任何内容"); } @@ -960,7 +959,7 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS if (!(mjyOld.getZjzt().equals(ZjztEnum.rk.getValue()) || mjyOld.getZjzt().equals(ZjztEnum.yff.getValue()))) { throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是入库或已发放状态,不能修改库存"); } - List fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(mjyOld, form); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(mjyOld, form); if (fieldChanges.size() == 0) { throw new ServiceException("你没有修改任何内容"); } 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 1049fa2..9fc947c 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 @@ -23,7 +23,6 @@ import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.common.security.utils.SecurityUtils; -import com.hxhq.system.api.domain.SysDept; import com.hxhq.system.api.domain.SysUser; import com.hxhq.system.service.ISysDeptService; import com.hxhq.system.service.ISysUserService; @@ -289,7 +288,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(studyFormApplyOld, studyFormApply); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(studyFormApplyOld, studyFormApply); if (fieldChanges.size() == 0) { //稽查轨迹 List studyFormApplyJcgjs = new ArrayList<>(); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java index a31d8a8..7f3f703 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java @@ -12,7 +12,6 @@ import com.hxhq.business.enums.NormalEnum; import com.hxhq.business.enums.SnTypeEnum; import com.hxhq.business.enums.study.StudyFormFillBdztEnum; import com.hxhq.business.enums.study.StudyTypeEnum; -import com.hxhq.business.enums.template.ProductEnum; import com.hxhq.business.enums.zykgl.JcgjlxEnum; import com.hxhq.business.enums.zykgl.JcmcysEnum; import com.hxhq.business.form.study.*; @@ -404,7 +403,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(studyFormFillOld, studyFormFill); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(studyFormFillOld, studyFormFill); if (fieldChanges.size() > 0) { //稽查轨迹 List studyFormFillJcgjs = new ArrayList<>(); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java index 5b9d4c2..f2226a4 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java @@ -23,7 +23,6 @@ import com.hxhq.business.utils.lang.StudyFormUtil; import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.utils.StringUtils; import com.hxhq.common.security.utils.SecurityUtils; -import com.hxhq.system.api.domain.SysDept; import com.hxhq.system.api.domain.SysUser; import com.hxhq.system.service.ISysDeptService; import com.hxhq.system.service.ISysUserService; @@ -162,7 +161,7 @@ public class StudyFormPlanServiceImpl extends ServiceImpl fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(studyFormPlanOld, studyFormPlan); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(studyFormPlanOld, studyFormPlan); if (fieldChanges.size() == 0) { //稽查轨迹 List studyFormPlanJcgjs = new ArrayList<>(); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java index 4ec8689..aaf8ede 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java @@ -140,7 +140,7 @@ public class StudyFormPreServiceImpl extends ServiceImpl fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(studyFormPreOld, studyFormPre); + List fieldChanges = ObjectCompareUtil.compareObjectsNotNull(studyFormPreOld, studyFormPre); if (fieldChanges.size() == 0) { //稽查轨迹 List studyFormPreJcgjs = new ArrayList<>(); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/ObjectCompareUtil.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/ObjectCompareUtil.java index 1d3be66..614206a 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/ObjectCompareUtil.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/ObjectCompareUtil.java @@ -115,7 +115,7 @@ public class ObjectCompareUtil { * @param newObj 新对象 * @return 字段变化列表 */ - public static List compareObjectsNotNULL(Object oldObj, Object newObj) { + public static List compareObjectsNotNull(Object oldObj, Object newObj) { List changes = new ArrayList<>(); // if (oldObj == null || newObj == null) {