md
This commit is contained in:
parent
3dbf682425
commit
45278333b4
@ -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);
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user