卡片管理

This commit is contained in:
sxu 2025-04-24 09:52:55 +08:00
parent ec75df799b
commit 8365a5fa84
2 changed files with 4 additions and 1 deletions

View File

@ -125,7 +125,10 @@ public class AccCardServiceImpl implements IAccCardService {
accCard.setUpdateBy(SecurityUtils.getUsername());
accCard.setUpdateTime(DateUtils.getNowDate());
try {
AccInfo accInfo = accInfoMapper.selectAccInfoById(accCard.getAccId());
checkAccInfoAndStatus(accInfo);
int count = accCardMapper.updateAccCard(accCard);
accCard.setUserId(accInfo.getUserId());
if (CardRecordTypeEnum.CHANGE.getKey().equals(accCard.getOperationType())) {
accCard.setCardStatus(CardStatusEnum.NORMAL.getKey());
saveAccCardChangeRecord(accCard);

View File

@ -144,7 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
where acc_id = #{accId}
</update>
<delete id="deleteAccCardById" parameterType="Long">