星空对接接口开发
This commit is contained in:
parent
69b485985d
commit
09f652c939
|
@ -21,6 +21,7 @@ import java.time.ZoneId;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 16358
|
* @author 16358
|
||||||
|
@ -268,6 +269,7 @@ public class ApiTask {
|
||||||
|
|
||||||
// 3. 保存过磅申请
|
// 3. 保存过磅申请
|
||||||
Poundappli poundappli = new Poundappli();
|
Poundappli poundappli = new Poundappli();
|
||||||
|
poundappli.setId(UUID.randomUUID().toString());
|
||||||
poundappli.setBllstate("1");//过磅状态
|
poundappli.setBllstate("1");//过磅状态
|
||||||
poundappli.setBsndt(date);
|
poundappli.setBsndt(date);
|
||||||
poundappli.setUsrcode(billNo);
|
poundappli.setUsrcode(billNo);
|
||||||
|
@ -283,7 +285,7 @@ public class ApiTask {
|
||||||
poundappli.setOabilltype(formid);//星空单据类型
|
poundappli.setOabilltype(formid);//星空单据类型
|
||||||
poundappli.setSrcbilltype("发货通知单");//来源单据类型
|
poundappli.setSrcbilltype("发货通知单");//来源单据类型
|
||||||
|
|
||||||
poundappliService.insertPoundappli(poundappli);
|
poundappliService.insertPoundappliDpi(poundappli);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,78 +90,87 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertPoundappli" parameterType="Poundappli">
|
<insert id="insertPoundappli" parameterType="Poundappli">
|
||||||
insert IGNORE into t_data_poundappli
|
INSERT IGNORE INTO t_data_poundappli
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
<if test="bllstate != null">bllstate,</if>
|
<if test="bllstate != null">bllstate,</if>
|
||||||
<if test="usrcode != null and usrcode != ''">usrcode,</if>
|
<if test="usrcode != null and usrcode != ''">usrcode,</if>
|
||||||
<if test="bsndt != null">bsndt,</if>
|
<if test="bsndt != null">bsndt,</if>
|
||||||
<if test="carno != null">carno,</if>
|
<if test="carno != null">carno,</if>
|
||||||
<if test="itmname != null">itmname,</if>
|
<if test="itmname != null">itmname,</if>
|
||||||
<if test="specification != null">specification,</if>
|
<if test="specification != null">specification,</if>
|
||||||
<if test="sendunitid != null">sendunitid,</if>
|
<if test="sendunitid != null">sendunitid,</if>
|
||||||
<if test="sendunitname != null">sendunitname,</if>
|
<if test="sendunitname != null">sendunitname,</if>
|
||||||
<if test="recentname != null">recentname,</if>
|
<if test="recentname != null">recentname,</if>
|
||||||
<if test="trnentname != null">trnentname,</if>
|
<if test="trnentname != null">trnentname,</if>
|
||||||
<if test="srcpunbll != null">srcpunbll,</if>
|
<if test="srcpunbll != null">srcpunbll,</if>
|
||||||
<if test="srcwghmqty != null">srcwghmqty,</if>
|
<if test="srcwghmqty != null">srcwghmqty,</if>
|
||||||
<if test="srcempmqty != null">srcempmqty,</if>
|
<if test="srcempmqty != null">srcempmqty,</if>
|
||||||
<if test="srccleanmqty != null">srccleanmqty,</if>
|
<if test="srccleanmqty != null">srccleanmqty,</if>
|
||||||
<if test="srcbsndt != null">srcbsndt,</if>
|
<if test="srcbsndt != null">srcbsndt,</if>
|
||||||
<if test="msrunit != null">msrunit,</if>
|
<if test="msrunit != null">msrunit,</if>
|
||||||
<if test="msrname != null">msrname,</if>
|
<if test="msrname != null">msrname,</if>
|
||||||
<if test="itmno != null">itmno,</if>
|
<if test="itmno != null">itmno,</if>
|
||||||
<if test="cardriver != null">cardriver,</if>
|
<if test="cardriver != null">cardriver,</if>
|
||||||
<if test="poundid != null">poundid,</if>
|
<if test="poundid != null">poundid,</if>
|
||||||
<if test="poundname != null">poundname,</if>
|
<if test="poundname != null">poundname,</if>
|
||||||
<if test="srcbillusrcode != null">srcbillusrcode,</if>
|
<if test="srcbillusrcode != null">srcbillusrcode,</if>
|
||||||
<if test="crtorgid != null">crtorgid,</if>
|
<if test="crtorgid != null">crtorgid,</if>
|
||||||
<if test="isinuse != null">isinuse,</if>
|
<if test="isinuse != null and isinuse != ''">isinuse,</if>
|
||||||
<if test="crtdt != null">crtdt,</if>
|
<if test="crtdt != null">crtdt,</if>
|
||||||
<if test="crtopr != null">crtopr,</if>
|
<if test="crtopr != null">crtopr,</if>
|
||||||
<if test="lstedtdt != null">lstedtdt,</if>
|
<if test="lstedtdt != null">lstedtdt,</if>
|
||||||
<if test="lstedtopr != null">lstedtopr,</if>
|
<if test="lstedtopr != null">lstedtopr,</if>
|
||||||
<if test="fid != null">fid,</if>
|
<if test="fid != null">fid,</if>
|
||||||
<if test="fentity_fentryid != null">fentity_fentryid,</if>
|
<if test="fentity_fentryid != null">fentity_fentryid,</if>
|
||||||
<if test="oabilltype != null">oabilltype,</if>
|
<if test="oabilltype != null">oabilltype,</if>
|
||||||
<if test="remark != null">remark,</if>
|
<if test="remark != null">remark,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="id != null">#{id},</if>
|
SELECT
|
||||||
<if test="bllstate != null">#{bllstate},</if>
|
<trim suffixOverrides=",">
|
||||||
<if test="usrcode != null and usrcode != ''">#{usrcode},</if>
|
<if test="id != null">#{id},</if>
|
||||||
<if test="bsndt != null">#{bsndt},</if>
|
<if test="bllstate != null">#{bllstate},</if>
|
||||||
<if test="carno != null">#{carno},</if>
|
<if test="usrcode != null and usrcode != ''">#{usrcode},</if>
|
||||||
<if test="itmname != null">#{itmname},</if>
|
<if test="bsndt != null">#{bsndt},</if>
|
||||||
<if test="specification != null">#{specification},</if>
|
<if test="carno != null">#{carno},</if>
|
||||||
<if test="sendunitid != null">#{sendunitid},</if>
|
<if test="itmname != null">#{itmname},</if>
|
||||||
<if test="sendunitname != null">#{sendunitname},</if>
|
<if test="specification != null">#{specification},</if>
|
||||||
<if test="recentname != null">#{recentname},</if>
|
<if test="sendunitid != null">#{sendunitid},</if>
|
||||||
<if test="trnentname != null">#{trnentname},</if>
|
<if test="sendunitname != null">#{sendunitname},</if>
|
||||||
<if test="srcpunbll != null">#{srcpunbll},</if>
|
<if test="recentname != null">#{recentname},</if>
|
||||||
<if test="srcwghmqty != null">#{srcwghmqty},</if>
|
<if test="trnentname != null">#{trnentname},</if>
|
||||||
<if test="srcempmqty != null">#{srcempmqty},</if>
|
<if test="srcpunbll != null">#{srcpunbll},</if>
|
||||||
<if test="srccleanmqty != null">#{srccleanmqty},</if>
|
<if test="srcwghmqty != null">#{srcwghmqty},</if>
|
||||||
<if test="srcbsndt != null">#{srcbsndt},</if>
|
<if test="srcempmqty != null">#{srcempmqty},</if>
|
||||||
<if test="msrunit != null">#{msrunit},</if>
|
<if test="srccleanmqty != null">#{srccleanmqty},</if>
|
||||||
<if test="msrname != null">#{msrname},</if>
|
<if test="srcbsndt != null">#{srcbsndt},</if>
|
||||||
<if test="itmno != null">#{itmno},</if>
|
<if test="msrunit != null">#{msrunit},</if>
|
||||||
<if test="cardriver != null">#{cardriver},</if>
|
<if test="msrname != null">#{msrname},</if>
|
||||||
<if test="poundid != null">#{poundid},</if>
|
<if test="itmno != null">#{itmno},</if>
|
||||||
<if test="poundname != null">#{poundname},</if>
|
<if test="cardriver != null">#{cardriver},</if>
|
||||||
<if test="srcbillusrcode != null">#{srcbillusrcode},</if>
|
<if test="poundid != null">#{poundid},</if>
|
||||||
<if test="crtorgid != null">#{crtorgid},</if>
|
<if test="poundname != null">#{poundname},</if>
|
||||||
<if test="isinuse != null">#{isinuse},</if>
|
<if test="srcbillusrcode != null">#{srcbillusrcode},</if>
|
||||||
<if test="crtdt != null">#{crtdt},</if>
|
<if test="crtorgid != null">#{crtorgid},</if>
|
||||||
<if test="crtopr != null">#{crtopr},</if>
|
<if test="isinuse != null and isinuse != ''">#{isinuse},</if>
|
||||||
<if test="lstedtdt != null">#{lstedtdt},</if>
|
<if test="crtdt != null">#{crtdt},</if>
|
||||||
<if test="lstedtopr != null">#{lstedtopr},</if>
|
<if test="crtopr != null">#{crtopr},</if>
|
||||||
<if test="fid != null">#{fid},</if>
|
<if test="lstedtdt != null">#{lstedtdt},</if>
|
||||||
<if test="fentity_fentryid != null">#{fentity_fentryid},</if>
|
<if test="lstedtopr != null">#{lstedtopr},</if>
|
||||||
<if test="oabilltype != null">#{oabilltype},</if>
|
<if test="fid != null">#{fid},</if>
|
||||||
<if test="remark != null">#{remark},</if>
|
<if test="fentity_fentryid != null">#{fentity_fentryid},</if>
|
||||||
</trim>
|
<if test="oabilltype != null">#{oabilltype},</if>
|
||||||
</insert>
|
<if test="remark != null">#{remark},</if>
|
||||||
|
</trim>
|
||||||
|
|
||||||
|
FROM DUAL
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM t_data_poundappli
|
||||||
|
WHERE fentity_fentryid = #{fentity_fentryid}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<update id="updatePoundappli" parameterType="Poundappli">
|
<update id="updatePoundappli" parameterType="Poundappli">
|
||||||
|
|
Loading…
Reference in New Issue