Merge pull request 'demand: tms-运输管理-货物组批次-删除批次成本时更新批次成本录入状态' (#239) from develop into master

Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/239
This commit is contained in:
heyu 2025-11-24 16:56:19 +08:00
commit d1586e7bc4
3 changed files with 30 additions and 10 deletions

View File

@ -109,6 +109,14 @@ public interface EmisTmsSiteBatchMapper extends BaseMapper<EmisTmsSiteBatch>
*/ */
public int updateEnteringStatus(String batchNo); public int updateEnteringStatus(String batchNo);
/**
* 重置录入状态为未录入
*
* @param batchNo 批次号
* @return 结果
*/
public int resetEnteringStatus(String batchNo);
/** /**
* 根据运单号列表查询组批次信息 * 根据运单号列表查询组批次信息
* *

View File

@ -1388,6 +1388,11 @@ public class EmisTmsCostFeeServiceImpl extends EmisBaseService implements IEmisT
} }
} }
// 重置批次录入状态
if(StringUtils.isNotBlank(emisTmsCostFee.getBatchNo())){
emisTmsSiteBatchMapper.resetEnteringStatus(emisTmsCostFee.getBatchNo());
}
return 1; return 1;
} }

View File

@ -383,6 +383,13 @@
where batch_no=#{batchNo} where batch_no=#{batchNo}
</update> </update>
<!-- 重置录入状态 -->
<update id="resetEnteringStatus" parameterType="String">
update emis_tms_site_batch set
bl_entering = '0'
where batch_no=#{batchNo}
</update>
<insert id="insertEmisTmsSiteBatch" parameterType="EmisTmsSiteBatch" useGeneratedKeys="true" keyProperty="id"> <insert id="insertEmisTmsSiteBatch" parameterType="EmisTmsSiteBatch" useGeneratedKeys="true" keyProperty="id">
insert into emis_tms_site_batch insert into emis_tms_site_batch
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">