浏览代码

变更令增加是否为修订状态

laiguoran 4 年之前
父节点
当前提交
e181bc793e
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      app/service/change.js
  2. 2 0
      sql/update.sql

+ 2 - 0
app/service/change.js

@@ -629,6 +629,7 @@ module.exports = app => {
                     change_update.status = audit.flow.status.checked;
                     change_update.p_code = postData.p_code;
                     change_update.sin_time = Date.parse(new Date()) / 1000;
+                    change_update.is_revise = 0;
 
                     await this.ctx.service.tenderTag.saveTenderTag(changeData.tid, { bgl_time: new Date() }, this.transaction);
 
@@ -1291,6 +1292,7 @@ module.exports = app => {
                     cin_time: Date.parse(new Date()) / 1000,
                     // total_price,
                     tp_decimal: null,
+                    is_revise: 1,
                 };
                 const options = {
                     where: {

+ 2 - 0
sql/update.sql

@@ -404,3 +404,5 @@ CREATE TABLE `zh_tender_tourist` (
   `in_time` datetime DEFAULT NULL COMMENT '添加时间',
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='标段游客表';
+
+ALTER TABLE `zh_change` ADD `is_revise` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '是否是修订状态' AFTER `tp_decimal`;