|
|
|
@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import com.dsic.gj_erp.annotation.AuthFunction;
|
|
|
|
|
import com.dsic.gj_erp.bean.ResultBean;
|
|
|
|
|
import com.dsic.gj_erp.bean.jhgk.DmYdjh;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.Ycldw;
|
|
|
|
|
import com.dsic.gj_erp.bean.zyjh.YcldwInfo;
|
|
|
|
|
import com.dsic.gj_erp.controller.zyjh.dto.*;
|
|
|
|
|
import com.dsic.gj_erp.exception.ServiceException;
|
|
|
|
@ -60,6 +61,18 @@ public class ZyjhController {
|
|
|
|
|
ycldwInfoService.updatePw(dto.getYcldwInfo());
|
|
|
|
|
wsHandler.sendPwComplete((JSONObject) JSONObject.toJSON(dto.getYcldwInfo()));
|
|
|
|
|
}
|
|
|
|
|
if ("HXFK".equals(dto.getZxZtName())){
|
|
|
|
|
ycldwInfoService.updatePw(dto.getYcldwInfo());
|
|
|
|
|
wsHandler.sendHXComplete((JSONObject) JSONObject.toJSON(dto.getYcldwInfo()));
|
|
|
|
|
}
|
|
|
|
|
if ("QGFK".equals(dto.getZxZtName())){
|
|
|
|
|
//无需划线,从理料间获取时才更新垛位信息
|
|
|
|
|
if ("42".equals(dto.getZt())){
|
|
|
|
|
ycldwInfoService.updatePw(dto.getYcldwInfo());
|
|
|
|
|
}
|
|
|
|
|
wsHandler.sendHXComplete((JSONObject) JSONObject.toJSON(dto.getYcldwInfo()));
|
|
|
|
|
wsHandler.sendQGComplete((JSONObject) JSONObject.toJSON(dto.getYcldwInfo()));
|
|
|
|
|
}
|
|
|
|
|
zyjhService.updateBatchById(list);
|
|
|
|
|
|
|
|
|
|
return new ResultBean<>();
|
|
|
|
@ -175,8 +188,8 @@ public class ZyjhController {
|
|
|
|
|
* 获取预处理垛位信息
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("ycldw")
|
|
|
|
|
public ResultBean<?> ycldw(){
|
|
|
|
|
return new ResultBean<>(ycldwService.ycldwList());
|
|
|
|
|
public ResultBean<?> ycldw(String type){
|
|
|
|
|
return new ResultBean<>(ycldwService.ycldwList(type));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -206,6 +219,7 @@ public class ZyjhController {
|
|
|
|
|
shangLiao.setSljhrq(dmYdjh.getSljhrq());
|
|
|
|
|
shangLiao.setQgjhrq(dmYdjh.getSljhrq());
|
|
|
|
|
shangLiao.setBfr( (String) request.getAttribute("yhms"));
|
|
|
|
|
shangLiao.setType(Ycldw.DwTypeEnum.YCL);
|
|
|
|
|
//更新预处理垛位信息
|
|
|
|
|
if (!shangLiao.checkCkwp()){
|
|
|
|
|
//throw new ServiceException(10009,"物品库存不存在,或库存信息错误");
|
|
|
|
@ -244,7 +258,15 @@ public class ZyjhController {
|
|
|
|
|
|
|
|
|
|
//todo 更新库存信息
|
|
|
|
|
|
|
|
|
|
wsHandler.sendSlComplete((JSONObject)JSONObject.toJSON(info));
|
|
|
|
|
switch (sl.getType()){
|
|
|
|
|
case YCL:
|
|
|
|
|
wsHandler.sendSlComplete((JSONObject)JSONObject.toJSON(info));
|
|
|
|
|
break;
|
|
|
|
|
case LLJ:
|
|
|
|
|
wsHandler.sendLLComplete((JSONObject)JSONObject.toJSON(info));
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new ResultBean<>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|