星空对接接口开发
This commit is contained in:
parent
57ca540168
commit
c7a8432cfe
|
@ -132,6 +132,14 @@ public class Poundmst extends BaseEntity
|
|||
@Excel(name = "重量和")
|
||||
private BigDecimal carmqtysum;
|
||||
|
||||
/** 计划重量 */
|
||||
@Excel(name = "计划重量")
|
||||
private BigDecimal qty;
|
||||
|
||||
/** 回传重量 */
|
||||
@Excel(name = "回传重量")
|
||||
private BigDecimal resQty;
|
||||
|
||||
/** 序号 */
|
||||
@Excel(name = "序号")
|
||||
private String indexid;
|
||||
|
@ -180,16 +188,28 @@ public class Poundmst extends BaseEntity
|
|||
|
||||
/** 回传星空ID */
|
||||
@Excel(name = "回传星空ID")
|
||||
private Long fid;
|
||||
private String fid;
|
||||
|
||||
/** 回传星空分录ID */
|
||||
@Excel(name = "回传星空分录ID")
|
||||
private Long fentityFentryid;
|
||||
private String fentity_fentryid;
|
||||
|
||||
/** 星空单据类型 */
|
||||
@Excel(name = "星空单据类型")
|
||||
private String oabilltype;
|
||||
|
||||
//仓库名称
|
||||
@Excel(name = "仓库名称")
|
||||
private String cangKuName;
|
||||
|
||||
//仓库编号
|
||||
@Excel(name = "仓库编号")
|
||||
private String cangKuNumber;
|
||||
|
||||
//生产车间编号
|
||||
@Excel(name = "生产车间编号")
|
||||
private String sccjNum;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
|
@ -200,7 +220,31 @@ public class Poundmst extends BaseEntity
|
|||
return id;
|
||||
}
|
||||
|
||||
public void setUsrcode(String usrcode)
|
||||
public String getCangKuName() {
|
||||
return cangKuName;
|
||||
}
|
||||
|
||||
public void setCangKuName(String cangKuName) {
|
||||
this.cangKuName = cangKuName;
|
||||
}
|
||||
|
||||
public String getCangKuNumber() {
|
||||
return cangKuNumber;
|
||||
}
|
||||
|
||||
public void setCangKuNumber(String cangKuNumber) {
|
||||
this.cangKuNumber = cangKuNumber;
|
||||
}
|
||||
|
||||
public String getSccjNum() {
|
||||
return sccjNum;
|
||||
}
|
||||
|
||||
public void setSccjNum(String sccjNum) {
|
||||
this.sccjNum = sccjNum;
|
||||
}
|
||||
|
||||
public void setUsrcode(String usrcode)
|
||||
{
|
||||
this.usrcode = usrcode;
|
||||
}
|
||||
|
@ -210,7 +254,23 @@ public class Poundmst extends BaseEntity
|
|||
return usrcode;
|
||||
}
|
||||
|
||||
public void setSrcbllknd(String srcbllknd)
|
||||
public BigDecimal getQty() {
|
||||
return qty;
|
||||
}
|
||||
|
||||
public void setQty(BigDecimal qty) {
|
||||
this.qty = qty;
|
||||
}
|
||||
|
||||
public BigDecimal getResQty() {
|
||||
return resQty;
|
||||
}
|
||||
|
||||
public void setResQty(BigDecimal resQty) {
|
||||
this.resQty = resQty;
|
||||
}
|
||||
|
||||
public void setSrcbllknd(String srcbllknd)
|
||||
{
|
||||
this.srcbllknd = srcbllknd;
|
||||
}
|
||||
|
@ -566,27 +626,23 @@ public class Poundmst extends BaseEntity
|
|||
return lstedtopr;
|
||||
}
|
||||
|
||||
public void setFid(Long fid)
|
||||
{
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public Long getFid()
|
||||
{
|
||||
public String getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFentityFentryid(Long fentityFentryid)
|
||||
{
|
||||
this.fentityFentryid = fentityFentryid;
|
||||
public void setFid(String fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public Long getFentityFentryid()
|
||||
{
|
||||
return fentityFentryid;
|
||||
public String getFentity_fentryid() {
|
||||
return fentity_fentryid;
|
||||
}
|
||||
|
||||
public void setOabilltype(String oabilltype)
|
||||
public void setFentity_fentryid(String fentity_fentryid) {
|
||||
this.fentity_fentryid = fentity_fentryid;
|
||||
}
|
||||
|
||||
public void setOabilltype(String oabilltype)
|
||||
{
|
||||
this.oabilltype = oabilltype;
|
||||
}
|
||||
|
@ -639,7 +695,7 @@ public class Poundmst extends BaseEntity
|
|||
.append("lstedtopr", getLstedtopr())
|
||||
.append("remark", getRemark())
|
||||
.append("fid", getFid())
|
||||
.append("fentityFentryid", getFentityFentryid())
|
||||
.append("fentity_fentryid", getFentity_fentryid())
|
||||
.append("oabilltype", getOabilltype())
|
||||
.toString();
|
||||
}
|
||||
|
|
|
@ -37,6 +37,14 @@ public interface IPoundmstService extends IService<Poundmst>
|
|||
*/
|
||||
public int insertPoundmst(Poundmst poundmst);
|
||||
|
||||
/**
|
||||
* 新增主榜单信息(mybatis)
|
||||
*
|
||||
* @param poundmst 主榜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPoundmstDpi(Poundmst poundmst);
|
||||
|
||||
/**
|
||||
* 修改主榜单信息
|
||||
*
|
||||
|
|
|
@ -61,6 +61,20 @@ public class PoundmstServiceImpl extends ServiceImpl<PoundmstMapper, Poundmst> i
|
|||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增主榜单信息(mybatis)
|
||||
*
|
||||
* @param poundmst 主榜单信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPoundmstDpi(Poundmst poundmst)
|
||||
{
|
||||
poundmst.initAddFields(poundmst);
|
||||
int i = poundmstMapper.insertPoundmst(poundmst);
|
||||
return i;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改主榜单信息
|
||||
*
|
||||
|
|
|
@ -3,7 +3,9 @@ package com.ruoyi.webApi;
|
|||
import com.alibaba.fastjson2.JSONArray;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.ruoyi.bill.domain.Poundappli;
|
||||
import com.ruoyi.bill.domain.Poundmst;
|
||||
import com.ruoyi.bill.service.IPoundappliService;
|
||||
import com.ruoyi.bill.service.IPoundmstService;
|
||||
import com.ruoyi.common.core.domain.entity.SysDictData;
|
||||
import com.ruoyi.system.service.ISysConfigService;
|
||||
import com.ruoyi.system.service.ISysDictTypeService;
|
||||
|
@ -35,6 +37,8 @@ public class ApiTask {
|
|||
private ISysDictTypeService dictTypeService;
|
||||
@Autowired
|
||||
private IPoundappliService poundappliService;
|
||||
@Autowired
|
||||
private IPoundmstService poundmstService;
|
||||
|
||||
//登录星空接口
|
||||
public String OAlogin(){
|
||||
|
@ -283,7 +287,11 @@ public class ApiTask {
|
|||
poundappli.setFentity_fentryid(fentryid);
|
||||
poundappli.setSrcbillusrcode(sourceBillNo);
|
||||
poundappli.setOabilltype(formid);//星空单据类型
|
||||
poundappli.setSrcbilltype("发货通知单");//来源单据类型
|
||||
if("SAL_DELIVERYNOTICE".equals(formid)){
|
||||
poundappli.setSrcbilltype("发货通知单");//来源单据类型
|
||||
}else {
|
||||
poundappli.setSrcbilltype("收料通知单");//来源单据类型
|
||||
}
|
||||
|
||||
poundappliService.insertPoundappliDpi(poundappli);
|
||||
}
|
||||
|
@ -294,7 +302,80 @@ public class ApiTask {
|
|||
* @param oaData 星空数据
|
||||
*/
|
||||
public void makeMainPoundFormData(String formid,String oaData){
|
||||
// 1. 将 oaData 解析为 JSONArray(二维数组)
|
||||
JSONArray dataList = JSONArray.parseArray(oaData);
|
||||
|
||||
//SP_InStock:生产入库单 STK_TRANSFERAPPLY:调拨申请单
|
||||
if ("SP_InStock".equals(formid)){
|
||||
// 2. 遍历每一行数据
|
||||
for (int i = 0; i < dataList.size(); i++) {
|
||||
JSONArray row = dataList.getJSONArray(i);
|
||||
String billno = row.getString(0); // 单号
|
||||
String dateStr = row.getString(1); // 磅单日期
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ISO_LOCAL_DATE_TIME;
|
||||
LocalDateTime localDateTime = LocalDateTime.parse(dateStr, formatter);
|
||||
Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
|
||||
String materialNumber = row.getString(24); // 物料编码
|
||||
String materialName = row.getString(25); // 物料编码
|
||||
String fid = row.getString(26); // 单据头内码
|
||||
String fentryid = row.getString(27); // 单据体内码
|
||||
String cangkuName = row.getString(28); // 仓库名称
|
||||
String cangkuNumber = row.getString(29); // 仓库编码
|
||||
String sccjNumber = row.getString(30); // 生产车间编码
|
||||
String bbno = row.getString(31); // 班组编码
|
||||
|
||||
// 3. 保存
|
||||
Poundmst poundmst = new Poundmst();
|
||||
poundmst.setId(UUID.randomUUID().toString());
|
||||
poundmst.setBsndt(date);
|
||||
poundmst.setSrcbllid(billno);
|
||||
poundmst.setItmname(materialName);
|
||||
poundmst.setItmno(materialNumber);
|
||||
poundmst.setFid(fid);
|
||||
poundmst.setFentity_fentryid(fentryid);
|
||||
poundmst.setCangKuName(cangkuName);
|
||||
poundmst.setCangKuNumber(cangkuNumber);
|
||||
poundmst.setSccjNum(sccjNumber);
|
||||
poundmst.setBbno(bbno);
|
||||
poundmst.setOabilltype(formid);//星空单据类型
|
||||
poundmst.setSrcbllknd("简单生产入库单");//来源单据类型
|
||||
|
||||
poundmstService.insertPoundmstDpi(poundmst);
|
||||
}
|
||||
}else {
|
||||
// 2. 遍历每一行数据
|
||||
for (int i = 0; i < dataList.size(); i++) {
|
||||
JSONArray row = dataList.getJSONArray(i);
|
||||
String billno = row.getString(1); // 单号
|
||||
String dateStr = row.getString(2); // 磅单日期
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ISO_LOCAL_DATE_TIME;
|
||||
LocalDateTime localDateTime = LocalDateTime.parse(dateStr, formatter);
|
||||
Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
|
||||
String materialName = row.getString(3); // 品名
|
||||
String specification = row.getString(4); // 规格
|
||||
String msrunit = row.getString(7); // 单位
|
||||
BigDecimal qty = row.getBigDecimal(8); // 申请数量
|
||||
String fid = row.getString(13); // 单据头内码
|
||||
String fentryid = row.getString(14); // 单据体内码
|
||||
|
||||
// 3. 保存
|
||||
// 3. 保存过磅申请
|
||||
Poundmst poundmst = new Poundmst();
|
||||
poundmst.setId(UUID.randomUUID().toString());
|
||||
poundmst.setBsndt(date);
|
||||
poundmst.setSrcbllid(billno);
|
||||
poundmst.setFid(fid);
|
||||
poundmst.setItmname(materialName);
|
||||
poundmst.setSpecification(specification);
|
||||
poundmst.setMsrunit(msrunit);
|
||||
poundmst.setQty(qty);
|
||||
poundmst.setFentity_fentryid(fentryid);
|
||||
poundmst.setOabilltype(formid);//星空单据类型
|
||||
poundmst.setSrcbllknd("调拨申请单");//来源单据类型
|
||||
|
||||
poundmstService.insertPoundmstDpi(poundmst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -126,7 +126,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="oabilltype != null">oabilltype,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
|
||||
SELECT
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
|
@ -163,12 +162,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="oabilltype != null">#{oabilltype},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
|
||||
FROM DUAL
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM t_data_poundappli
|
||||
WHERE fentity_fentryid = #{fentity_fentryid}
|
||||
)
|
||||
WHERE (fentity_fentryid = #{fentity_fentryid} OR (fentity_fentryid IS NULL AND #{fentity_fentryid} IS NULL)) )
|
||||
</insert>
|
||||
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="unitlen" column="unitlen" />
|
||||
<result property="carnosum" column="carnosum" />
|
||||
<result property="carmqtysum" column="carmqtysum" />
|
||||
<result property="qty" column="qty" />
|
||||
<result property="resQty" column="resQty" />
|
||||
<result property="indexid" column="indexid" />
|
||||
<result property="steeltype" column="steeltype" />
|
||||
<result property="linetype" column="linetype" />
|
||||
|
@ -45,17 +47,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="lstedtopr" column="lstedtopr" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="fid" column="fid" />
|
||||
<result property="fentityFentryid" column="fentity_fentryid" />
|
||||
<result property="fentity_fentryid" column="fentity_fentryid" />
|
||||
<result property="oabilltype" column="oabilltype" />
|
||||
<result property="cangKuName" column="cangKuName" />
|
||||
<result property="cangKuNumber" column="cangKuNumber" />
|
||||
<result property="sccjNum" column="sccjNum" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPoundmstVo">
|
||||
select id, usrcode, srcbllknd, srcbllid, bsndt, bsnid, bllstt, itmno, itmcode, itmname, specification, msrunit, trnunitid, trnunitname, bsunitid, bsunitname, sendunitid, sendunitname, recunitid, recunitname, poundid, poundname, boilerno, steeno, unitlen, carnosum, carmqtysum, indexid, steeltype, linetype, lzno, bbno, crtorgid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr, remark, fid, fentity_fentryid, oabilltype from t_data_poundmst
|
||||
select id, usrcode, srcbllknd, srcbllid, bsndt, bsnid, bllstt, itmno, itmcode, itmname, specification, msrunit, trnunitid, trnunitname, bsunitid, bsunitname, sendunitid, sendunitname, recunitid, recunitname, poundid, poundname, boilerno, steeno, unitlen, carnosum, carmqtysum, qty, resQty, indexid, steeltype, linetype, lzno, bbno, crtorgid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr, remark, fid, fentity_fentryid, oabilltype, cangKuName, cangKuNumber, sccjNum from t_data_poundmst
|
||||
</sql>
|
||||
|
||||
<select id="selectPoundmstList" parameterType="Poundmst" resultMap="PoundmstResult">
|
||||
<include refid="selectPoundmstVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="usrcode != null and usrcode != ''"> and usrcode = #{usrcode}</if>
|
||||
<if test="srcbllknd != null and srcbllknd != ''"> and srcbllknd = #{srcbllknd}</if>
|
||||
<if test="srcbllid != null and srcbllid != ''"> and srcbllid = #{srcbllid}</if>
|
||||
|
@ -82,6 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="unitlen != null and unitlen != ''"> and unitlen = #{unitlen}</if>
|
||||
<if test="carnosum != null "> and carnosum = #{carnosum}</if>
|
||||
<if test="carmqtysum != null "> and carmqtysum = #{carmqtysum}</if>
|
||||
<if test="qty != null "> and qty = #{qty}</if>
|
||||
<if test="resQty != null "> and resQty = #{resQty}</if>
|
||||
<if test="indexid != null and indexid != ''"> and indexid = #{indexid}</if>
|
||||
<if test="steeltype != null and steeltype != ''"> and steeltype = #{steeltype}</if>
|
||||
<if test="linetype != null and linetype != ''"> and linetype = #{linetype}</if>
|
||||
|
@ -94,11 +101,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null "> and lstedtdt = #{lstedtdt}</if>
|
||||
<if test="lstedtopr != null and lstedtopr != ''"> and lstedtopr = #{lstedtopr}</if>
|
||||
<if test="fid != null "> and fid = #{fid}</if>
|
||||
<if test="fentityFentryid != null "> and fentity_fentryid = #{fentityFentryid}</if>
|
||||
<if test="fentity_fentryid != null "> and fentity_fentryid = #{fentity_fentryid}</if>
|
||||
<if test="oabilltype != null and oabilltype != ''"> and oabilltype = #{oabilltype}</if>
|
||||
<if test="cangKuName != null and cangKuName != ''"> and cangKuName = #{cangKuName}</if>
|
||||
<if test="cangKuNumber != null and cangKuNumber != ''"> and cangKuNumber = #{cangKuNumber}</if>
|
||||
<if test="sccjNum != null and sccjNum != ''"> and sccjNum = #{sccjNum}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectPoundmstById" parameterType="String" resultMap="PoundmstResult">
|
||||
<include refid="selectPoundmstVo"/>
|
||||
where id = #{id}
|
||||
|
@ -134,6 +144,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="unitlen != null">unitlen,</if>
|
||||
<if test="carnosum != null">carnosum,</if>
|
||||
<if test="carmqtysum != null">carmqtysum,</if>
|
||||
<if test="qty != null">qty,</if>
|
||||
<if test="resQty != null">resQty,</if>
|
||||
<if test="indexid != null">indexid,</if>
|
||||
<if test="steeltype != null">steeltype,</if>
|
||||
<if test="linetype != null">linetype,</if>
|
||||
|
@ -147,10 +159,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtopr != null">lstedtopr,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="fid != null">fid,</if>
|
||||
<if test="fentityFentryid != null">fentity_fentryid,</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid,</if>
|
||||
<if test="oabilltype != null">oabilltype,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cangKuName != null">cangKuName,</if>
|
||||
<if test="cangKuNumber != null">cangKuNumber,</if>
|
||||
<if test="sccjNum != null">sccjNum,</if>
|
||||
</trim>
|
||||
SELECT
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="usrcode != null">#{usrcode},</if>
|
||||
<if test="srcbllknd != null">#{srcbllknd},</if>
|
||||
|
@ -178,6 +194,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="unitlen != null">#{unitlen},</if>
|
||||
<if test="carnosum != null">#{carnosum},</if>
|
||||
<if test="carmqtysum != null">#{carmqtysum},</if>
|
||||
<if test="qty != null">#{qty},</if>
|
||||
<if test="resQty != null">#{resQty},</if>
|
||||
<if test="indexid != null">#{indexid},</if>
|
||||
<if test="steeltype != null">#{steeltype},</if>
|
||||
<if test="linetype != null">#{linetype},</if>
|
||||
|
@ -191,11 +209,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtopr != null">#{lstedtopr},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="fid != null">#{fid},</if>
|
||||
<if test="fentityFentryid != null">#{fentityFentryid},</if>
|
||||
<if test="fentity_fentryid != null">#{fentity_fentryid},</if>
|
||||
<if test="oabilltype != null">#{oabilltype},</if>
|
||||
</trim>
|
||||
<if test="cangKuName != null">#{cangKuName},</if>
|
||||
<if test="cangKuNumber != null">#{cangKuNumber},</if>
|
||||
<if test="sccjNum != null">#{sccjNum},</if>
|
||||
</trim>
|
||||
FROM DUAL
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM t_data_poundmst
|
||||
WHERE (fentity_fentryid = #{fentity_fentryid} OR (fentity_fentryid IS NULL AND #{fentity_fentryid} IS NULL))
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<update id="updatePoundmst" parameterType="Poundmst">
|
||||
update t_data_poundmst
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
|
@ -225,6 +252,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="unitlen != null">unitlen = #{unitlen},</if>
|
||||
<if test="carnosum != null">carnosum = #{carnosum},</if>
|
||||
<if test="carmqtysum != null">carmqtysum = #{carmqtysum},</if>
|
||||
<if test="qty != null">qty = #{qty},</if>
|
||||
<if test="resQty != null">resQty = #{resQty},</if>
|
||||
<if test="indexid != null">indexid = #{indexid},</if>
|
||||
<if test="steeltype != null">steeltype = #{steeltype},</if>
|
||||
<if test="linetype != null">linetype = #{linetype},</if>
|
||||
|
@ -238,8 +267,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtopr != null">lstedtopr = #{lstedtopr},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="fid != null">fid = #{fid},</if>
|
||||
<if test="fentityFentryid != null">fentity_fentryid = #{fentityFentryid},</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid = #{fentity_fentryid},</if>
|
||||
<if test="oabilltype != null">oabilltype = #{oabilltype},</if>
|
||||
<if test="cangKuName != null">cangKuName = #{cangKuName},</if>
|
||||
<if test="cangKuNumber != null">cangKuNumber = #{cangKuNumber},</if>
|
||||
<if test="sccjNum != null">sccjNum = #{sccjNum},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
|
|
@ -6,15 +6,19 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
|||
<!-- 全局参数 -->
|
||||
<settings>
|
||||
<!-- 使全局的映射器启用或禁用缓存 -->
|
||||
<setting name="cacheEnabled" value="true" />
|
||||
<setting name="cacheEnabled" value="true" />
|
||||
|
||||
<!-- 允许JDBC 支持自动生成主键 -->
|
||||
<setting name="useGeneratedKeys" value="true" />
|
||||
<setting name="useGeneratedKeys" value="true" />
|
||||
|
||||
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
|
||||
<setting name="defaultExecutorType" value="SIMPLE" />
|
||||
<!-- 指定 MyBatis 所用日志的具体实现 -->
|
||||
<setting name="logImpl" value="SLF4J" />
|
||||
<!-- 使用驼峰命名法转换字段 -->
|
||||
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
|
||||
</settings>
|
||||
<setting name="defaultExecutorType" value="SIMPLE" />
|
||||
|
||||
<!-- 指定 MyBatis 所用日志的具体实现 -->
|
||||
<setting name="logImpl" value="SLF4J" />
|
||||
|
||||
<!-- 关闭自动下划线转驼峰匹配(即不将 user_name → userName) -->
|
||||
<setting name="mapUnderscoreToCamelCase" value="false" />
|
||||
</settings>
|
||||
|
||||
</configuration>
|
||||
|
|
|
@ -291,9 +291,9 @@
|
|||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="回传星空分录ID" prop="fentityFentryid">
|
||||
<el-form-item label="回传星空分录ID" prop="fentity_fentryid">
|
||||
<el-input
|
||||
v-model="queryParams.fentityFentryid"
|
||||
v-model="queryParams.fentity_fentryid"
|
||||
placeholder="请输入回传星空分录ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
|
@ -403,6 +403,9 @@
|
|||
<el-table-column label="线材类型" align="center" prop="linetype" />
|
||||
<el-table-column label="连铸" align="center" prop="lzno" />
|
||||
<el-table-column label="班别" align="center" prop="bbno" />
|
||||
<el-table-column label="仓库名称" align="center" prop="cangKuName" />
|
||||
<el-table-column label="仓库编号" align="center" prop="cangKuNumber" />
|
||||
<el-table-column label="生产车间编号" align="center" prop="sccjNum" />
|
||||
<el-table-column label="登记部门" align="center" prop="crtorgid" />
|
||||
<el-table-column label="是否启用" align="center" prop="isinuse" />
|
||||
<el-table-column label="创建时间" align="center" prop="crtdt" width="180">
|
||||
|
@ -419,7 +422,7 @@
|
|||
<el-table-column label="最后修改人" align="center" prop="lstedtopr" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<el-table-column label="回传星空ID" align="center" prop="fid" />
|
||||
<el-table-column label="回传星空分录ID" align="center" prop="fentityFentryid" />
|
||||
<el-table-column label="回传星空分录ID" align="center" prop="fentity_fentryid" />
|
||||
<el-table-column label="星空单据类型" align="center" prop="oabilltype">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.oa_formid" :value="scope.row.oabilltype"/>
|
||||
|
@ -555,6 +558,15 @@
|
|||
<el-form-item label="班别" prop="bbno">
|
||||
<el-input v-model="form.bbno" placeholder="请输入班别" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库名称" prop="cangKuName">
|
||||
<el-input v-model="form.cangKuName" placeholder="请输入仓库名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库编号" prop="cangKuNumber">
|
||||
<el-input v-model="form.cangKuNumber" placeholder="请输入仓库编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="生产车间编号" prop="sccjNum">
|
||||
<el-input v-model="form.sccjNum" placeholder="请输入生产车间编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="登记部门" prop="crtorgid">
|
||||
<el-input v-model="form.crtorgid" placeholder="请输入登记部门" />
|
||||
</el-form-item>
|
||||
|
@ -589,8 +601,8 @@
|
|||
<el-form-item label="回传星空ID" prop="fid">
|
||||
<el-input v-model="form.fid" placeholder="请输入回传星空ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回传星空分录ID" prop="fentityFentryid">
|
||||
<el-input v-model="form.fentityFentryid" placeholder="请输入回传星空分录ID" />
|
||||
<el-form-item label="回传星空分录ID" prop="fentity_fentryid">
|
||||
<el-input v-model="form.fentity_fentryid" placeholder="请输入回传星空分录ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="星空单据类型" prop="oabilltype">
|
||||
<el-select v-model="form.oabilltype" placeholder="请选择星空单据类型">
|
||||
|
@ -672,6 +684,9 @@ export default {
|
|||
linetype: null,
|
||||
lzno: null,
|
||||
bbno: null,
|
||||
cangKuName: null,
|
||||
cangKuNumber: null,
|
||||
sccjNum: null,
|
||||
crtorgid: null,
|
||||
isinuse: null,
|
||||
crtdt: null,
|
||||
|
@ -679,7 +694,7 @@ export default {
|
|||
lstedtdt: null,
|
||||
lstedtopr: null,
|
||||
fid: null,
|
||||
fentityFentryid: null,
|
||||
fentity_fentryid: null,
|
||||
oabilltype: null
|
||||
},
|
||||
// 表单参数
|
||||
|
@ -742,6 +757,9 @@ export default {
|
|||
linetype: null,
|
||||
lzno: null,
|
||||
bbno: null,
|
||||
cangKuName: null,
|
||||
cangKuNumber: null,
|
||||
sccjNum: null,
|
||||
crtorgid: null,
|
||||
isinuse: null,
|
||||
crtdt: null,
|
||||
|
@ -750,7 +768,7 @@ export default {
|
|||
lstedtopr: null,
|
||||
remark: null,
|
||||
fid: null,
|
||||
fentityFentryid: null,
|
||||
fentity_fentryid: null,
|
||||
oabilltype: null
|
||||
}
|
||||
this.resetForm("form")
|
||||
|
|
Loading…
Reference in New Issue