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
9a0daaa8
Commit
9a0daaa8
authored
May 26, 2021
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改公司名
parent
dc7caa6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
icp-deliver/app/base/service/impl/delivery/companycaseSve.js
+12
-0
icp-deliver/app/base/service/impl/delivery/deliverSve.js
+13
-0
icp-deliver/app/base/service/impl/delivery/newdeliverSve.js
+14
-0
No files found.
icp-deliver/app/base/service/impl/delivery/companycaseSve.js
View file @
9a0daaa8
...
@@ -42,6 +42,18 @@ class CompanycaseService extends ServiceBase {
...
@@ -42,6 +42,18 @@ class CompanycaseService extends ServiceBase {
salesman_name
:
pobj
.
username
salesman_name
:
pobj
.
username
});
});
}
}
// 更新公司名称
if
(
pobj
&&
pobj
.
cache_info
&&
pobj
.
cache_info
.
companyInfo
&&
pobj
.
cache_info
.
companyInfo
.
companyName
)
{
await
this
.
deliveryDao
.
updateByWhere
({
company_name
:
pobj
.
cache_info
.
companyInfo
.
companyName
,
delivery_info
:
{
...
deliverData
.
delivery_info
,
companyName
:
pobj
.
cache_info
.
companyInfo
.
companyName
}
},
{
delivery_code
:
deliverData
.
delivery_code
},
t
);
}
return
"SUCCESS"
return
"SUCCESS"
});
});
}
}
...
...
icp-deliver/app/base/service/impl/delivery/deliverSve.js
View file @
9a0daaa8
...
@@ -71,6 +71,19 @@ class DeliverService extends ServiceBase {
...
@@ -71,6 +71,19 @@ class DeliverService extends ServiceBase {
});
});
}
}
}
}
// 更新公司名称
if
(
pobj
&&
pobj
.
cache_info
&&
pobj
.
cache_info
.
proposerFormInfo
&&
pobj
.
cache_info
.
proposerFormInfo
.
businessLicense
&&
pobj
.
cache_info
.
proposerFormInfo
.
businessLicense
.
name
)
{
await
this
.
deliveryDao
.
updateByWhere
({
company_name
:
pobj
.
cache_info
.
proposerFormInfo
.
businessLicense
.
name
,
delivery_info
:
{
...
deliverData
.
delivery_info
,
companyName
:
pobj
.
cache_info
.
proposerFormInfo
.
businessLicense
.
name
}
},
{
delivery_code
:
deliverData
.
delivery_code
},
t
);
}
return
"SUCCESS"
return
"SUCCESS"
});
});
}
}
...
...
icp-deliver/app/base/service/impl/delivery/newdeliverSve.js
View file @
9a0daaa8
...
@@ -60,6 +60,20 @@ class NewdeliverService extends ServiceBase {
...
@@ -60,6 +60,20 @@ class NewdeliverService extends ServiceBase {
salesman_name
:
pobj
.
username
salesman_name
:
pobj
.
username
});
});
}
}
// 更新公司名称
if
(
pobj
&&
pobj
.
cache_info
&&
pobj
.
cache_info
.
businessLicense
&&
pobj
.
cache_info
.
businessLicense
.
name
)
{
await
this
.
deliveryDao
.
updateByWhere
({
company_name
:
pobj
.
cache_info
.
businessLicense
.
name
,
delivery_info
:
{
...
deliverData
.
delivery_info
,
companyName
:
pobj
.
cache_info
.
businessLicense
.
name
}
},
{
delivery_code
:
deliverData
.
delivery_code
},
t
);
}
return
"SUCCESS"
return
"SUCCESS"
});
});
}
}
...
...
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