소스 검색

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

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`;