This commit is contained in:
syruan 2025-10-11 15:46:07 +08:00
parent 00506cc7ca
commit 02f89296f1
2 changed files with 3 additions and 5 deletions

View File

@ -1020,8 +1020,7 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
}
// 修改slt_agreement_info的结算状态
int countThree = sltAgreementInfoMapper.updateSltInfoByAgreementIdType(
new SltAgreementInfo()
int countThree = sltAgreementInfoMapper.updateSltInfoByAgreementIdType(new SltAgreementInfo()
.setAgreementId(sltAgreementApply.getAgreementId())
.setSettlementType(sltAgreementApplyFromDb.getSettlementType())
);
@ -1031,8 +1030,7 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
}
// 修改未退还设备状态为丢失
int countFour = sltAgreementInfoMapper.updateMaStatusLoseByAgreementIdType(
new SltAgreementInfo()
int countFour = sltAgreementInfoMapper.updateMaStatusLoseByAgreementIdType(new SltAgreementInfo()
.setAgreementId(sltAgreementApply.getAgreementId())
.setSettlementType(sltAgreementApplyFromDb.getSettlementType())
);

View File

@ -1441,7 +1441,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
INNER JOIN slt_agreement_info sai ON mi.ma_id = sai.ma_id AND sai.end_time is null AND sai.status = '0'
INNER JOIN ma_type mt ON sai.type_id = mt.type_id AND mt.`level` = '4'
set
mi.status = '18', mi.update_time = NOW()
mi.ma_status = '18', mi.update_time = NOW()
where
sai.agreement_id = #{agreementId} AND mt.jiju_type = #{settlementType}
</update>