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