星空对接接口开发

This commit is contained in:
16358 2025-06-13 17:29:37 +08:00
parent 69b485985d
commit 09f652c939
2 changed files with 84 additions and 73 deletions

View File

@ -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);
} }
} }

View File

@ -90,7 +90,7 @@ 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>
@ -116,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
@ -126,7 +126,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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=",">
SELECT
<trim 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>
@ -151,7 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
@ -161,7 +163,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
</insert>
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">