Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
9077ae2d
Commit
9077ae2d
authored
Jun 24, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
f19544e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
9 deletions
+25
-9
xggsve-common/app/base/api/impl/op/action.js
+3
-0
xggsve-common/app/base/service/impl/common/businessscopeSve.js
+21
-8
xggsve-common/app/config/settings.js
+1
-1
No files found.
xggsve-common/app/base/api/impl/op/action.js
View file @
9077ae2d
...
@@ -74,6 +74,9 @@ class ActionAPI extends APIBase {
...
@@ -74,6 +74,9 @@ class ActionAPI extends APIBase {
case
"businessscopePage"
:
case
"businessscopePage"
:
opResult
=
await
this
.
businessscopeSve
.
apiPage
(
action_body
);
opResult
=
await
this
.
businessscopeSve
.
apiPage
(
action_body
);
break
;
break
;
case
"listbusinessscopeAll"
:
//所有的经营范围 (没有分页)
opResult
=
await
this
.
businessscopeSve
.
listbusinessscopeAll
(
action_body
);
break
;
case
"businessscopeSave"
:
case
"businessscopeSave"
:
opResult
=
await
this
.
businessscopeSve
.
apiSave
(
action_body
);
opResult
=
await
this
.
businessscopeSve
.
apiSave
(
action_body
);
break
;
break
;
...
...
xggsve-common/app/base/service/impl/common/businessscopeSve.js
View file @
9077ae2d
...
@@ -172,11 +172,24 @@ class BusinessscopeService extends ServiceBase {
...
@@ -172,11 +172,24 @@ class BusinessscopeService extends ServiceBase {
this
.
handleDate
(
item
.
domicile
,
[
"created_at"
],
null
,
-
8
);
this
.
handleDate
(
item
.
domicile
,
[
"created_at"
],
null
,
-
8
);
}
}
}
}
/**
* fn:所有经营范围
* @returns {Promise<void>}
*/
async
listbusinessscopeAll
(){
try
{
let
list
=
await
this
.
dao
.
model
.
findAll
({
where
:{
isEnabled
:
true
},
attributes
:[
'id'
,
'businessType'
,
'businessscope'
]
});
return
system
.
getResult
(
list
);
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
}
}
module
.
exports
=
BusinessscopeService
;
module
.
exports
=
BusinessscopeService
;
// var task=new UserService();
\ No newline at end of file
// task.getUserStatisticGroupByApp().then(function(result){
// console.log((result));
// }).catch(function(e){
// console.log(e);
// });
\ No newline at end of file
xggsve-common/app/config/settings.js
View file @
9077ae2d
...
@@ -21,7 +21,7 @@ var settings = {
...
@@ -21,7 +21,7 @@ var settings = {
cacheprefix
:
"sjb"
,
cacheprefix
:
"sjb"
,
usertimeout
:
3600
,
//单位秒
usertimeout
:
3600
,
//单位秒
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
310
2
,
port
:
process
.
env
.
NODE_PORT
||
310
9
,
defaultPassWord
:
"987456"
,
defaultPassWord
:
"987456"
,
paasUrl
:
function
()
{
paasUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
if
(
this
.
env
==
"dev"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment