Browse Source

更新uat

MaiXinRong 5 years ago
parent
commit
d4e8ee2c7b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      sql/update.sql

+ 5 - 1
sql/update.sql

@@ -2,7 +2,7 @@ UPDATE `zh_stage_pay` sp
   LEFT JOIN `zh_stage` s ON sp.sid = s.id
   LEFT JOIN `zh_stage` s ON sp.sid = s.id
   LEFT JOIN `zh_pay` p ON sp.pid = p.id
   LEFT JOIN `zh_pay` p ON sp.pid = p.id
   SET sp.`pre_used` = 1
   SET sp.`pre_used` = 1
-  WHERE (sp.`start_stage_order` < s.`order` OR ((not IsNULL(sp.pre_tp)) AND sp.pre_tp) AND sp.`pre_used` = 0 AND p.`ptype` = 1;
+  WHERE (sp.`start_stage_order` < s.`order` OR ((not IsNULL(sp.pre_tp)) AND sp.pre_tp <> 0)) AND sp.`pre_used` = 0 AND p.`ptype` = 1;
 
 
 ALTER TABLE `zh_stage_detail`
 ALTER TABLE `zh_stage_detail`
 ADD COLUMN `pos_name`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '计量单元名称' AFTER `position`;
 ADD COLUMN `pos_name`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '计量单元名称' AFTER `position`;
@@ -72,3 +72,7 @@ INSERT INTO `zh_permission`(`id`, `name`, `controller`, `action`, `pid`, `icon_c
 
 
 ALTER TABLE `zh_stage`
 ALTER TABLE `zh_stage`
 ADD COLUMN `tp_history`  text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '金额类的历史记录' AFTER `cache_time_l`;
 ADD COLUMN `tp_history`  text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '金额类的历史记录' AFTER `cache_time_l`;
+
+-- ----------------------------
+-- 以上于2020-6-15 16:40 因测试需求更新至uat,尚未更新prod,如需增加sql,请一定在其后添加
+-- ----------------------------