卡片管理
This commit is contained in:
parent
ec75df799b
commit
8365a5fa84
|
|
@ -125,7 +125,10 @@ public class AccCardServiceImpl implements IAccCardService {
|
||||||
accCard.setUpdateBy(SecurityUtils.getUsername());
|
accCard.setUpdateBy(SecurityUtils.getUsername());
|
||||||
accCard.setUpdateTime(DateUtils.getNowDate());
|
accCard.setUpdateTime(DateUtils.getNowDate());
|
||||||
try {
|
try {
|
||||||
|
AccInfo accInfo = accInfoMapper.selectAccInfoById(accCard.getAccId());
|
||||||
|
checkAccInfoAndStatus(accInfo);
|
||||||
int count = accCardMapper.updateAccCard(accCard);
|
int count = accCardMapper.updateAccCard(accCard);
|
||||||
|
accCard.setUserId(accInfo.getUserId());
|
||||||
if (CardRecordTypeEnum.CHANGE.getKey().equals(accCard.getOperationType())) {
|
if (CardRecordTypeEnum.CHANGE.getKey().equals(accCard.getOperationType())) {
|
||||||
accCard.setCardStatus(CardStatusEnum.NORMAL.getKey());
|
accCard.setCardStatus(CardStatusEnum.NORMAL.getKey());
|
||||||
saveAccCardChangeRecord(accCard);
|
saveAccCardChangeRecord(accCard);
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where acc_id = #{accId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteAccCardById" parameterType="Long">
|
<delete id="deleteAccCardById" parameterType="Long">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue