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
f3c8d8a8
Commit
f3c8d8a8
authored
Jul 03, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
feb1d83b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
28 deletions
+38
-28
brg-user-center/app/base/api/api.base.js
+3
-2
brg-user-center/app/base/api/impl/action/need.js
+3
-3
brg-user-center/app/base/db/impl/order/orderDeliveryDao.js
+4
-1
brg-user-center/app/base/db/models/need/needInfo.js
+1
-1
brg-user-center/app/base/service/impl/need/needInfoSve.js
+6
-4
brg-user-center/app/base/service/impl/order/applyInfoSve.js
+3
-3
brg-user-center/app/base/service/impl/order/orderInfoSve.js
+11
-7
brg-user-center/app/base/service/impl/order/orderProductSve.js
+1
-1
brg-user-center/app/front/entry/public/apidoc/customer/order.md
+0
-0
brg-user-center/app/front/entry/public/apidoc/pushReceive/push.md
+6
-6
No files found.
brg-user-center/app/base/api/api.base.js
View file @
f3c8d8a8
...
...
@@ -9,20 +9,21 @@ class APIBase {
this
.
userCenterAction
=
{
"GetOverviewInfoByUser"
:
"getOverviewInfoByUser"
,
"GetOrderList"
:
"getOrderList"
,
"GetQualificationCertificateOrderList"
:
"getQcOrderList"
,
"GetQcOrderList"
:
"getQcOrderList"
,
"GetOrderDetail"
:
"getOrderDetail"
,
"GetApplyListByUserAndType"
:
"getApplyListByUserAndType"
,
"GetApplyAndSolutionInfo"
:
"getApplyAndSolutionInfo"
,
"SelPrice2TX"
:
"selPrice2TX"
,
"GetOverviewInfoByUser"
:
"getOverviewInfoByUser"
,
"SubmitGoods
i
nfo"
:
"submitGoodsinfo"
,
"SubmitGoods
I
nfo"
:
"submitGoodsinfo"
,
"SubmitNeed"
:
"needSubmit"
,
"GetNeedList"
:
"needList"
,
"GetNeedDetail"
:
"needDetail"
,
"GetOrderListByStatus"
:
"getOrderListByStatus"
,
"GetQualificationCertificateListByUserAndType"
:
"getQualificationCertificateListByUserAndType"
,
"GetQualificationCertificateDetail"
:
"getQualificationCertificateDetail"
,
"Refus
al
Solution"
:
"refusalSolution"
,
"Refus
e
Solution"
:
"refusalSolution"
,
"SendVerificationCode"
:
"sendVerificationCode"
,
"CheckBusinessNameList"
:
"checkBusinessNameList"
,
};
...
...
brg-user-center/app/base/api/impl/action/need.js
View file @
f3c8d8a8
...
...
@@ -28,15 +28,15 @@ class Need extends APIBase {
];
var
self
=
this
;
if
(
verificationCodeList
.
indexOf
(
action_type
)
>
-
1
)
{
if
(
!
pobj
.
actionBody
.
ContactsMob
li
e
)
{
opResult
=
system
.
getResult
(
null
,
"
contactsMobli
e参数错误"
);
if
(
!
pobj
.
actionBody
.
ContactsMob
il
e
)
{
opResult
=
system
.
getResult
(
null
,
"
ContactsMobil
e参数错误"
);
return
opResult
;
}
if
(
!
pobj
.
actionBody
.
VerificationCode
)
{
opResult
=
system
.
getResult
(
null
,
"verificationCode参数错误"
);
return
opResult
;
}
var
v
=
await
self
.
utilsMsgSendSve
.
getVerificationCode
(
pobj
.
actionBody
.
ContactsMob
li
e
);
var
v
=
await
self
.
utilsMsgSendSve
.
getVerificationCode
(
pobj
.
actionBody
.
ContactsMob
il
e
);
if
(
v
!=
pobj
.
actionBody
.
VerificationCode
)
{
opResult
=
system
.
getResult
(
null
,
"验证码错误"
);
return
opResult
;
...
...
brg-user-center/app/base/db/impl/order/orderDeliveryDao.js
View file @
f3c8d8a8
...
...
@@ -31,7 +31,10 @@ class OrderDeliveryDao extends Dao{
userId
:
userId
,
status
:
status
};
var
sql
=
"select * from v_order_oproduct_odelivery where deleted_at is null and delivery_status = :status "
+
var
sql
=
"select `order_num`,`tx_orders_num` as main_orders_num,`need_num`,`user_name`,`user_id`,"
+
"`updated_at`,`total_sum`,`refund_sum`,`pay_time`,`order_status`,`order_status_name`,`servicer_code`,"
+
"`servicer_name`,`product_type`,`product_type_name`,`order_snapshot`,`end_time`,`time_span`,`time_unit`,"
+
"`region_id`,`region_name`,`delivery_status`,`delivery_status_name`,`deliver_content` from v_order_oproduct_odelivery where deleted_at is null and delivery_status = :status "
+
" and user_id = :userId "
;
var
list
=
await
this
.
customQuery
(
sql
,
params
);
return
list
;
...
...
brg-user-center/app/base/db/models/need/needInfo.js
View file @
f3c8d8a8
...
...
@@ -6,7 +6,7 @@ module.exports = (db, DataTypes) => {
user_id
:
DataTypes
.
STRING
(
100
),
user_name
:
DataTypes
.
STRING
(
100
),
//user_name 用户名称
contacts_name
:
DataTypes
.
STRING
(
20
),
//contacts_name 联系人姓名
contacts_mob
lie
:
DataTypes
.
STRING
(
20
),
//contacts_mobli
e 联系人电话
contacts_mob
ile
:
DataTypes
.
STRING
(
20
),
//contacts_mobil
e 联系人电话
region_id
:
DataTypes
.
STRING
(
100
),
//region_id 地区id
region_name
:
DataTypes
.
STRING
(
100
),
//region_name 地区名称
consult_type
:
DataTypes
.
STRING
(
100
),
//consult_type 需求类型(产品二类id)
...
...
brg-user-center/app/base/service/impl/need/needInfoSve.js
View file @
f3c8d8a8
...
...
@@ -50,8 +50,8 @@ class NeedInfoService extends ServiceBase {
*/
//创建需求
async
needSubmit
(
actionBody
)
{
if
(
!
actionBody
.
ContactsMob
li
e
)
{
return
system
.
getResultFail
(
-
102
,
"
contactsMobli
e cannot be empty"
);
if
(
!
actionBody
.
ContactsMob
il
e
)
{
return
system
.
getResultFail
(
-
102
,
"
ContactsMobil
e cannot be empty"
);
}
if
(
!
actionBody
.
RegionId
)
{
return
system
.
getResultFail
(
-
102
,
"regionId cannot be empty"
);
...
...
@@ -86,7 +86,7 @@ class NeedInfoService extends ServiceBase {
var
datavalue
=
{
need_num
:
need_num
,
user_id
:
actionBody
.
UserId
,
contacts_mob
lie
:
actionBody
.
ContactsMobli
e
,
contacts_mob
ile
:
actionBody
.
ContactsMobil
e
,
contacts_name
:
actionBody
.
ContactsName
||
""
,
region_id
:
actionBody
.
RegionId
,
region_name
:
actionBody
.
RegionName
,
...
...
@@ -96,7 +96,9 @@ class NeedInfoService extends ServiceBase {
servicer_code
:
actionBody
.
ServicerCode
,
servicer_name
:
actionBody
.
ServicerName
,
status
:
1
,
user_name
:
actionBody
.
UserName
user_name
:
actionBody
.
UserName
,
email
:
actionBody
.
Email
,
wechat_no
:
actionBody
.
WechatNo
}
if
(
actionBody
.
CompanyName
)
{
datavalue
.
need_info
=
{
...
...
brg-user-center/app/base/service/impl/order/applyInfoSve.js
View file @
f3c8d8a8
...
...
@@ -121,10 +121,10 @@ class ApplyInfoService extends ServiceBase {
var
waitReceiveFileOrderCount
=
await
this
.
orderDeliveryDao
.
findOverviewCount
(
150
,
ab
.
UserId
,
ab
.
ProductTypeOne
);
//待收文件数量
// var unpaidCount = await this.orderInfoDao.findCount({where:{order_status:0}});//待支付订单数量
if
(
ab
.
ProductTypeOne
==
"qcfw"
){
//资质证照
var
i
cp
Count
=
await
this
.
orderInfoDao
.
findOrderCountByProductPathCode
(
"/qcfw/icp/"
,
ab
.
UserId
);
//icp数量
var
e
di
Count
=
await
this
.
orderInfoDao
.
findOrderCountByProductPathCode
(
"/qcfw/edi/"
,
ab
.
UserId
);
//edi数量
var
i
nternetContentProvider
Count
=
await
this
.
orderInfoDao
.
findOrderCountByProductPathCode
(
"/qcfw/icp/"
,
ab
.
UserId
);
//icp数量
var
e
lectronicDataInterchange
Count
=
await
this
.
orderInfoDao
.
findOrderCountByProductPathCode
(
"/qcfw/edi/"
,
ab
.
UserId
);
//edi数量
var
resultObj
=
{
i
cpCount
:
icpCount
,
waitConfirmCount
:
waitConfirmCount
,
ediCount
:
edi
Count
,
i
nternetContentProviderCount
:
internetContentProviderCount
,
waitConfirmCount
:
waitConfirmCount
,
electronicDataInterchangeCount
:
electronicDataInterchange
Count
,
waitReceiveFileOrderCount
:
waitReceiveFileOrderCount
};
return
system
.
getResult
(
resultObj
);
...
...
brg-user-center/app/base/service/impl/order/orderInfoSve.js
View file @
f3c8d8a8
...
...
@@ -31,7 +31,7 @@ class OrderInfoService extends ServiceBase {
attributes
:
[
"pay_time"
,
"order_num"
,
"tx_orders_num"
,
//腾讯主订单号
[
"tx_orders_num"
,
"main_orders_num"
]
,
//腾讯主订单号
"need_num"
,
//需求号
"user_name"
,
//用户名称
"quantity"
,
//订单数量
...
...
@@ -50,8 +50,8 @@ class OrderInfoService extends ServiceBase {
return
system
.
getResultFail
(
-
300
,
"未知订单信息"
);
}
var
relatedProductsList
=
[];
if
(
orderinfo
.
tx
_orders_num
)
{
relatedProductsList
=
await
this
.
getRelatedProductsList
(
orderinfo
.
tx
_orders_num
,
ab
.
UserId
,
ab
.
OrderNum
);
if
(
orderinfo
.
main
_orders_num
)
{
relatedProductsList
=
await
this
.
getRelatedProductsList
(
orderinfo
.
main
_orders_num
,
ab
.
UserId
,
ab
.
OrderNum
);
}
orderinfo
[
"relatedProductsList"
]
=
relatedProductsList
;
var
deliveryParams
=
{
...
...
@@ -236,7 +236,9 @@ class OrderInfoService extends ServiceBase {
order_num
:
pobj
.
actionBody
.
interface
.
para
.
dealName
,
user_id
:
pobj
.
actionBody
.
interface
.
para
.
uin
,
delivery_status
:
1
,
user_name
:
txorderdetail
.
goodsDetail
.
formInfo
.
userName
user_name
:
txorderdetail
.
goodsDetail
.
formInfo
.
userName
,
email
:
txorderdetail
.
goodsDetail
.
formInfo
.
email
||
""
,
wechat_no
:
txorderdetail
.
goodsDetail
.
formInfo
.
wechatNo
||
""
}
var
orderDeliveryinfo
=
await
self
.
orderDeliveryDao
.
create
(
orderDeliveryobj
,
t
);
var
orderPayobj
=
{
...
...
@@ -280,7 +282,7 @@ class OrderInfoService extends ServiceBase {
"regionId"
:
txorderdetail
.
goodsDetail
.
formInfo
.
serviceCode
,
"regionName"
:
txorderdetail
.
goodsDetail
.
formInfo
.
serviceArea
,
"contactsName"
:
txorderdetail
.
goodsDetail
.
formInfo
.
contactsName
,
"contactsMob
lie"
:
txorderdetail
.
goodsDetail
.
formInfo
.
contactsMobli
e
,
"contactsMob
ile"
:
txorderdetail
.
goodsDetail
.
formInfo
.
contactsMobil
e
,
"productType"
:
txorderdetail
.
goodsDetail
.
product
.
productType
,
"productTypeName"
:
txorderdetail
.
goodsDetail
.
product
.
productTypeName
,
"txPriceCode"
:
txorderdetail
.
goodsDetail
.
product
.
txPriceCode
,
...
...
@@ -495,7 +497,9 @@ class OrderInfoService extends ServiceBase {
order_num
:
pobj
.
actionBody
.
interface
.
para
.
dealName
,
user_id
:
pobj
.
actionBody
.
interface
.
para
.
uin
,
delivery_status
:
1
,
user_name
:
txorderdetail
.
goodsDetail
.
formInfo
.
userName
user_name
:
txorderdetail
.
goodsDetail
.
formInfo
.
userName
,
email
:
txorderdetail
.
goodsDetail
.
formInfo
.
email
||
""
,
wechat_no
:
txorderdetail
.
goodsDetail
.
formInfo
.
wechatNo
||
""
}
var
orderDeliveryinfo
=
await
self
.
orderDeliveryDao
.
create
(
orderDeliveryobj
,
t
);
var
orderPayobj
=
{
...
...
@@ -539,7 +543,7 @@ class OrderInfoService extends ServiceBase {
"regionId"
:
txorderdetail
.
goodsDetail
.
formInfo
.
serviceCode
,
"regionName"
:
txorderdetail
.
goodsDetail
.
formInfo
.
serviceArea
,
"contactsName"
:
txorderdetail
.
goodsDetail
.
formInfo
.
contactsName
,
"contactsMob
lie"
:
txorderdetail
.
goodsDetail
.
formInfo
.
contactsMobli
e
,
"contactsMob
ile"
:
txorderdetail
.
goodsDetail
.
formInfo
.
contactsMobil
e
,
"productType"
:
txorderdetail
.
goodsDetail
.
product
.
productType
,
"productTypeName"
:
txorderdetail
.
goodsDetail
.
product
.
productTypeName
,
"txPriceCode"
:
txorderdetail
.
goodsDetail
.
product
.
txPriceCode
,
...
...
brg-user-center/app/base/service/impl/order/orderProductSve.js
View file @
f3c8d8a8
...
...
@@ -21,7 +21,7 @@ class OderproductService extends ServiceBase {
// "regionId":actionbody.regionId,
// "regionName":actionbody.regionName,
// "contactsName":actionbody.contactsName,
// "contactsMob
lie":actionbody.contactsMobli
e,
// "contactsMob
ile":actionbody.contactsMobil
e,
// "productType":actionbody.productType,
// "orderSnapshot":order_snapshot
// }
...
...
brg-user-center/app/front/entry/public/apidoc/customer/order.md
View file @
f3c8d8a8
This diff is collapsed.
Click to expand it.
brg-user-center/app/front/entry/public/apidoc/pushReceive/push.md
View file @
f3c8d8a8
...
...
@@ -25,7 +25,7 @@ servicerName | Y | string | 100 | 服务商名称
regionId | Y | string | 100 | 地区id
regionName | Y | string | 100 | 地区名称
contactsName | Y | string | 100 | 用户名称
contactsMobli
e | Y | string | 100 | 用户电话
ContactsMobil
e | Y | string | 100 | 用户电话
consultType | Y | int | 100 | 需求类型
consultTypeName | Y | int | 100 | 需求类型名称
...
...
@@ -39,7 +39,7 @@ servicerName | Y | string | 100 | 服务商名称
regionId | Y | string | 100 | 地区id
regionName | Y | string | 100 | 地区名称
contactsName | Y | string | 100 | 用户名称
contactsMobli
e | Y | string | 100 | 用户电话
ContactsMobil
e | Y | string | 100 | 用户电话
consultType | Y | int | 100 | 需求类型
consultTypeName | Y | int | 100 | 需求类型名称
companyName | Y | int | 100 | 公司名称
...
...
@@ -55,7 +55,7 @@ companyName | Y | int | 100 | 公司名称
"regionId"
:
"1"
,
"regionName"
:
"北京"
,
"contactsName"
:
"张三"
,
"
contactsMobli
e"
:
"17610163853"
,
"
ContactsMobil
e"
:
"17610163853"
,
"consultType"
:
"/ic/gsreg/"
,
"consultTypeName"
:
"/工商服务/公司注册/"
,
"servicerCode: "
gsb
",
...
...
@@ -94,7 +94,7 @@ servicerName | Y | string | 100 | 服务商名称
regionId | Y | string | 100 | 地区id
regionName | Y | string | 100 | 地区名称
contactsName | Y | string | 100 | 用户名称
contactsMob
li
e | Y | string | 100 | 用户电话
contactsMob
il
e | Y | string | 100 | 用户电话
productType | Y | int | 100 | 产品类型
productTypeName | Y | int | 100 | 产品类型名称
...
...
@@ -109,7 +109,7 @@ servicerName | Y | string | 100 | 服务商名称
regionId | Y | string | 100 | 地区id
regionName | Y | string | 100 | 地区名称
contactsName | Y | string | 100 | 用户名称
contactsMob
li
e | Y | string | 100 | 用户电话
contactsMob
il
e | Y | string | 100 | 用户电话
productType | Y | int | 100 | 产品类型
productTypeName | Y | int | 100 | 产品类型名称
order_snapshot | Y | string | 500 | 订单快照(json转字符串)
...
...
@@ -126,7 +126,7 @@ order_snapshot | Y | string | 500 | 订单快照(json转字符串)
"regionId"
:
""
,
"regionName"
:
""
,
"contactsName"
:
""
,
"contactsMob
li
e"
:
""
,
"contactsMob
il
e"
:
""
,
"productType"
:
""
"orderSnapshot"
:{}
}
...
...
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