增加表名常量类,增加异常消息枚举
This commit is contained in:
@ -24,7 +24,6 @@ import com.xjrsoft.module.authority.dto.BatchSetDataAuthDto;
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import com.xjrsoft.module.datalog.entity.DataChangeLog;
|
|
||||||
import com.xjrsoft.module.datalog.service.DatalogService;
|
import com.xjrsoft.module.datalog.service.DatalogService;
|
||||||
import com.xjrsoft.module.datalog.vo.DataChangeLogVo;
|
import com.xjrsoft.module.datalog.vo.DataChangeLogVo;
|
||||||
import com.xjrsoft.module.dev.vo.Testfrom6Vo;
|
import com.xjrsoft.module.dev.vo.Testfrom6Vo;
|
||||||
|
|||||||
@ -0,0 +1,21 @@
|
|||||||
|
package com.pictc.constant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 张秉卓
|
||||||
|
* @date 2025年10月22日 下午12:00:34
|
||||||
|
* @Description: 表名常量
|
||||||
|
*/
|
||||||
|
public interface TableNameConstants {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 价格条款表
|
||||||
|
*/
|
||||||
|
String LNG_B_PRICE_TERM = "lng_b_price_term";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 币种表
|
||||||
|
*/
|
||||||
|
String LNG_B_CURRENCY = "lng_b_currency";
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -16,6 +16,9 @@ public interface ExceptionCommonCode {
|
|||||||
* 数据删除时,id不能为空
|
* 数据删除时,id不能为空
|
||||||
*/
|
*/
|
||||||
final BusinessCode DATA_DEL_ID_IS_NULL = BusinessCode.of(10510,"删除数据时,表【{}】的主键为空,删除失败!");
|
final BusinessCode DATA_DEL_ID_IS_NULL = BusinessCode.of(10510,"删除数据时,表【{}】的主键为空,删除失败!");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 执行数据库函数失败
|
||||||
|
*/
|
||||||
|
final BusinessCode DB_FUNCTION_EXEC_ERROR = BusinessCode.of(10511,"执行数据库函数失败:【{}】");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -870,6 +870,11 @@ public class DataLogTools {
|
|||||||
vo.setPid(obj.getPid());
|
vo.setPid(obj.getPid());
|
||||||
vo.setTableName(obj.getBusName());
|
vo.setTableName(obj.getBusName());
|
||||||
vo.setOperationType(obj.getOperationType());
|
vo.setOperationType(obj.getOperationType());
|
||||||
|
vo.setOperatorName(obj.getOperatorName());
|
||||||
|
vo.setOperationIp(obj.getOperationIp());
|
||||||
|
vo.setOperationTime(DateUtils.format(obj.getOperationTime()));
|
||||||
|
|
||||||
|
List<FieldChange> fieldChanges = obj.getFieldChanges();
|
||||||
|
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user