卡片管理
This commit is contained in:
parent
ec75df799b
commit
8365a5fa84
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue