This commit is contained in:
linfso 2025-05-13 14:08:02 +08:00
parent 3dbf682425
commit 45278333b4
2 changed files with 1 additions and 2 deletions

View File

@ -75,6 +75,7 @@ public class EmisTmsSiteBatchServiceImpl extends EmisBaseService implements IEmi
// 插入明细数据
if(!CollectionUtils.isEmpty(emisTmsSiteBatch.getBatchDtlList())){
for (EmisTmsSiteBatchDtl itemDtl:emisTmsSiteBatch.getBatchDtlList()) {
itemDtl.setId(null);
itemDtl.setBatchNo(emisTmsSiteBatch.getBatchNo());
emisTmsSiteBatchDtlMapper.insertEmisTmsSiteBatchDtl(itemDtl);
}

View File

@ -106,7 +106,6 @@
<insert id="insertEmisTmsSiteBatchDtl" parameterType="EmisTmsSiteBatchDtl" useGeneratedKeys="true" keyProperty="id">
insert into emis_tms_site_batch_dtl
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="billCode != null and billCode != ''">bill_code,</if>
<if test="batchNo != null and batchNo != ''">batch_no,</if>
<if test="scanDate != null">scan_date,</if>
@ -125,7 +124,6 @@
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="billCode != null and billCode != ''">#{billCode},</if>
<if test="batchNo != null and batchNo != ''">#{batchNo},</if>
<if test="scanDate != null">#{scanDate},</if>