初步增加请购单
This commit is contained in:
@@ -256,7 +256,9 @@ public class DepotHeadService {
|
||||
*/
|
||||
public String[] getDepotArray(String subType) throws Exception {
|
||||
String [] depotArray = null;
|
||||
if(!BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(subType) && !BusinessConstants.SUB_TYPE_SALES_ORDER.equals(subType)) {
|
||||
if(!BusinessConstants.SUB_TYPE_PURCHASE_APPLY.equals(subType)
|
||||
&& !BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(subType)
|
||||
&& !BusinessConstants.SUB_TYPE_SALES_ORDER.equals(subType)) {
|
||||
String depotIds = depotService.findDepotStrByCurrentUser();
|
||||
depotArray = StringUtil.isNotEmpty(depotIds) ? depotIds.split(",") : null;
|
||||
}
|
||||
|
||||
@@ -612,7 +612,8 @@ public class DepotItemService {
|
||||
if (StringUtil.isExist(rowObj.get("depotId"))) {
|
||||
depotItem.setDepotId(rowObj.getLong("depotId"));
|
||||
} else {
|
||||
if(!BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())
|
||||
if(!BusinessConstants.SUB_TYPE_PURCHASE_APPLY.equals(depotHead.getSubType())
|
||||
&& !BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())
|
||||
&& !BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) {
|
||||
throw new BusinessRunTimeException(ExceptionConstants.DEPOT_HEAD_DEPOT_FAILED_CODE,
|
||||
String.format(ExceptionConstants.DEPOT_HEAD_DEPOT_FAILED_MSG));
|
||||
|
||||
Reference in New Issue
Block a user