|
|
@ -16,7 +16,6 @@ import com.hxhq.business.dto.study.StudyFormFillCz; |
|
|
import com.hxhq.business.dto.study.StudyFormFillResource; |
|
|
import com.hxhq.business.dto.study.StudyFormFillResource; |
|
|
import com.hxhq.business.enums.archive.ArchiveLogTypeEnum; |
|
|
import com.hxhq.business.enums.archive.ArchiveLogTypeEnum; |
|
|
import com.hxhq.business.enums.study.StudyFormFillResourceTypeEnum; |
|
|
import com.hxhq.business.enums.study.StudyFormFillResourceTypeEnum; |
|
|
import com.hxhq.business.enums.study.StudyTypeEnum; |
|
|
|
|
|
import com.hxhq.business.enums.zykgl.*; |
|
|
import com.hxhq.business.enums.zykgl.*; |
|
|
import com.hxhq.business.form.mjy.*; |
|
|
import com.hxhq.business.form.mjy.*; |
|
|
import com.hxhq.business.service.*; |
|
|
import com.hxhq.business.service.*; |
|
|
@ -857,7 +856,7 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
} |
|
|
} |
|
|
List<MjyJcgj> mjyJcgjList = new ArrayList<>(); |
|
|
List<MjyJcgj> mjyJcgjList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(mjyOld, form); |
|
|
|
|
|
|
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjectsNotNull(mjyOld, form); |
|
|
if (fieldChanges.size() == 0) { |
|
|
if (fieldChanges.size() == 0) { |
|
|
throw new ServiceException("你没有修改任何内容"); |
|
|
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()))) { |
|
|
if (!(mjyOld.getZjzt().equals(ZjztEnum.rk.getValue()) || mjyOld.getZjzt().equals(ZjztEnum.yff.getValue()))) { |
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是入库或已发放状态,不能修改库存"); |
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是入库或已发放状态,不能修改库存"); |
|
|
} |
|
|
} |
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjectsNotNULL(mjyOld, form); |
|
|
|
|
|
|
|
|
List<ObjectCompareUtil.FieldChange> fieldChanges = ObjectCompareUtil.compareObjectsNotNull(mjyOld, form); |
|
|
if (fieldChanges.size() == 0) { |
|
|
if (fieldChanges.size() == 0) { |
|
|
throw new ServiceException("你没有修改任何内容"); |
|
|
throw new ServiceException("你没有修改任何内容"); |
|
|
} |
|
|
} |
|
|
|