|
@@ -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) {
|