1.修正作业计划执行拖拽报工失败问题

2.增加预配盘原则原则相关功能
3.抛丸派工增加材质列
master
董哲奇 5 months ago
parent 5a6c9475af
commit e7a207c0a6

@ -320,6 +320,22 @@ public class DmYdjhLj implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private String lljhrq; // 理料计划日期 private String lljhrq; // 理料计划日期
//=====预配盘相关==============
@TableField(exist = false)
private String yzDcCh;
@TableField(exist = false)
private String yzDcPl;
@TableField(exist = false)
private String yzDcFd;
@TableField(exist = false)
private String yzZl;
@TableField(exist = false)
private String yzTz;
@TableField(exist = false)
private String yzLx;
@TableField(exist = false)
private String yzXj;
public boolean checkZt(){ public boolean checkZt(){
return !"03".equals(this.pkZt)||!"03".equals(this.qjgZt)||!"03".equals(this.dmZt); return !"03".equals(this.pkZt)||!"03".equals(this.qjgZt)||!"03".equals(this.dmZt);
} }

@ -0,0 +1,30 @@
package com.dsic.gj_erp.bean.zyjh;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class DmYppyz {
@TableId(type = IdType.AUTO)
public Integer id;
public String dcCh;
private String dcPl;
private String dcFd;
private String kw;
private String zl;
private String tz;
private String lx;
private String xj;
}

@ -29,8 +29,9 @@ public class YcldwInfo {
private String zl; private String zl;
private String tlth; private String tlth;
private String wph; private String wph;//对应材质
private String wlh; private String wlh;//对应物品号
private String lph;//对应物料号
private String wpgg; private String wpgg;
private String nbsbm;//内码 private String nbsbm;//内码
private String sljhrq; private String sljhrq;

@ -0,0 +1,53 @@
package com.dsic.gj_erp.controller.zyjh;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.dsic.gj_erp.bean.ResultBean;
import com.dsic.gj_erp.bean.zyjh.DmYppyz;
import com.dsic.gj_erp.service.zyjh.DmYppyzService;
import lombok.AllArgsConstructor;
import org.springframework.transaction.annotation.Transactional;
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 java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@RestController
@RequestMapping("yppyz")
@AllArgsConstructor
public class DmYppyzController {
private final DmYppyzService service;
@PostMapping("submit")
@Transactional(rollbackFor = Exception.class)
public ResultBean<?> list(@RequestBody Map<String,List<DmYppyz>> map){
if (map.get("add")!=null){
map.get("add").forEach(service::save);
}
if (map.get("edit")!=null){
service.updateBatchById(map.get("edit"));
}
if (map.get("remove")!=null){
List<Integer> remove = map.get("remove").stream().map(DmYppyz::getId).collect(Collectors.toList());
service.removeByIds(remove);
}
return new ResultBean<>();
}
@PostMapping("list")
public ResultBean<?> list(@RequestBody DmYppyz entity){
List<DmYppyz> list = service.list(Wrappers.<DmYppyz>lambdaQuery()
.eq(StrUtil.isNotEmpty(entity.getDcCh()), DmYppyz::getDcCh, entity.getDcCh())
);
return new ResultBean<>(list);
}
}

@ -0,0 +1,9 @@
package com.dsic.gj_erp.mapper.zyjh;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsic.gj_erp.bean.zyjh.DmYppyz;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface DmYppyzMapper extends BaseMapper<DmYppyz> {
}

@ -0,0 +1,10 @@
package com.dsic.gj_erp.service.zyjh;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsic.gj_erp.bean.zyjh.DmYppyz;
import com.dsic.gj_erp.mapper.zyjh.DmYppyzMapper;
import org.springframework.stereotype.Service;
@Service
public class DmYppyzService extends ServiceImpl<DmYppyzMapper, DmYppyz> {
}

@ -374,18 +374,20 @@
dm_qfxq.xzglxq_old, dm_qfxq.xzglxq_old,
dm_qfxq.xqzt, dm_qfxq.xqzt,
dm_qfxq.dzglxq, dm_qfxq.dzglxq,
dm_qfxq.dzglxq_old dm_qfxq.dzglxq_old,
yz.dc_ch yzDcCh,
yz.dc_pl yzDcPl,
yz.dc_fd yzDcFd,
yz.zl yzZl,
yz.tz yzTz,
yz.lx yzLx,
yz.xj yzXj
FROM FROM
dm_ydjh_lj LEFT JOIN dm_ydjh on dm_ydjh.dc_ch=dm_ydjh_lj.czbh and dm_ydjh.dc_pl= dm_ydjh_lj.pl and dm_ydjh.tzbh =dm_ydjh_lj.tlth dm_ydjh_lj LEFT JOIN dm_ydjh on dm_ydjh.dc_ch=dm_ydjh_lj.czbh and dm_ydjh.dc_pl= dm_ydjh_lj.pl and dm_ydjh.tzbh =dm_ydjh_lj.tlth
and and
dm_ydjh.dc_pl= dm_ydjh_lj.fd left join dm_qfxq on dm_qfxq.dc_ch = dm_ydjh_lj.czbh and dm_qfxq.dc_pl=dm_ydjh_lj.pl and dm_qfxq.dc_fd=dm_ydjh_lj.fd dm_ydjh.dc_pl= dm_ydjh_lj.fd left join dm_qfxq on dm_qfxq.dc_ch = dm_ydjh_lj.czbh and dm_qfxq.dc_pl=dm_ydjh_lj.pl and dm_qfxq.dc_fd=dm_ydjh_lj.fd
left join dm_yppyz yz on dm_ydjh_lj.czbh=yz.dc_ch and dm_ydjh_lj.pl=yz.dc_pl and dm_ydjh_lj.fd=yz.dc_fd and substring(dm_ydjh_lj.tlth,8,1)=yz.zl
where 1=1 where 1=1
<if test=" dcch!=null and dcch!=''"> <if test=" dcch!=null and dcch!=''">
and dm_ydjh_lj.czbh=#{dcch} and dm_ydjh_lj.czbh=#{dcch}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dsic.gj_erp.mapper.zyjh.YcldwInfoMapper">
</mapper>

@ -27,13 +27,14 @@
<result column="ydid" property="ydid" jdbcType="VARCHAR" /> <result column="ydid" property="ydid" jdbcType="VARCHAR" />
<result column="wlh" property="wlh" jdbcType="VARCHAR" /> <result column="wlh" property="wlh" jdbcType="VARCHAR" />
<result column="nbsbm" property="nbsbm" jdbcType="VARCHAR" /> <result column="nbsbm" property="nbsbm" jdbcType="VARCHAR" />
<result column="lph" property="lph" jdbcType="VARCHAR" />
</collection> </collection>
</resultMap> </resultMap>
<sql id="ycldwInfo" > <sql id="ycldwInfo" >
b.id info_id,b.dw_id info_dw_id,b.ceng info_ceng,b.czbh info_czbh,b.pl info_pl,b.fd info_fd,b.kw info_kw,b.zl info_zl, b.id info_id,b.dw_id info_dw_id,b.ceng info_ceng,b.czbh info_czbh,b.pl info_pl,b.fd info_fd,b.kw info_kw,b.zl info_zl,
b.tlth info_tlth,b.wpgg info_wpgg,b.wph info_wph,b.sljhrq info_sljhrq,b.qgjhrq info_qgjhrq,b.bfr info_bfr, b.tlth info_tlth,b.wpgg info_wpgg,b.wph info_wph,b.sljhrq info_sljhrq,b.qgjhrq info_qgjhrq,b.bfr info_bfr,
b.bfrq info_bfrq,b.zt info_zt,b.ydid info_ydid,b.wlh info_wlh,b.nbsbm info_nbsbm b.bfrq info_bfrq,b.zt info_zt,b.ydid info_ydid,b.wlh info_wlh,b.nbsbm info_nbsbm,b.lph info_lph
</sql> </sql>
<select id="ycldwList" resultMap="ycldwVo"> <select id="ycldwList" resultMap="ycldwVo">

Loading…
Cancel
Save