pad接口-请领单-回退单重新提交:增加验证-如果物料全部被移除则不允许再次提交
This commit is contained in:
parent
233b6acb22
commit
6633fa5dd8
|
|
@ -271,6 +271,16 @@ public class QingLingServiceImpl implements IQinglingApi {
|
|||
return result;
|
||||
}
|
||||
|
||||
//检测是否有物料
|
||||
QueryWrapper<NuInvoicingQldInfo> infoQW = new QueryWrapper<>();
|
||||
infoQW.eq("qld_no",dto.getQldNo());
|
||||
List<NuInvoicingQldInfo> infoList = invoicingQldInfoMapper.selectList(infoQW);
|
||||
if(CollectionUtils.isEmpty(infoList)){
|
||||
result.put("status", "faild");
|
||||
result.put("message", "不存在物料,无法提交");
|
||||
return result;
|
||||
}
|
||||
|
||||
//回退单-提交
|
||||
QueryWrapper<NuInvoicingQldMain> qw = new QueryWrapper<>();
|
||||
qw.eq("qld_no", dto.getQldNo());
|
||||
|
|
|
|||
Loading…
Reference in New Issue