|
@@ -156,7 +156,13 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
SbMeasureLog log = new SbMeasureLog();
|
|
|
log.setSbId(item);
|
|
|
log.setId(IdGeneratorUtils.getObjectId());
|
|
|
- log.setOtherType(SbMeasureLogOtherTypeEnum.OUT_STORE.getValue());
|
|
|
+ if(sbInfoDTO.getStatus()==SbInfoStatusEnum.IN_USE.getValue()) {
|
|
|
+ log.setOtherType(SbMeasureLogOtherTypeEnum.OUT_STORE.getValue());
|
|
|
+ }else if (sbInfoDTO.getStatus()==SbInfoStatusEnum.DIAO_BO.getValue()) {
|
|
|
+ log.setOtherType(SbMeasureLogOtherTypeEnum.DIAO_BO.getValue());
|
|
|
+ }else if (sbInfoDTO.getStatus()==SbInfoStatusEnum.WAI_XIAO.getValue()) {
|
|
|
+ log.setOtherType(SbMeasureLogOtherTypeEnum.WAI_XIAO.getValue());
|
|
|
+ }
|
|
|
|
|
|
log.setContent(sbInfoDTO.getRemark());
|
|
|
log.setCreatedTime(LocalDateTime.now());
|