修正工单冲销时报空指针错误
This commit is contained in:
parent
475d7a3ae6
commit
7cc5747c08
@ -160,9 +160,12 @@ public class ShopOrderStatisticTransController {
|
||||
InvokeResponse invokeResponse = new InvokeResponse();
|
||||
List<ZShoporderStatisticsTransaction> newList = new ArrayList<>();
|
||||
for (ZShoporderStatisticsTransaction statisticsTransaction : shoporderStatisticsTransactionList) {
|
||||
if(StringUtils.isEmpty(statisticsTransaction.getSid())){
|
||||
throw BusinessException.build("此笔数据还未报工无需取消报工");
|
||||
}
|
||||
// 重新校验一遍是否已经报过工,防止重复报工
|
||||
ZShoporderStatisticsTransaction targetObj = zShoporderStatisticsTransactionMapper.selectById(statisticsTransaction.getSid());
|
||||
if (!"S".equals(targetObj.getSyncStatus())) {
|
||||
if (targetObj==null || !"S".equals(targetObj.getSyncStatus())) {
|
||||
throw BusinessException.build("工单" + targetObj.getShopOrder() + "还未报工无需取消报工");
|
||||
} else {
|
||||
newList.add(targetObj);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user