liujiangyong 1 year ago
parent
commit
dc015ef976
  1. 10
      api/app/lib/models/report.js
  2. 9
      scripts/1.3.1/schema/4.update_report.sql

10
api/app/lib/models/report.js

@ -437,8 +437,16 @@ module.exports = dc => {
field: "other_description",
autoIncrement: false
},
handleOpinions: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "处理意见",
primaryKey: false,
field: "handle_opinions",
autoIncrement: false
},
handleAdvice: {
index: 6,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,

9
scripts/1.3.1/schema/4.update_report.sql

@ -1,6 +1,13 @@
ALTER TABLE "public"."report"
ADD COLUMN "handle_advice" varchar(1024);
ADD COLUMN "handle_advice" varchar(1024)
add handle_opinions varchar(1024);
COMMENT ON COLUMN "public"."report"."handle_state" IS '待处理 / 已指派 / 已处理 / 不处理';
COMMENT ON COLUMN "public"."report"."handle_advice" IS '管理员处理意见';
comment on column report.handle_opinions is '处理意见';

Loading…
Cancel
Save