费用报销单生成错误字段修复

This commit is contained in:
xiang2lin 2025-04-02 16:40:17 +08:00
parent b5bd576d17
commit 4cd1dadc75
3 changed files with 6 additions and 3 deletions

View File

@ -23,6 +23,7 @@
<result property="rytype" column="rytype" /> <result property="rytype" column="rytype" />
<result property="grdm" column="grdm" /> <result property="grdm" column="grdm" />
<result property="yt" column="yt" /> <result property="yt" column="yt" />
<result property="bnxid" column="bnxid" />
<result property="skrbz" column="skrbz" /> <result property="skrbz" column="skrbz" />
</resultMap> </resultMap>
@ -56,6 +57,7 @@ GSDM,KJND
<if test="grdm != null and grdm !='' "> GRDM, </if> <if test="grdm != null and grdm !='' "> GRDM, </if>
<if test="yt != null and yt !='' "> yt,</if> <if test="yt != null and yt !='' "> yt,</if>
<if test="skrbz != null and skrbz !='' "> SKRBZ, </if> <if test="skrbz != null and skrbz !='' "> SKRBZ, </if>
<if test="bnxid != null and bnxid !='' "> bnxid, </if>
<if test="gsdm != null and gsdm !='' "> GSDM </if> <if test="gsdm != null and gsdm !='' "> GSDM </if>
) )
values ( values (
@ -82,6 +84,7 @@ GSDM,KJND
<if test="grdm != null and grdm !='' "> #{grdm}, </if> <if test="grdm != null and grdm !='' "> #{grdm}, </if>
<if test="yt != null and yt !='' "> #{yt},</if> <if test="yt != null and yt !='' "> #{yt},</if>
<if test="skrbz != null and skrbz !='' "> #{skrbz}, </if> <if test="skrbz != null and skrbz !='' "> #{skrbz}, </if>
<if test="bnxid != null and bnxid !='' "> #{bnxid}, </if>
<if test="gsdm != null and gsdm !='' "> #{gsdm} </if> <if test="gsdm != null and gsdm !='' "> #{gsdm} </if>
) )
</insert> </insert>

View File

@ -85,7 +85,7 @@ GSDM,KJND,mlId
as mlId from OER_DJML where GSDM=#{gsdm} and mlid like concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'%') as mlId from OER_DJML where GSDM=#{gsdm} and mlid like concat(substring(replace(DATE_FORMAT(now(),'%Y-%m-%d'),'-',''),1,6),'%')
</select>--> </select>-->
<select id="OerDjmlEntity_list_base_mlidMax" resultMap="get-OerDjmlEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity"> <select id="OerDjmlEntity_list_base_mlidMax" resultMap="get-OerDjmlEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity">
select (isnull(max(MLID),concat(substring(#{djdate},0,7),0000)) + 1) as mlId select (isnull(max(MLID),concat(substring(#{djdate},0,7),'0000')) + 1) as mlId
from OER_DJML where 1=1 and GSDM=#{gsdm} and MLID like concat(substring(#{djdate},0,7),'%') from OER_DJML where 1=1 and GSDM=#{gsdm} and MLID like concat(substring(#{djdate},0,7),'%')
</select> </select>

View File

@ -277,8 +277,8 @@ public class OerDjmlExtServiceImpl implements IOerDjmlExtService {
jsfs.setDjlxId(djlxid); jsfs.setDjlxId(djlxid);
jsfs.setBnxid(headers.get("jsfs_bnxid")); jsfs.setBnxid(headers.get("jsfs_bnxid"));
jsfs.setXh(String.valueOf(xh)); jsfs.setXh(String.valueOf(xh));
jsfs.setJsfsdm(forson.getString("field0042")); jsfs.setJsfsdm(forson.getString("field0043"));
jsfs.setJsfsmc(forson.getString("field0043")); jsfs.setJsfsmc(forson.getString("field0042"));
jsfs.setKmdm(""); jsfs.setKmdm("");
jsfs.setKmmc(""); jsfs.setKmmc("");
jsfs.setSkr(forson.getString("field0076")); jsfs.setSkr(forson.getString("field0076"));