Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
wenHuaBu_adminServer
Commits
031059d0
Commit
031059d0
authored
Feb 20, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
97e2959c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
18 deletions
+17
-18
mail.ts
src/biz/mail.ts
+1
-1
homePage.ts
src/biz/member/homePage.ts
+4
-4
order.ts
src/biz/member/order.ts
+1
-1
model.ts
src/data/models/model.ts
+1
-1
select.ts
src/data/select.ts
+1
-2
router.ts
src/routers/member/router.ts
+9
-9
No files found.
src/biz/mail.ts
View file @
031059d0
...
@@ -87,7 +87,7 @@ function getModel(name, type) {
...
@@ -87,7 +87,7 @@ function getModel(name, type) {
str
=
"您的会员服务已进入宽限期,为避免您的服务受到影响,请于30日内登录会员网站进行缴费处理。"
;
str
=
"您的会员服务已进入宽限期,为避免您的服务受到影响,请于30日内登录会员网站进行缴费处理。"
;
title
=
"会员进入宽限期"
;
title
=
"会员进入宽限期"
;
break
;
break
;
case
MAILTYPE
.
会员宽限期最后一天
:
case
MAILTYPE
.
会员宽限期最后一天
:
//这里还没做
str
=
"您的会员服务已到期,为避免您的服务受到影响,请及时登录会员网站进行缴费处理。"
;
str
=
"您的会员服务已到期,为避免您的服务受到影响,请及时登录会员网站进行缴费处理。"
;
title
=
"服务到期"
;
title
=
"服务到期"
;
break
;
break
;
...
...
src/biz/member/homePage.ts
View file @
031059d0
...
@@ -113,10 +113,10 @@ export async function unitMemberUpdate({form, keyanForm, userId}) {
...
@@ -113,10 +113,10 @@ export async function unitMemberUpdate({form, keyanForm, userId}) {
const
EccFuncName
=
'单位会员修改'
;
const
EccFuncName
=
'单位会员修改'
;
eccEnumValue
(
EccFuncName
,
'单位信息类型'
,
UNITMEMBERTYPE
,
form
.
unitMemberType
);
eccEnumValue
(
EccFuncName
,
'单位信息类型'
,
UNITMEMBERTYPE
,
form
.
unitMemberType
);
/**确保邮箱的唯一性 */
/
/ /
**确保邮箱的唯一性 */
let
distinctMailInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
mail
:
form
.
unitMail
},
[
"userId"
]);
//
let distinctMailInfo = await findOnce(TABLEENUM.用户表, {mail:form.unitMail}, ["userId"]);
if
(
distinctMailInfo
&&
distinctMailInfo
.
userId
&&
distinctMailInfo
.
userId
!=
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
邮箱重复
,
oldInfo
.
loginId
,
oldInfo
.
mail
);
//
if (distinctMailInfo && distinctMailInfo.userId && distinctMailInfo.userId != oldInfo.userId) throw new BizError(ERRORENUM.邮箱重复, oldInfo.loginId, oldInfo.mail );
form
.
mail
=
form
.
unitMail
;
//
form.mail = form.unitMail;
/**修改会员用户信息 */
/**修改会员用户信息 */
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
form
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
form
);
...
...
src/biz/member/order.ts
View file @
031059d0
...
@@ -198,7 +198,7 @@ export async function orderList({userId, type}) {
...
@@ -198,7 +198,7 @@ export async function orderList({userId, type}) {
const
SelectFile
=
[
"orderCycleStart"
,
"orderCycleEnd"
,
"money"
,
"state"
,
"id"
,
"advanceInvoice"
,
const
SelectFile
=
[
"orderCycleStart"
,
"orderCycleEnd"
,
"money"
,
"state"
,
"id"
,
"advanceInvoice"
,
"invoiceStatus"
,
"unitName"
,
"confirmReceipt"
,
"newUscc"
,
"isReceive"
,
"isReplenishReturnInfo"
,
"invoiceStatus"
,
"unitName"
,
"confirmReceipt"
,
"newUscc"
,
"isReceive"
,
"isReplenishReturnInfo"
,
"refundSuccessful"
,
"refundImgUrl"
,
"isSueInvoicesInAdvance"
];
"refundSuccessful"
,
"refundImgUrl"
,
"isSueInvoicesInAdvance"
];
let
dbList
=
await
find
(
TABLEENUM
.
订单表
,
findParam
,
SelectFile
);
let
dbList
=
await
find
ToSort
(
TABLEENUM
.
订单表
,
findParam
,
{
orderYear
:
-
1
}
,
SelectFile
);
/**查询证明函需要字段会员等级 */
/**查询证明函需要字段会员等级 */
let
myOldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
},
[
"memberLevel"
,
"userId"
,
"uscc"
,
"memberType"
]);
let
myOldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
},
[
"memberLevel"
,
"userId"
,
"uscc"
,
"memberType"
]);
if
(
!
myOldInfo
||
!
myOldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
!
myOldInfo
||
!
myOldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
...
...
src/data/models/model.ts
View file @
031059d0
...
@@ -578,7 +578,7 @@ const ModelArray = [
...
@@ -578,7 +578,7 @@ const ModelArray = [
schema
:{
schema
:{
readId
:{
type
:
'String'
,
index
:
true
},
//消息已读id
readId
:{
type
:
'String'
,
index
:
true
},
//消息已读id
msgId
:
'String'
,
//消息id
msgId
:
'String'
,
//消息id
userId
:
'String'
,
//用户id
userId
:
{
type
:
'String'
,
index
:
true
}
,
//用户id
readTime
:
'Number'
,
//阅读时间
readTime
:
'Number'
,
//阅读时间
isRead
:{
type
:
'Number'
,
default
:
STATE
.
否
}
//是否已读
isRead
:{
type
:
'Number'
,
default
:
STATE
.
否
}
//是否已读
}
}
...
...
src/data/select.ts
View file @
031059d0
...
@@ -41,8 +41,7 @@ export async function find(tableEnumValue:string, param, files?) {
...
@@ -41,8 +41,7 @@ export async function find(tableEnumValue:string, param, files?) {
export
async
function
findToSort
(
tableEnumValue
:
string
,
param
,
sortParam
,
files
?)
{
export
async
function
findToSort
(
tableEnumValue
:
string
,
param
,
sortParam
,
files
?)
{
files
=
files
||
[];
files
=
files
||
[];
let
data
=
await
dataModels
[
tableEnumValue
].
find
(
param
,
files
).
sort
(
sortParam
);
return
await
dataModels
[
tableEnumValue
].
find
(
param
,
files
).
sort
(
sortParam
);
return
data
;
}
}
...
...
src/routers/member/router.ts
View file @
031059d0
...
@@ -931,22 +931,22 @@ export const Config = {
...
@@ -931,22 +931,22 @@ export const Config = {
key
:
"form"
,
type
:
"Object"
,
sub
:
key
:
"form"
,
type
:
"Object"
,
sub
:
{
{
/**基本信息 */
/**基本信息 */
unitName
:{
type
:
'String'
,
desc
:
'单位名称'
},
// unitName:{type:'String', desc:'单位名称', notMustHave:true},s
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
legalPerson
:{
type
:
'String'
,
desc
:
'法人代表'
},
// legalPerson:{type:'String', desc:'法人代表', notMustHave:true
},
legalPersonPhone
:{
type
:
'String'
,
desc
:
'法人联系电话'
},
// legalPersonPhone:{type:'String', desc:'法人联系电话', notMustHave:true
},
legalPersonMail
:{
type
:
'String'
,
desc
:
'法人邮箱'
},
// legalPersonMail:{type:'String', desc:'法人邮箱', notMustHave:true
},
unitMail
:{
type
:
'String'
,
desc
:
'单位电子邮箱'
},
// unitMail:{type:'String', desc:'单位电子邮箱', notMustHave:true
},
contactPerson
:{
type
:
'String'
,
desc
:
'日常联系人'
},
contactPerson
:{
type
:
'String'
,
desc
:
'日常联系人'
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
'日常联系人职务'
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
'日常联系人职务'
},
contactPersonPhone
:{
type
:
'String'
,
desc
:
'日常联系人电话'
},
//
contactPersonPhone:{type:'String', desc:'日常联系人电话'},
sheng
:{
type
:
'String'
,
desc
:
'省'
},
sheng
:{
type
:
'String'
,
desc
:
'省'
},
shi
:{
type
:
'String'
,
desc
:
'市'
},
shi
:{
type
:
'String'
,
desc
:
'市'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
uusinessLicenseUrl
:{
type
:
'String'
,
desc
:
'营业执照'
},
// uusinessLicenseUrl:{type:'String', desc:'营业执照', notMustHave:true
},
/**单位信息 */
/**单位信息 */
unitMemberType
:{
type
:
'Number'
,
desc
:
'单位类型'
},
//
unitMemberType:{type:'Number', desc:'单位类型'},
yuanXiaoBanXueLeiXing
:{
type
:
'Number'
,
desc
:
'办学类型'
},
//
yuanXiaoBanXueLeiXing:{type:'Number', desc:'办学类型'},
yuanXiaoZhuGuanBuMen
:{
type
:
'String'
,
desc
:
'主管部门'
},
yuanXiaoZhuGuanBuMen
:{
type
:
'String'
,
desc
:
'主管部门'
},
yuanXiaoFuZeRen
:{
type
:
'String'
,
desc
:
'主要负责人姓名'
},
yuanXiaoFuZeRen
:{
type
:
'String'
,
desc
:
'主要负责人姓名'
},
yuanXiaoFuZeRenZhiWu
:{
type
:
'String'
,
desc
:
'主要负责人职位'
},
yuanXiaoFuZeRenZhiWu
:{
type
:
'String'
,
desc
:
'主要负责人职位'
},
...
...
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