|  | @@ -2,6 +2,7 @@ package org.jeecg.modules.openApi.controller;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.alibaba.fastjson.JSONArray;
 | 
	
		
			
				|  |  |  import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  |  import lombok.extern.slf4j.Slf4j;
 | 
	
	
		
			
				|  | @@ -13,6 +14,9 @@ import org.jeecg.modules.openApi.entity.ResHttpStatus;
 | 
	
		
			
				|  |  |  import org.jeecg.modules.openApi.entity.SubcontractingOrder;
 | 
	
		
			
				|  |  |  import org.jeecg.modules.openApi.service.IPurchaseWarehousingService;
 | 
	
		
			
				|  |  |  import org.jeecg.modules.openApi.service.SubcontractingOrderService;
 | 
	
		
			
				|  |  | +import org.jeecg.modules.system.entity.SysDictItem;
 | 
	
		
			
				|  |  | +import org.jeecg.modules.system.service.ISysDictItemService;
 | 
	
		
			
				|  |  | +import org.jeecg.modules.system.util.oConvertUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.http.HttpStatus;
 | 
	
		
			
				|  |  |  import org.springframework.http.ResponseEntity;
 | 
	
	
		
			
				|  | @@ -37,6 +41,8 @@ public class SubcontractingOrderController extends JeecgController<Subcontractin
 | 
	
		
			
				|  |  |      private HttpServletRequest request;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private SubcontractingOrderService subcontractingOrderService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private ISysDictItemService sysDictItemService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 根据订单号审核入库单(pda功能) 0000000003
 | 
	
	
		
			
				|  | @@ -66,6 +72,24 @@ public class SubcontractingOrderController extends JeecgController<Subcontractin
 | 
	
		
			
				|  |  |              res.setMsg("审核人姓名不能为空");
 | 
	
		
			
				|  |  |              return new ResponseEntity<>(res, HttpStatus.OK);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        // 仓库比较逻辑,仓库在数据字典里面未配置的,返回错误
 | 
	
		
			
				|  |  | +        String rdWarehouseCode = subcontractingOrderService.getRdrecord01Warehouse(json.getString("id"));
 | 
	
		
			
				|  |  | +        LambdaQueryWrapper<SysDictItem> queryWrapper = new LambdaQueryWrapper<>();
 | 
	
		
			
				|  |  | +        queryWrapper.eq(SysDictItem::getItemText, "pda_warehouse");
 | 
	
		
			
				|  |  | +        List<SysDictItem> dictItemList = sysDictItemService.list(queryWrapper);
 | 
	
		
			
				|  |  | +        String settingWarehouseCode = "";
 | 
	
		
			
				|  |  | +        if (dictItemList.size()>0){
 | 
	
		
			
				|  |  | +            settingWarehouseCode = oConvertUtils.getString(dictItemList.get(0).getItemValue(),"");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (oConvertUtils.isNotEmpty(settingWarehouseCode)){
 | 
	
		
			
				|  |  | +            settingWarehouseCode = ","+settingWarehouseCode+",";
 | 
	
		
			
				|  |  | +            rdWarehouseCode = ","+rdWarehouseCode+",";
 | 
	
		
			
				|  |  | +            if (settingWarehouseCode.indexOf(rdWarehouseCode)==-1){
 | 
	
		
			
				|  |  | +                res.setMsg("不能审核当前仓库的入库单");
 | 
	
		
			
				|  |  | +                return new ResponseEntity<>(res, HttpStatus.OK);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          int st = subcontractingOrderService.toExamine(json.getString("id"),json.getString("cbSysBarCode"),json.getString("cHandler"));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          res.setCode("200");
 |