1、凭证生成新增只是只生成一条

2、优化日志记录。
3、优化校验逻辑
This commit is contained in:
zhengyf 2025-07-31 00:44:29 +08:00
parent e390fc4a7d
commit fa17cd9ac7
4 changed files with 747 additions and 446 deletions

View File

@ -36,6 +36,7 @@ public class AePushVoucherLogDaoImpl extends MybatisGenericDao<AePushVoucherLogE
AePushVoucherLogEntity save = this.save(aePushVoucherLogEntity); AePushVoucherLogEntity save = this.save(aePushVoucherLogEntity);
return save; return save;
}else { }else {
aePushVoucherLogEntity.setId(query.get(0).getId());
this.update(aePushVoucherLogEntity); this.update(aePushVoucherLogEntity);
return aePushVoucherLogEntity; return aePushVoucherLogEntity;
} }

View File

@ -397,7 +397,9 @@
update ae_push_voucher_log_details update ae_push_voucher_log_details
set sts= 'N', set sts= 'N',
modify_time = now() modify_time = now()
where id = #{id} where 1=1
<if test="id !=null" >and id = #{id}</if>
<if test="voucherId !=null" >and voucher_id = #{voucherId}</if>
</update> </update>
<!-- 多条件逻辑删除 --> <!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" <update id="entity_logicDelete_Multi_Condition"

View File

@ -163,6 +163,9 @@ public class AePushVoucherLogServiceImpl extends BaseService<AePushVoucherLogEnt
String billCode = entity.getBillCode(); String billCode = entity.getBillCode();
String status = entity.getBillStatus(); String status = entity.getBillStatus();
if("".equals(status)){
status=null;
}
//单据号 //单据号
if (billCode != null && status == null) { if (billCode != null && status == null) {