修改字段名

This commit is contained in:
钱涛 2025-04-09 14:23:38 +08:00
parent c32dab5562
commit c04dad0c4d
11 changed files with 24 additions and 24 deletions

View File

@ -57,7 +57,7 @@ CREATE TABLE hrsa_push_record_detail
id NUMBER(38,0) NOT NULL, id NUMBER(38,0) NOT NULL,
record_id NUMBER(38,0), record_id NUMBER(38,0),
acct_emp_id NUMBER(38,0), acct_emp_id NUMBER(38,0),
execute CLOB, formula CLOB,
execute_time date, execute_time date,
status number, status number,
creator NUMBER(38,0), creator NUMBER(38,0),

View File

@ -57,7 +57,7 @@ CREATE TABLE hrsa_push_record_detail
id NUMBER(38,0) NOT NULL, id NUMBER(38,0) NOT NULL,
record_id NUMBER(38,0), record_id NUMBER(38,0),
acct_emp_id NUMBER(38,0), acct_emp_id NUMBER(38,0),
execute CLOB, formula CLOB,
execute_time date, execute_time date,
status number, status number,
creator NUMBER(38,0), creator NUMBER(38,0),

View File

@ -57,7 +57,7 @@ CREATE TABLE hrsa_push_record_detail
id NUMBER(38,0) NOT NULL, id NUMBER(38,0) NOT NULL,
record_id NUMBER(38,0), record_id NUMBER(38,0),
acct_emp_id NUMBER(38,0), acct_emp_id NUMBER(38,0),
execute CLOB, formula CLOB,
execute_time date, execute_time date,
status number, status number,
creator NUMBER(38,0), creator NUMBER(38,0),

View File

@ -59,7 +59,7 @@ CREATE TABLE hrsa_push_record_detail
id bigint(0) NOT NULL, id bigint(0) NOT NULL,
record_id bigint(0), record_id bigint(0),
acct_emp_id bigint(0), acct_emp_id bigint(0),
execute text, formula text,
execute_time datetime(0), execute_time datetime(0),
status int(0), status int(0),
creator bigint(0), creator bigint(0),

View File

@ -59,7 +59,7 @@ CREATE TABLE hrsa_push_record_detail
id NUMBER(38,0) NOT NULL, id NUMBER(38,0) NOT NULL,
record_id NUMBER(38,0), record_id NUMBER(38,0),
acct_emp_id NUMBER(38,0), acct_emp_id NUMBER(38,0),
execute CLOB, formula CLOB,
execute_time date, execute_time date,
status number, status number,
creator NUMBER(38,0), creator NUMBER(38,0),

View File

@ -59,7 +59,7 @@ CREATE TABLE hrsa_push_record_detail
id bigint NOT NULL, id bigint NOT NULL,
record_id bigint, record_id bigint,
acct_emp_id bigint, acct_emp_id bigint,
execute text, formula text,
execute_time timestamp, execute_time timestamp,
status int, status int,
creator bigint, creator bigint,

View File

@ -62,7 +62,7 @@ CREATE TABLE hrsa_push_record_detail
id bigint NOT NULL, id bigint NOT NULL,
record_id bigint, record_id bigint,
acct_emp_id bigint, acct_emp_id bigint,
execute text, formula text,
execute_time datetime, execute_time datetime,
status int, status int,
creator bigint, creator bigint,

View File

@ -57,7 +57,7 @@ CREATE TABLE hrsa_push_record_detail
id NUMBER(38,0) NOT NULL, id NUMBER(38,0) NOT NULL,
record_id NUMBER(38,0), record_id NUMBER(38,0),
acct_emp_id NUMBER(38,0), acct_emp_id NUMBER(38,0),
execute CLOB, formula CLOB,
execute_time date, execute_time date,
status number, status number,
creator NUMBER(38,0), creator NUMBER(38,0),

View File

@ -56,7 +56,7 @@ public class PushRecordDetailPO {
* 执行sql * 执行sql
*/ */
@ElogTransform(name = "执行sql") @ElogTransform(name = "执行sql")
private String execute; private String formula;
/** /**
* 创建时间 * 创建时间

View File

@ -6,7 +6,7 @@
<result column="create_time" property="createTime"/> <result column="create_time" property="createTime"/>
<result column="creator" property="creator"/> <result column="creator" property="creator"/>
<result column="delete_type" property="deleteType"/> <result column="delete_type" property="deleteType"/>
<result column="execute" property="execute"/> <result column="formula" property="formula"/>
<result column="id" property="id"/> <result column="id" property="id"/>
<result column="record_id" property="recordId"/> <result column="record_id" property="recordId"/>
<result column="status" property="status"/> <result column="status" property="status"/>
@ -24,7 +24,7 @@
, t.create_time , t.create_time
, t.creator , t.creator
, t.delete_type , t.delete_type
, t.execute , t.formula
, t.id , t.id
, t.record_id , t.record_id
, t.status , t.status
@ -68,8 +68,8 @@
<if test="deleteType != null"> <if test="deleteType != null">
AND delete_type = #{deleteType} AND delete_type = #{deleteType}
</if> </if>
<if test="execute != null"> <if test="formula != null">
AND execute = #{execute} AND formula = #{formula}
</if> </if>
<if test="id != null"> <if test="id != null">
AND id = #{id} AND id = #{id}
@ -101,7 +101,7 @@
, t.create_time , t.create_time
, t.creator , t.creator
, t.delete_type , t.delete_type
, t.execute , t.formula
, t.id , t.id
, t.record_id , t.record_id
, t.status , t.status
@ -161,8 +161,8 @@
<if test="deleteType != null"> <if test="deleteType != null">
delete_type, delete_type,
</if> </if>
<if test="execute != null"> <if test="formula != null">
execute, formula,
</if> </if>
<if test="id != null"> <if test="id != null">
id, id,
@ -199,8 +199,8 @@
<if test="deleteType != null"> <if test="deleteType != null">
#{deleteType}, #{deleteType},
</if> </if>
<if test="execute != null"> <if test="formula != null">
#{execute}, #{formula},
</if> </if>
<if test="id != null"> <if test="id != null">
#{id}, #{id},
@ -234,7 +234,7 @@
create_time=#{createTime}, create_time=#{createTime},
creator=#{creator}, creator=#{creator},
delete_type=#{deleteType}, delete_type=#{deleteType},
execute=#{execute}, formula=#{formula},
record_id=#{recordId}, record_id=#{recordId},
status=#{status}, status=#{status},
tenant_key=#{tenantKey}, tenant_key=#{tenantKey},
@ -262,8 +262,8 @@
<if test="deleteType != null"> <if test="deleteType != null">
delete_type=#{deleteType}, delete_type=#{deleteType},
</if> </if>
<if test="execute != null"> <if test="formula != null">
execute=#{execute}, formula=#{formula},
</if> </if>
<if test="recordId != null"> <if test="recordId != null">
record_id=#{recordId}, record_id=#{recordId},

View File

@ -378,7 +378,7 @@ public class PushServiceImpl extends Service implements PushService {
.acctEmpId(emp.getId()) .acctEmpId(emp.getId())
.recordId(record.getId()) .recordId(record.getId())
.status(PushRecordDetailStatusEnum.PREPARE.getValue()) .status(PushRecordDetailStatusEnum.PREPARE.getValue())
.execute(sql) .formula(sql)
.createTime(now) .createTime(now)
.updateTime(now) .updateTime(now)
.creator((long) user.getUID()) .creator((long) user.getUID())
@ -428,9 +428,9 @@ public class PushServiceImpl extends Service implements PushService {
pushRecordDetailPOS.forEach(pushRecordDetailPO -> { pushRecordDetailPOS.forEach(pushRecordDetailPO -> {
try { try {
String execute = pushRecordDetailPO.getExecute(); String formula = pushRecordDetailPO.getFormula();
RecordSet rs = new RecordSet(); RecordSet rs = new RecordSet();
boolean success = rs.execute(execute); boolean success = rs.execute(formula);
if (success) { if (success) {
//建模需要权限重构 //建模需要权限重构
Integer modeId = pushRecordPO.getModeId(); Integer modeId = pushRecordPO.getModeId();