ソースを参照

Revert "试验-委托单"

This reverts commit 42edd2f885cf98e022e19d8ed91f3cf5f8856c04.
LHB 1 日 前
コミット
646641ffbd

+ 3 - 5
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/EntrustInfoServiceImpl.java

@@ -287,11 +287,9 @@ public class EntrustInfoServiceImpl extends BaseServiceImpl<EntrustInfoMapper, E
                 if(entrustInfo.getStatus()!=2&&entrustInfo.getStatus()!=3){
                     throw new ServiceException("该委托单不能废除"+entrustInfo.getEntrustNo());
                 }
-				// mybatis plus 默认的updateById 会跳过null值字段, 改为 lambda 方式
-                entrustInfoMapper.update(null,Wrappers.<EntrustInfo>lambdaUpdate()
-						.set(EntrustInfo::getStatus, 1)
-						.set(EntrustInfo::getEntrustEPdf, null)
-						.eq(EntrustInfo::getId, Long.parseLong(i)));
+                entrustInfo.setEntrustEPdf(null);
+                entrustInfo.setStatus(1);
+                entrustInfoMapper.updateById(entrustInfo);
             }
             List<InformationQuery> queryList = this.informationQueryService.list(Wrappers.<InformationQuery>lambdaQuery().in(InformationQuery::getId, Arrays.asList(ids)));
             if (queryList.size() == 0) {