Commit 6f84d061 by cwq0219

删除is_new

1 parent d790d567
/* /*
* @Author: huyue * @Author: huyue
* @Date: 2020-06-15 10:57:33 * @Date: 2020-06-15 10:57:33
* @Last Modified by: huyue * @Last Modified by: chenwq
* @Last Modified time: 2020-06-16 15:36:30 * @Last Modified time: 2020-09-08 15:02:51
*/ */
const Service = require("egg").Service; const Service = require("egg").Service;
...@@ -54,9 +54,7 @@ class CluesService extends Service { ...@@ -54,9 +54,7 @@ class CluesService extends Service {
col, col,
literal literal
} = this.app.Sequelize } = this.app.Sequelize
let where = { let where = { };
// is_new: 1
};
if (bizType) { if (bizType) {
where.biz_type = bizType where.biz_type = bizType
} }
......
/* /*
* @Author: limin * @Author: limin
* @Date: 2019-11-21 11:18:37 * @Date: 2019-11-21 11:18:37
* @Last Modified by: limin * @Last Modified by: chenwq
* @Last Modified time: 2020-04-20 13:54:35 * @Last Modified time: 2020-09-08 15:02:37
*/ */
const Service = require("egg").Service; const Service = require("egg").Service;
...@@ -46,7 +46,7 @@ class LossService extends Service { ...@@ -46,7 +46,7 @@ class LossService extends Service {
} = searcher; } = searcher;
const offset = (current - 1) * size; const offset = (current - 1) * size;
const { Op, col, literal } = this.app.Sequelize; const { Op, col, literal } = this.app.Sequelize;
let where = { is_new: 1 }; let where = { };
if (searchValue) { if (searchValue) {
const __like = `%${searchValue}%`; const __like = `%${searchValue}%`;
where = { where = {
......
/* /*
* @Author: limin * @Author: limin
* @Date: 2019-11-21 11:18:37 * @Date: 2019-11-21 11:18:37
* @Last Modified by: limin * @Last Modified by: chenwq
* @Last Modified time: 2020-04-20 13:54:35 * @Last Modified time: 2020-09-08 15:02:44
*/ */
const Service = require("egg").Service; const Service = require("egg").Service;
...@@ -57,7 +57,7 @@ class ShopService extends Service { ...@@ -57,7 +57,7 @@ class ShopService extends Service {
Op, Op,
literal literal
} = this.app.Sequelize; } = this.app.Sequelize;
let where = { is_new: 1 }; let where = { };
if (searchValue) { if (searchValue) {
const __like = `%${searchValue}%`; const __like = `%${searchValue}%`;
where = { where = {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: limin * @Author: limin
* @Date: 2019-11-16 09:26:53 * @Date: 2019-11-16 09:26:53
* @Last Modified by: chenwq * @Last Modified by: chenwq
* @Last Modified time: 2020-06-18 14:13:05 * @Last Modified time: 2020-09-01 15:36:55
*/ */
/* eslint valid-jsdoc: "off" */ /* eslint valid-jsdoc: "off" */
...@@ -89,6 +89,13 @@ module.exports = app => { ...@@ -89,6 +89,13 @@ module.exports = app => {
db: 0 db: 0
} }
}; };
// 改变请求ip
// config.cluster = {
// listen: {
// port: 8000,
// hostname: '192.168.2.201'
// }
// };
config.validate = { config.validate = {
// convert: false, // convert: false,
// validateRoot: false, // validateRoot: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!