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
89bc05d9
Commit
89bc05d9
authored
Nov 20, 2019
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaa
parent
4efa7421
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
igirl-channel/app/base/service/impl/dborder/customerinfoSve.js
+23
-0
igirl-channel/app/base/service/impl/dbtrademark/trademarkSve.js
+6
-0
No files found.
igirl-channel/app/base/service/impl/dborder/customerinfoSve.js
View file @
89bc05d9
...
...
@@ -6,6 +6,7 @@ class CustomerInfoService extends ServiceBase {
constructor
()
{
super
(
"dborder"
,
ServiceBase
.
getDaoName
(
CustomerInfoService
));
this
.
ordertmproductSve
=
system
.
getObject
(
"service.dborder.ordertmproductSve"
);
this
.
trademarkDao
=
system
.
getObject
(
"db.dbtrademark.trademarkDao"
);
}
/**
* 修改申请人信息(订单详情页面使用)
...
...
@@ -90,6 +91,17 @@ class CustomerInfoService extends ServiceBase {
ciObj
[
"identityCardPdf"
]
=
obj
.
identityCardPdf
;
}
await
self
.
dao
.
update
(
ciObj
,
t
);
//修改申请人信息
var
customerinfo2
=
await
self
.
dao
.
model
.
findOne
({
where
:{
id
:
customerinfo
.
id
},
raw
:
true
});
if
(
ordertmproduct
.
gzwtsUrl
&&
customerinfo2
.
businessLicensePdf
&&
customerinfo2
.
identityCardPdf
){
// otpObj["deliveryStatus"]="dsh";
await
self
.
ordertmproductSve
.
update
({
id
:
ordertmproduct
.
id
,
deliveryStatus
:
"dsh"
},
t
);
await
self
.
trademarkDao
.
model
.
update
({
officialType
:
"dsh"
},{
where
:{
deliveryOrderNo
:
deliveryOrderNo
},
transaction
:
t
});
}
return
system
.
getResultSuccess
();
})
}
...
...
@@ -157,6 +169,12 @@ class CustomerInfoService extends ServiceBase {
}
await
self
.
dao
.
update
(
ciObj
,
t
);
//申请人信息 修改营业执照、身份证文件
var
customerinfo2
=
await
self
.
dao
.
model
.
findOne
({
where
:{
id
:
customerinfo
.
id
},
raw
:
true
});
var
otpObj
=
{
id
:
ordertmproduct
.
id
,
updateuser_id
:
user
.
id
,
...
...
@@ -168,6 +186,11 @@ class CustomerInfoService extends ServiceBase {
if
(
obj
.
smwjUrl
){
otpObj
[
"smwjUrl"
]
=
obj
.
smwjUrl
;
}
if
((
ordertmproduct
.
gzwtsUrl
||
otpObj
[
"gzwtsUrl"
])
&&
customerinfo2
.
businessLicensePdf
&&
customerinfo2
.
identityCardPdf
){
otpObj
[
"deliveryStatus"
]
=
"dsh"
;
await
self
.
trademarkDao
.
model
.
update
({
officialType
:
"dsh"
},{
where
:{
deliveryOrderNo
:
deliveryOrderNo
},
transaction
:
t
});
}
await
self
.
ordertmproductSve
.
update
(
otpObj
,
t
);
//商标交付单 修改盖章委托书、说明文件
return
system
.
getResultSuccess
();
})
...
...
igirl-channel/app/base/service/impl/dbtrademark/trademarkSve.js
View file @
89bc05d9
...
...
@@ -309,10 +309,16 @@ class TradeMarkService extends ServiceBase {
}
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
var
tmObj
=
{
id
:
tm
.
id
};
var
otp
=
{
id
:
ordertmproduct
.
id
};
if
(
obj
.
tmStatus
){
if
(
self
.
statusConvertJSON
[
obj
.
tmStatus
]){
tmObj
[
"officialType"
]
=
self
.
statusConvertJSON
[
obj
.
tmStatus
];
}
if
(
tmObj
.
officialType
&&
",dqrfa,dsccl,dsh,ddj,ydj,ywc,"
.
indexOf
(
tmObj
.
officialType
)
>=
0
){
otp
[
"deliveryStatus"
]
=
tmObj
.
officialType
;
await
self
.
ordertmproductSve
.
update
(
otp
,
t
);
}
// {"dqrfa":"待确认方案", "dsccl": "待上传材料", "dsh": "待审核", "ddj": "待递交", "ydj": "已递交", "ywc": "已完成" },
}
if
(
obj
.
opNotes
){
tmObj
[
"opNotes"
]
=
obj
.
opNotes
;
...
...
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