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
fa903c92
Commit
fa903c92
authored
Aug 27, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tx-fi-tax' of gitlab.gongsibao.com:jiangyong/zhichan into tx-fi-tax
parents
eb660546
87ff6cd6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
tx-fi-tax/app/base/db/impl/bizchance/fitaxschemeDao.js
+14
-4
tx-fi-tax/app/base/service/impl/bizchance/fitaxschemeSve.js
+8
-0
tx-fi-tax/app/base/system.js
+2
-2
No files found.
tx-fi-tax/app/base/db/impl/bizchance/fitaxschemeDao.js
View file @
fa903c92
...
@@ -14,7 +14,7 @@ class FitaxschemeDao extends Dao {
...
@@ -14,7 +14,7 @@ class FitaxschemeDao extends Dao {
"demand_code"
:
qobj
.
demand_code
,
// 需求编码
"demand_code"
:
qobj
.
demand_code
,
// 需求编码
}
}
return
await
this
.
findOne
(
obj
);
return
await
this
.
findOne
(
obj
);
}
}
/**
/**
* 插入方案信息
* 插入方案信息
...
@@ -23,16 +23,26 @@ class FitaxschemeDao extends Dao {
...
@@ -23,16 +23,26 @@ class FitaxschemeDao extends Dao {
* @param {*} t
* @param {*} t
*/
*/
async
insertInfo
(
qobj
,
t
)
{
async
insertInfo
(
qobj
,
t
)
{
try
{
try
{
let
obj
=
this
.
buildObj
(
qobj
);
let
obj
=
this
.
buildObj
(
qobj
);
console
.
log
(
"obj------------------------------"
+
obj
);
console
.
log
(
"obj------------------------------"
+
obj
);
return
await
this
.
create
(
obj
,
t
);
return
await
this
.
create
(
obj
,
t
);
}
}
catch
(
error
){
catch
(
error
)
{
console
.
log
(
"error-------------------------"
+
error
);
console
.
log
(
"error-------------------------"
+
error
);
return
error
;
return
error
;
}
}
}
/**
*更新方案编号
*@param {*} qobj
* @param {*} t
*/
async
updateInfo
(
qobj
,
t
)
{
let
obj
=
this
.
buildObj
(
qobj
);
let
whereObj
=
{
"demand_code"
:
obj
.
demand_code
};
return
await
this
.
updateByWhere
(
obj
,
whereObj
,
t
);
}
}
buildObj
(
qobj
)
{
buildObj
(
qobj
)
{
...
@@ -69,7 +79,7 @@ class FitaxschemeDao extends Dao {
...
@@ -69,7 +79,7 @@ class FitaxschemeDao extends Dao {
return
obj
;
return
obj
;
}
}
async
findInfoByBizid
(
qobj
){
async
findInfoByBizid
(
qobj
)
{
let
obj
=
{
let
obj
=
{
"solution_bizid"
:
qobj
.
bizId
"solution_bizid"
:
qobj
.
bizId
}
}
...
...
tx-fi-tax/app/base/service/impl/bizchance/fitaxschemeSve.js
View file @
fa903c92
...
@@ -22,5 +22,12 @@ class FitaxschemeService extends ServiceBase {
...
@@ -22,5 +22,12 @@ class FitaxschemeService extends ServiceBase {
async
findInfoByBizid
(
qobj
){
async
findInfoByBizid
(
qobj
){
return
await
this
.
dao
.
findInfoByBizid
(
qobj
);
return
await
this
.
dao
.
findInfoByBizid
(
qobj
);
}
}
async
updateInfo
(
qobj
)
{
//更新方案信息
var
self
=
this
;
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
return
await
self
.
dao
.
updateInfo
(
qobj
,
t
);
})
}
}
}
module
.
exports
=
FitaxschemeService
;
module
.
exports
=
FitaxschemeService
;
\ No newline at end of file
tx-fi-tax/app/base/system.js
View file @
fa903c92
...
@@ -380,7 +380,7 @@ class System {
...
@@ -380,7 +380,7 @@ class System {
static
async
queueOper
(
obj
)
{
static
async
queueOper
(
obj
)
{
if
(
obj
.
pushUrl
&&
obj
.
actionType
&&
obj
.
messageBody
)
{
if
(
obj
.
pushUrl
&&
obj
.
actionType
&&
obj
.
messageBody
)
{
try
{
try
{
var
exe
c
=
this
.
getObject
(
"util.execClient"
);
var
r
c
=
this
.
getObject
(
"util.execClient"
);
var
reqUrl
=
settings
.
queueUrl
;
var
reqUrl
=
settings
.
queueUrl
;
var
param
=
{
var
param
=
{
actionType
:
"produceData"
,
actionType
:
"produceData"
,
...
@@ -401,7 +401,7 @@ class System {
...
@@ -401,7 +401,7 @@ class System {
param
.
requestId
=
obj
.
requestId
;
param
.
requestId
=
obj
.
requestId
;
}
}
var
result
=
await
exe
c
.
execPost
(
param
,
reqUrl
);
var
result
=
await
r
c
.
execPost
(
param
,
reqUrl
);
var
j
=
JSON
.
parse
(
result
.
stdout
);
var
j
=
JSON
.
parse
(
result
.
stdout
);
if
(
j
.
status
==
1
)
{
if
(
j
.
status
==
1
)
{
return
this
.
getResult
(
j
);
return
this
.
getResult
(
j
);
...
...
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