|  | @@ -6,11 +6,9 @@ import com.ruoyi.common.core.domain.AjaxResult;
 | 
	
		
			
				|  |  |  import com.ruoyi.common.utils.StringUtils;
 | 
	
		
			
				|  |  |  import com.ruoyi.warehouseBusiness.domain.TWarehouseBills;
 | 
	
		
			
				|  |  |  import com.ruoyi.warehouseBusiness.service.ITWarehouseBillsService;
 | 
	
		
			
				|  |  | +import io.lettuce.core.dynamic.annotation.Param;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.PostMapping;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RequestBody;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @RestController
 | 
	
		
			
				|  |  |  @RequestMapping("/splitsingle/updateWareSign")
 | 
	
	
		
			
				|  | @@ -20,11 +18,29 @@ public class TSignController extends BaseController {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private ITWarehouseBillsService tWarehousebillsService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    //旧单的id与新单的所有的信息,拆成两份,旧单的箱量为原数量减去新单的数量
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 旧单的id与新单的所有的信息,拆成两份,旧单的箱量为原数量减去新单的数量
 | 
	
		
			
				|  |  | +     * @param tWarehousebills            仓库出入表
 | 
	
		
			
				|  |  | +     * @param tWarehousebillsCntr        订单从表
 | 
	
		
			
				|  |  | +     * @param tWarehousebillsCntritems   箱明细表
 | 
	
		
			
				|  |  | +     * @return
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  |      @PostMapping("/wareChaiSign")
 | 
	
		
			
				|  |  | -    public AjaxResult updateSignChai(@RequestBody TWarehouseBills tWarehouseBills) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        return toAjax(tWarehousebillsService.updateTWarehousebillsList(tWarehouseBills));
 | 
	
		
			
				|  |  | +    public AjaxResult updateSignChai(@RequestParam String tWarehousebills,
 | 
	
		
			
				|  |  | +                                     @RequestParam String tWarehousebillsCntr,
 | 
	
		
			
				|  |  | +                                     @RequestParam String tWarehousebillsCntritems,
 | 
	
		
			
				|  |  | +                                     @RequestParam("fOriginalbillno") String fOriginalbillno) {
 | 
	
		
			
				|  |  | +        if (StringUtils.isEmpty(tWarehousebills)){
 | 
	
		
			
				|  |  | +            return AjaxResult.error("未找到订单主表信息,请确认");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (StringUtils.isEmpty(tWarehousebillsCntr)){
 | 
	
		
			
				|  |  | +            return AjaxResult.error("未找到订单从表信息,请确认");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (StringUtils.isEmpty(tWarehousebillsCntritems)){
 | 
	
		
			
				|  |  | +            return AjaxResult.error("未找到箱明细表信息,请确认");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        //旧单可以拆,新单不可以拆,拆出的新单的箱数
 | 
	
		
			
				|  |  | +        return tWarehousebillsService.updateMessageSign(tWarehousebills,tWarehousebillsCntr,tWarehousebillsCntritems,fOriginalbillno);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }
 |