|
|
@ -753,6 +753,9 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BaseResponse baseResponse = checkRelId(codeEnttity, unitFk);
|
|
|
|
BaseResponse baseResponse = checkRelId(codeEnttity, unitFk);
|
|
|
|
|
|
|
|
if (baseResponse != null) {
|
|
|
|
|
|
|
|
deleteEmptyBillNo(orderEntity);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//判断证书是否过期
|
|
|
|
//判断证书是否过期
|
|
|
|
// if (codeEnttity.getRelId() != null && bussinessTypeEntity.isCheckCertExpire()) {
|
|
|
|
// if (codeEnttity.getRelId() != null && bussinessTypeEntity.isCheckCertExpire()) {
|
|
|
@ -766,6 +769,7 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
BaseResponse invRes = checkInv(bussinessTypeEntity, codeEnttity);
|
|
|
|
BaseResponse invRes = checkInv(bussinessTypeEntity, codeEnttity);
|
|
|
|
if (invRes != null) {
|
|
|
|
if (invRes != null) {
|
|
|
|
|
|
|
|
deleteEmptyBillNo(orderEntity);
|
|
|
|
return invRes;
|
|
|
|
return invRes;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
genDetaiEntity = codeEnttity;
|
|
|
|
genDetaiEntity = codeEnttity;
|
|
|
@ -1083,6 +1087,15 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void deleteEmptyBillNo(IoOrderEntity orderEntity) {
|
|
|
|
|
|
|
|
boolean r1 = orderDetailBizService.isExit(orderEntity.getBillNo());
|
|
|
|
|
|
|
|
boolean r2 = ioOrderDetailCodeService.isExit(orderEntity.getBillNo());
|
|
|
|
|
|
|
|
if (!r1 && !r2) {
|
|
|
|
|
|
|
|
orderService.deleteByBillNo(orderEntity.getBillNo());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@PostMapping("warehouse/inout/saveTempCode")
|
|
|
|
@PostMapping("warehouse/inout/saveTempCode")
|
|
|
|
@Log(title = "单据管理", businessType = BusinessType.UPDATE)
|
|
|
|
@Log(title = "单据管理", businessType = BusinessType.UPDATE)
|
|
|
|