parent
ed5d9d2985
commit
214702748e
@ -0,0 +1,84 @@
|
||||
package com.dsic.gj_erp.bean.zyjh;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 余料出入口流水
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("dm_yl_in_out")
|
||||
public class DmYlInOut {
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
private String 余料编号;//余料编号,套料图中存在编号时产生
|
||||
|
||||
private String 规格;
|
||||
|
||||
private String 炉批号;
|
||||
|
||||
private String 重量;
|
||||
|
||||
private String 数量="1";
|
||||
|
||||
private String 来源船号;//来源船号
|
||||
|
||||
private String 来源批量;//来源批量
|
||||
|
||||
private String 来源图纸;//来源图纸
|
||||
|
||||
private String 物品型号;
|
||||
|
||||
private String 物品规格;
|
||||
|
||||
private String 切割日期;
|
||||
|
||||
private String 使用船号;//使用船号
|
||||
|
||||
private String 使用批量;//使用批量
|
||||
|
||||
private String 使用分段;//使用分段
|
||||
|
||||
private String 使用图纸;//使用图纸
|
||||
|
||||
private String 使用日期;//同打印日期
|
||||
|
||||
private BigDecimal 板厚;
|
||||
|
||||
private BigDecimal 板宽;
|
||||
|
||||
private BigDecimal 板长;
|
||||
|
||||
private String 出入库日期;
|
||||
|
||||
private String 出入库人;
|
||||
|
||||
private String 出入库;//出库,入库
|
||||
|
||||
public static DmYlInOut 入库流水(DmYlInfo item, String userCode){
|
||||
DmYlInOut dmYlInOut = new DmYlInOut();
|
||||
BeanUtil.copyProperties(item,dmYlInOut);
|
||||
dmYlInOut.setId(null);
|
||||
dmYlInOut.set出入库("入库");
|
||||
dmYlInOut.set出入库人(userCode);
|
||||
dmYlInOut.set出入库日期(item.get入库日期());
|
||||
return dmYlInOut;
|
||||
}
|
||||
|
||||
public static DmYlInOut 出库流水(DmYlInfo item, String userCode, String 出库日期){
|
||||
DmYlInOut dmYlInOut = new DmYlInOut();
|
||||
BeanUtil.copyProperties(item,dmYlInOut);
|
||||
dmYlInOut.set出入库("出库");
|
||||
dmYlInOut.set出入库人(userCode);
|
||||
dmYlInOut.set出入库日期(出库日期);
|
||||
return dmYlInOut;
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.dsic.gj_erp.mapper.zyjh;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.dsic.gj_erp.bean.zyjh.DmYlInOut;
|
||||
import com.dsic.gj_erp.bean.zyjh.DmYlInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface DmYlInOutMapper extends BaseMapper<DmYlInOut> {
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.dsic.gj_erp.service.zyjh;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.dsic.gj_erp.bean.zyjh.DmYlInOut;
|
||||
import com.dsic.gj_erp.bean.zyjh.DmYlInfo;
|
||||
import com.dsic.gj_erp.mapper.zyjh.DmYlInOutMapper;
|
||||
import com.dsic.gj_erp.mapper.zyjh.DmYlInfoMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class DmYlInOutService extends ServiceImpl<DmYlInOutMapper, DmYlInOut> {
|
||||
}
|
Loading…
Reference in new issue