Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-serivce
/
glsx-insurance-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6f84d061
authored
Sep 08, 2020
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除is_new
1 parent
d790d567
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
app/service/biz/clues.js
app/service/biz/loss.js
app/service/biz/shop.js
config/config.default.js
app/service/biz/clues.js
View file @
6f84d06
/*
* @Author: huyue
* @Date: 2020-06-15 10:57:33
* @Last Modified by:
huyue
* @Last Modified time: 2020-0
6-16 15:36:30
* @Last Modified by:
chenwq
* @Last Modified time: 2020-0
9-08 15:02:51
*/
const
Service
=
require
(
"egg"
).
Service
;
...
...
@@ -54,9 +54,7 @@ class CluesService extends Service {
col
,
literal
}
=
this
.
app
.
Sequelize
let
where
=
{
// is_new: 1
};
let
where
=
{
};
if
(
bizType
)
{
where
.
biz_type
=
bizType
}
...
...
app/service/biz/loss.js
View file @
6f84d06
/*
* @Author: limin
* @Date: 2019-11-21 11:18:37
* @Last Modified by:
limin
* @Last Modified time: 2020-0
4-20 13:54:35
* @Last Modified by:
chenwq
* @Last Modified time: 2020-0
9-08 15:02:37
*/
const
Service
=
require
(
"egg"
).
Service
;
...
...
@@ -46,7 +46,7 @@ class LossService extends Service {
}
=
searcher
;
const
offset
=
(
current
-
1
)
*
size
;
const
{
Op
,
col
,
literal
}
=
this
.
app
.
Sequelize
;
let
where
=
{
is_new
:
1
};
let
where
=
{
};
if
(
searchValue
)
{
const
__like
=
`%
${
searchValue
}
%`
;
where
=
{
...
...
app/service/biz/shop.js
View file @
6f84d06
/*
* @Author: limin
* @Date: 2019-11-21 11:18:37
* @Last Modified by:
limin
* @Last Modified time: 2020-0
4-20 13:54:35
* @Last Modified by:
chenwq
* @Last Modified time: 2020-0
9-08 15:02:44
*/
const
Service
=
require
(
"egg"
).
Service
;
...
...
@@ -57,7 +57,7 @@ class ShopService extends Service {
Op
,
literal
}
=
this
.
app
.
Sequelize
;
let
where
=
{
is_new
:
1
};
let
where
=
{
};
if
(
searchValue
)
{
const
__like
=
`%
${
searchValue
}
%`
;
where
=
{
...
...
config/config.default.js
View file @
6f84d06
...
...
@@ -2,7 +2,7 @@
* @Author: limin
* @Date: 2019-11-16 09:26:53
* @Last Modified by: chenwq
* @Last Modified time: 2020-0
6-18 14:13:0
5
* @Last Modified time: 2020-0
9-01 15:36:5
5
*/
/* eslint valid-jsdoc: "off" */
...
...
@@ -89,6 +89,13 @@ module.exports = app => {
db
:
0
}
};
// 改变请求ip
// config.cluster = {
// listen: {
// port: 8000,
// hostname: '192.168.2.201'
// }
// };
config
.
validate
=
{
// convert: false,
// validateRoot: false,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment