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
7582ba73
Commit
7582ba73
authored
Aug 12, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
link
parent
3a572cc2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
gsb-marketplat/app/base/controller/impl/templatemag/templateinfoCtl.js
+8
-1
gsb-marketplat/app/base/service/impl/template/templateinfoSve.js
+1
-2
gsb-marketplat/app/base/service/impl/template/templatelinkSve.js
+3
-0
No files found.
gsb-marketplat/app/base/controller/impl/templatemag/templateinfoCtl.js
View file @
7582ba73
...
@@ -24,7 +24,14 @@ class TemplateinfoCtl extends CtlBase {
...
@@ -24,7 +24,14 @@ class TemplateinfoCtl extends CtlBase {
let
result
=
await
this
.
templateinfoSve
.
findByCompanyId
(
pobj
);
let
result
=
await
this
.
templateinfoSve
.
findByCompanyId
(
pobj
);
return
result
;
return
result
;
}
}
/**
* 根据编码获取模板信息
* @param {*} pobj
*/
async
getTemplateInfoByCode
(
pobj
){
let
result
=
await
this
.
templateinfoSve
.
findOneByCode
(
pobj
);
return
result
;
}
/**
/**
* 重写保存方法
* 重写保存方法
* @param pobj
* @param pobj
...
...
gsb-marketplat/app/base/service/impl/template/templateinfoSve.js
View file @
7582ba73
...
@@ -36,8 +36,7 @@ class TemplateinfoService extends ServiceBase {
...
@@ -36,8 +36,7 @@ class TemplateinfoService extends ServiceBase {
* @param {*} pobj
* @param {*} pobj
*/
*/
async
findOneByCode
(
pobj
){
async
findOneByCode
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
ab
=
pobj
;
var
xctx
=
pobj
.
xctx
;
if
(
!
ab
){
if
(
!
ab
){
return
system
.
getResultFail
(
-
100
,
"参数错误"
);
return
system
.
getResultFail
(
-
100
,
"参数错误"
);
}
}
...
...
gsb-marketplat/app/base/service/impl/template/templatelinkSve.js
View file @
7582ba73
...
@@ -44,6 +44,9 @@ class TemplatelinkService extends ServiceBase {
...
@@ -44,6 +44,9 @@ class TemplatelinkService extends ServiceBase {
* @param {*} obj
* @param {*} obj
*/
*/
async
findAndCountAll
(
obj
){
async
findAndCountAll
(
obj
){
if
(
!
obj
||
!
obj
.
search
||
!
obj
.
search
.
template_id
){
return
system
.
getResultFail
(
-
101
,
"模板id不能为空"
);
}
var
res
=
await
this
.
dao
.
findAndCountAll
(
obj
);
var
res
=
await
this
.
dao
.
findAndCountAll
(
obj
);
return
system
.
getResultSuccess
(
res
);
return
system
.
getResultSuccess
(
res
);
}
}
...
...
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