|
@@ -64,11 +64,16 @@ public class SbUpdateLogController {
|
|
|
dto.setId(IdGeneratorUtils.getObjectId());
|
|
|
SbMeasureLog log = BeanConverterUtil.copyObjectProperties(dto,SbMeasureLog.class);
|
|
|
sbMeasureLogMapper.insert(log);
|
|
|
- if (dto.getOtherType()!=null&&dto.getOtherType().equals(SbMeasureLogOtherTypeEnum.IN_STORE.getValue())){
|
|
|
+ if (dto.getOtherType()!=null&&(dto.getOtherType().equals(SbMeasureLogOtherTypeEnum.IN_STORE.getValue()) ||
|
|
|
+ dto.getOtherType().equals(SbMeasureLogOtherTypeEnum.BAO_FEI.getValue()) )){
|
|
|
SbInfo sbInfo = new SbInfo();
|
|
|
sbInfo.setPositionNo("暂无");
|
|
|
sbInfo.setPositionNo(dto.getSbId());
|
|
|
- sbInfo.setStatus(SbInfoStatusEnum.IN_STORE.getValue());
|
|
|
+ if (dto.getOtherType().equals(SbMeasureLogOtherTypeEnum.IN_STORE.getValue())) {
|
|
|
+ sbInfo.setStatus(SbInfoStatusEnum.IN_STORE.getValue());
|
|
|
+ }else if (dto.getOtherType().equals(SbMeasureLogOtherTypeEnum.BAO_FEI.getValue())){
|
|
|
+ sbInfo.setStatus(SbInfoStatusEnum.SCRAPED.getValue());
|
|
|
+ }
|
|
|
sbInfoMapper.updateByPrimaryKeySelective(sbInfo);
|
|
|
}
|
|
|
return new R<>();
|