feat: (REQ-3300) 操作日志保存小数点后2位
This commit is contained in:
parent
9111961327
commit
7d1f1241c7
@ -97,10 +97,10 @@ public class VisaHelper {
|
||||
.personId(newContext.getPersonId())
|
||||
.ouId(newContext.getOuId())
|
||||
.workspaceId(newContext.getWorkspaceId())
|
||||
.newAmountChange(newContext.getChangeRecord().getAmountChange())
|
||||
.oldAmountChange(oldContext.getChangeRecord().getAmountChange())
|
||||
.uploadAttach(VisaLogParam.uploadAttachWithObject(newUploadFiles, oldUploadFiles))
|
||||
.deleteAttach(VisaLogParam.deleteAttachWithObject(oldUploadFiles, newUploadFiles))
|
||||
.newAmountChange(newContext.getChangeRecord().getAmountChange())
|
||||
.oldAmountChange(oldContext.getChangeRecord().getAmountChange())
|
||||
.uploadAttach(VisaLogParam.uploadAttachWithObject(newUploadFiles, oldUploadFiles))
|
||||
.deleteAttach(VisaLogParam.deleteAttachWithObject(oldUploadFiles, newUploadFiles))
|
||||
.build());
|
||||
|
||||
logApiGateway.addLog(Constants.VISA_LOG_SNAPSHOT_SCENE
|
||||
|
||||
@ -16,6 +16,7 @@ import cn.axzo.nanopart.visa.server.utils.Constants;
|
||||
import cn.axzo.orggateway.api.nodeuser.dto.OrgNodeUserDTO;
|
||||
import cn.axzo.orggateway.api.nodeuser.req.ListOrgNodeUserReq;
|
||||
import cn.axzo.orgmanax.dto.nodeuser.req.ListNodeUserReq;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.google.common.collect.Lists;
|
||||
@ -114,7 +115,9 @@ public class ChangeRecordLogServiceImpl extends ServiceImpl<ChangeRecordLogDao,
|
||||
logList.add(ChangeRecordLog.builder().visaId(visaId)
|
||||
.action(VisaLogTypeEnum.EDIT_AMOUNT.name())
|
||||
.title(String.format(VisaLogTypeEnum.EDIT_AMOUNT.getTitle(),userName ))
|
||||
.content(String.format(VisaLogTypeEnum.EDIT_AMOUNT.getContent(), param.getOldAmountChange().toPlainString(), param.getNewAmountChange().toPlainString()))
|
||||
.content(String.format(VisaLogTypeEnum.EDIT_AMOUNT.getContent()
|
||||
, NumberUtil.roundDown(param.getOldAmountChange(), 2).toPlainString()
|
||||
, NumberUtil.roundDown(param.getNewAmountChange(), 2).toPlainString()))
|
||||
.orderBy(Constants.AMOUNT_CHANGE_ORDER_BY).build());
|
||||
}
|
||||
case UPLOAD_FILE:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user