whj 7 сар өмнө
parent
commit
6d30814f34

+ 1 - 1
platform-dao/src/main/java/com/platform/dao/mapper/sb/SbInfoMapper.java

@@ -171,7 +171,7 @@ public interface SbInfoMapper extends MyMapper<SbInfo> {
      * @param sbInfoDTO
      */
     void updateLongYanForInStore(SbInfoDTO sbInfoDTO);
-
+                                                      
     List<SbInfo> selectByPositionNo(String sbPositionNo);
 
     Integer countNum(SbInfoDTO model);

+ 3 - 2
platform-service/src/main/java/com/platform/service/sb/impl/SbInfoServiceImpl.java

@@ -149,9 +149,10 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
         UserInfo userInfo = SecurityUtils.getUserInfo();
         sbIds.forEach(item->{
             SbInfo sbInfo = new SbInfo();
-            sbInfo.setStatus(SbInfoStatusEnum.IN_USE.getValue());
+            sbInfo.setId(item);
+            sbInfo.setStatus(sbInfoDTO.getStatus());
             sbInfo.setPositionId(sbInfoDTO.getPositionId());
-
+            mapper.updateByPrimaryKeySelective(sbInfo);
             SbMeasureLog log = new SbMeasureLog();
             log.setSbId(item);
             log.setId(IdGeneratorUtils.getObjectId());