|
|
@@ -331,9 +331,6 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
//检查转单状态
|
|
|
String acceptstatus = purchase.getPu_acceptstatuscode();
|
|
|
|
|
|
- if ("TURNIN".equals(acceptstatus)){
|
|
|
- return Result.error(ExceptionCode.TURNIN_EXIST);
|
|
|
- }
|
|
|
if ("CLOSED".equals(acceptstatus)){
|
|
|
return Result.error(ExceptionCode.CLOSED_EXIST);
|
|
|
}
|
|
|
@@ -403,16 +400,10 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
purchasedetailMapper.updateByPrimaryKeySelective(purchaseDetail);
|
|
|
}
|
|
|
}
|
|
|
- //更新主表入库状态
|
|
|
- purchase.setPu_acceptstatus("已入库");
|
|
|
- purchase.setPu_acceptstatuscode("TURNIN");
|
|
|
-
|
|
|
DocBaseDTO baseDTO = new DocBaseDTO();
|
|
|
baseDTO.setId(pi_id);
|
|
|
baseDTO.setCode(piInoutno);
|
|
|
baseDTO.setName("采购验收单");
|
|
|
- //更新存在字段
|
|
|
- int affect = getMapper().updateByPrimaryKeySelective(purchase);
|
|
|
return Result.success(baseDTO);
|
|
|
}
|
|
|
|