Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
69026415
Commit
69026415
authored
Apr 22, 2020
by
东州 翁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
简化了籍贯的展示籍贯/展示所有籍贯接口,企业信息添加了新字段,修改了以前的修改企业信息和认证申请接口
parent
3adcd720
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
68 deletions
+82
-68
src/main/java/cn/timer/api/bean/qyzx/QyzxEntInfoM.java
+24
-9
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
+47
-58
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+0
-0
src/main/resources/mapping/qyzx/QyzxEntInfoMMapper.xml
+11
-1
No files found.
src/main/java/cn/timer/api/bean/qyzx/QyzxEntInfoM.java
View file @
69026415
...
@@ -37,28 +37,34 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
...
@@ -37,28 +37,34 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@Id
@Id
@GeneratedValue
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"组织机构代码 组织机构代码"
,
example
=
"
101
"
)
@ApiModelProperty
(
value
=
"组织机构代码 组织机构代码"
,
example
=
"
4
"
)
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
value
=
"企业名称 "
,
example
=
"
企业名称
"
)
@ApiModelProperty
(
value
=
"企业名称 "
,
example
=
"
优领人才
"
)
private
String
name
;
private
String
name
;
@ApiModelProperty
(
value
=
"认证名 "
,
example
=
"广东优领人才科技服务有限公司"
)
private
String
attestName
;
@ApiModelProperty
(
value
=
"
企业简介 企业简介"
,
example
=
"101
"
)
@ApiModelProperty
(
value
=
"
简介"
,
example
=
"公司福利好
"
)
private
String
intro
;
private
String
intro
;
@ApiModelProperty
(
value
=
"法人 "
,
example
=
"刘德华"
)
@ApiModelProperty
(
value
=
"法人 "
,
example
=
"刘德华"
)
private
String
operName
;
private
String
operName
;
@ApiModelProperty
(
value
=
"企业规模 10人以下、10-19人、20-99人、100-500人、500人以上"
,
example
=
"
101
"
)
@ApiModelProperty
(
value
=
"企业规模 10人以下、10-19人、20-99人、100-500人、500人以上"
,
example
=
"
3
"
)
private
Integer
size
;
private
Integer
size
;
@ApiModelProperty
(
value
=
"电话号码 "
,
example
=
"18712345678"
)
@ApiModelProperty
(
value
=
"电话号码 "
,
example
=
"18712345678"
)
private
String
phone
;
private
String
phone
;
@ApiModelProperty
(
value
=
"所在地区"
,
example
=
"440111"
)
private
Integer
area
;
@ApiModelProperty
(
value
=
"办公地址 "
,
example
=
"
省/市/区 例:广东省/广州市/白云区
"
)
@ApiModelProperty
(
value
=
"办公地址 "
,
example
=
"
广从一路5号柏曼酒店3楼
"
)
private
String
workAddress
;
private
String
workAddress
;
@ApiModelProperty
(
value
=
"企业
编码
"
,
example
=
" 例:YLZYCS(YL:优领简写;ZY:版本;CS:账户公司简称)"
)
@ApiModelProperty
(
value
=
"企业
简写
"
,
example
=
" 例:YLZYCS(YL:优领简写;ZY:版本;CS:账户公司简称)"
)
private
String
codes
;
private
String
codes
;
@ApiModelProperty
(
value
=
"企业LOGO "
,
example
=
"企业LOGO"
)
@ApiModelProperty
(
value
=
"企业LOGO "
,
example
=
"企业LOGO"
)
...
@@ -70,13 +76,13 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
...
@@ -70,13 +76,13 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@ApiModelProperty
(
value
=
"开通渠道 1直属、2总代理、3独家代理、4一般代理商、5区域代理商"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"开通渠道 1直属、2总代理、3独家代理、4一般代理商、5区域代理商"
,
example
=
"101"
)
private
Integer
openChannel
;
private
Integer
openChannel
;
@ApiModelProperty
(
value
=
"联系人
"
,
example
=
"刘德华"
)
@ApiModelProperty
(
value
=
"联系人"
,
example
=
"刘德华"
)
private
String
linkMan
;
private
String
linkMan
;
@ApiModelProperty
(
value
=
"联系人电话 "
,
example
=
"18712345678"
)
@ApiModelProperty
(
value
=
"联系人电话 "
,
example
=
"18712345678"
)
private
String
linkManPhone
;
private
String
linkManPhone
;
@ApiModelProperty
(
value
=
"统一社会信用代码 "
,
example
=
"
统一社会信用代码"
)
@ApiModelProperty
(
value
=
"统一社会信用代码 "
,
example
=
"统一社会信用代码"
)
private
String
creditCode
;
private
String
creditCode
;
@ApiModelProperty
(
value
=
"是否上市 0:否 1:是"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"是否上市 0:否 1:是"
,
example
=
"101"
)
...
@@ -86,7 +92,16 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
...
@@ -86,7 +92,16 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@ApiModelProperty
(
value
=
"企业注册时间 "
,
example
=
"企业注册时间"
)
@ApiModelProperty
(
value
=
"企业注册时间 "
,
example
=
"企业注册时间"
)
private
Date
registerTime
;
private
Date
registerTime
;
@ApiModelProperty
(
value
=
"到期时间 "
,
example
=
"到期时间"
)
@ApiModelProperty
(
value
=
"营业执照 "
,
example
=
"营业执照url "
)
private
String
licenseUrl
;
@ApiModelProperty
(
value
=
"认证状态 "
,
example
=
"0 认证中,1已认证,2认证失败 "
)
private
Integer
attestStatus
;
@ApiModelProperty
(
value
=
"认证时间 "
,
example
=
"2019-12-12 08:00:00"
)
private
Date
attestTime
;
@ApiModelProperty
(
value
=
"到期时间 "
,
example
=
"2039-12-12 08:00:00"
)
private
Date
endTime
;
private
Date
endTime
;
@ApiModelProperty
(
value
=
"企业版本,0试用,1标准,2专业, "
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"企业版本,0试用,1标准,2专业, "
,
example
=
"0"
)
...
...
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
View file @
69026415
...
@@ -119,6 +119,23 @@ public class QyzxController {
...
@@ -119,6 +119,23 @@ public class QyzxController {
.
eq
(
orgCode
!=
null
,
QyzxEntInfoM:
:
getId
,
orgCode
).
one
();
.
eq
(
orgCode
!=
null
,
QyzxEntInfoM:
:
getId
,
orgCode
).
one
();
return
ResultUtil
.
data
(
qyzxEntInfoM
,
"获取企业信息成功"
);
return
ResultUtil
.
data
(
qyzxEntInfoM
,
"获取企业信息成功"
);
}
}
/**
* 添加/修改企业信息
*
* @param
* @return
*/
@PostMapping
(
value
=
"/ent"
)
@ApiOperation
(
value
=
"添加/修改企业信息"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxEntInfoM
>
addent
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntInfoM
qyzxEntInfoM
)
{
qyzxEntInfoM
.
setId
(
userBean
.
getOrgCode
());
QyzxEntInfoM
q
=
new
LambdaQueryChainWrapper
<
QyzxEntInfoM
>(
qyzxEntInfoMMapper
).
eq
(
QyzxEntInfoM:
:
getId
,
userBean
.
getOrgCode
()).
one
();
qyzxEntInfoM
.
setRegisterTime
(
q
.
getRegisterTime
());
qyzxEntInfoM
.
insertOrUpdate
();
return
ResultUtil
.
data
(
qyzxEntInfoM
,
"添加/修改企业"
);
}
/**
/**
* 企业认证-申请
* 企业认证-申请
...
@@ -128,14 +145,13 @@ public class QyzxController {
...
@@ -128,14 +145,13 @@ public class QyzxController {
*/
*/
@PostMapping
(
value
=
"/entauth"
)
@PostMapping
(
value
=
"/entauth"
)
@ApiOperation
(
value
=
"企业认证"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"企业认证"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxEnt
Auth
>
entauth
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntAuth
qyzxEntAuth
)
{
public
Result
<
QyzxEnt
InfoM
>
entauth
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntInfoM
qyzxEntInfoM
)
{
// 设置审核状态
// 设置审核状态
qyzxEntAuth
.
setAuthType
(
CommonEnum
.
AUTH_TYPE_UNDEREVIEW
.
getType
());
qyzxEntInfoM
.
setAttestStatus
(
CommonEnum
.
AUTH_TYPE_UNDEREVIEW
.
getType
());
qyzxEntAuth
.
setId
(
userBean
.
getOrgCode
());
qyzxEntInfoM
.
setId
(
userBean
.
getOrgCode
());
// 插入数据
qyzxEntInfoM
.
updateById
();
qyzxEntAuth
.
insert
();
// }
// }
return
ResultUtil
.
data
(
qyzxEnt
Auth
,
"申请企业认证中"
);
return
ResultUtil
.
data
(
qyzxEnt
InfoM
,
"申请企业认证中"
);
}
}
/**
/**
...
@@ -144,22 +160,18 @@ public class QyzxController {
...
@@ -144,22 +160,18 @@ public class QyzxController {
* @param qyzxEntAuth
* @param qyzxEntAuth
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/entauthcheck"
)
/*
@ApiOperation
(
value
=
"企业认证-审核-通过/未通过"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
* @PostMapping(value = "/entauthcheck")
public
Result
<
QyzxEntAuth
>
entauthcheck1
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntAuth
qyzxEntAuth
)
{
*
Integer
id
=
qyzxEntAuth
.
getId
();
* @ApiOperation(value = "企业认证-审核-通过/未通过", httpMethod = "POST", notes =
Integer
authType
=
qyzxEntAuth
.
getAuthType
();
* "接口发布说明") public Result<QyzxEntAuth> entauthcheck1(@CurrentUser UserBean
if
(
id
==
null
||
authType
==
null
)
{
* userBean, @RequestBody QyzxEntAuth qyzxEntAuth) { Integer id =
return
ResultUtil
.
error
(
"参数缺少/异常"
);
* qyzxEntAuth.getId(); Integer authType = qyzxEntAuth.getAuthType(); if (id ==
}
* null || authType == null) { return ResultUtil.error("参数缺少/异常"); } QyzxEntAuth
QyzxEntAuth
entAuth
=
QyzxEntAuth
.
builder
().
id
(
id
).
authType
(
authType
).
build
();
* entAuth = QyzxEntAuth.builder().id(id).authType(authType).build(); boolean b
boolean
b
=
entAuth
.
updateById
();
* = entAuth.updateById(); if (b) { return ResultUtil.data(qyzxEntAuth,
if
(
b
)
{
* "企业认证-审批成功"); } else { return ResultUtil.error("企业认证-审批失败"); } }
return
ResultUtil
.
data
(
qyzxEntAuth
,
"企业认证-审批成功"
);
*/
}
else
{
return
ResultUtil
.
error
(
"企业认证-审批失败"
);
}
}
/**
/**
* 运营管理 企业认证-审核-通过/不通过(weng)
* 运营管理 企业认证-审核-通过/不通过(weng)
...
@@ -167,22 +179,18 @@ public class QyzxController {
...
@@ -167,22 +179,18 @@ public class QyzxController {
* @param qyzxEntAuth
* @param qyzxEntAuth
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/entauthpass"
)
/*
@ApiOperation
(
value
=
"企业认证-审核-通过"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
* @PostMapping(value = "/entauthpass")
public
Result
<
String
>
entauthpass
(
@RequestBody
EntauthDto
entauthDto
)
{
// 2未通过,3通过
*
String
msg
=
"企业认证不通过"
;
* @ApiOperation(value = "企业认证-审核-通过", httpMethod = "POST", notes = "接口发布说明")
Integer
type
=
entauthDto
.
getAuthType
();
* public Result<String> entauthpass(@RequestBody EntauthDto entauthDto) {//
if
(
type
!=
2
)
{
* 2未通过,3通过 String msg = "企业认证不通过"; Integer type = entauthDto.getAuthType(); if
type
=
3
;
* (type != 2) { type = 3; msg = "企业认证成功"; } boolean b = new
msg
=
"企业认证成功"
;
* LambdaUpdateChainWrapper<QyzxEntAuth>(qyzxEntAuthMapper)
}
* .eq(QyzxEntAuth::getId,
boolean
b
=
new
LambdaUpdateChainWrapper
<
QyzxEntAuth
>(
qyzxEntAuthMapper
)
* entauthDto.getOrgCode()).set(QyzxEntAuth::getAuthType, type).update(); if (b)
.
eq
(
QyzxEntAuth:
:
getId
,
entauthDto
.
getOrgCode
()).
set
(
QyzxEntAuth:
:
getAuthType
,
type
).
update
();
* { return ResultUtil.data(msg); } return ResultUtil.error("企业认证未通过"); }
if
(
b
)
{
*/
return
ResultUtil
.
data
(
msg
);
}
return
ResultUtil
.
error
(
"企业认证未通过"
);
}
/**
/**
* 显示企业的超级管理员
* 显示企业的超级管理员
...
@@ -592,26 +600,7 @@ public class QyzxController {
...
@@ -592,26 +600,7 @@ public class QyzxController {
return
ResultUtil
.
data
(
page
,
logBuyDto
,
"查询成功"
);
return
ResultUtil
.
data
(
page
,
logBuyDto
,
"查询成功"
);
}
}
/**
* 添加/修改企业信息
*
* @param
* @return
*/
@PostMapping
(
value
=
"/ent"
)
@ApiOperation
(
value
=
"添加/修改企业信息"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxEntInfoM
>
addent
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntInfoM
qyzxEntInfoM
)
{
qyzxEntInfoM
.
insertOrUpdate
();
Integer
count
=
qyzxEmpEntAssoMapper
.
selectCount
(
new
QueryWrapper
<
QyzxEmpEntAsso
>()
.
eq
(
"emp_num"
,
userBean
.
getEmpNum
()).
eq
(
"org_code"
,
qyzxEntInfoM
.
getId
()));
if
(
count
==
null
||
count
<=
0
)
QyzxEmpEntAsso
.
builder
().
empNum
(
userBean
.
getEmpNum
()).
orgCode
(
qyzxEntInfoM
.
getId
()).
userType
(
1
).
status
(
1
)
.
build
().
insert
();
// 添加关联表
QyzxEmpEntAsso
.
builder
().
empNum
(
userBean
.
getEmpNum
()).
orgCode
(
qyzxEntInfoM
.
getId
()).
userType
(
1
).
build
()
.
insertOrUpdate
();
return
ResultUtil
.
data
(
qyzxEntInfoM
,
"添加/修改企业"
);
}
/**
/**
* 账号管理 获取账号
* 账号管理 获取账号
...
...
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
69026415
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/qyzx/QyzxEntInfoMMapper.xml
View file @
69026415
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
<result
column=
"is_on_stock"
property=
"isOnStock"
/>
<result
column=
"is_on_stock"
property=
"isOnStock"
/>
<result
column=
"level"
property=
"level"
/>
<result
column=
"level"
property=
"level"
/>
<result
column=
"register_time"
property=
"registerTime"
/>
<result
column=
"register_time"
property=
"registerTime"
/>
<result
column=
"license_url"
property=
"licenseUrl"
/>
<result
column=
"area"
property=
"area"
/>
<result
column=
"attest_name"
property=
"attestName"
/>
<result
column=
"attest_status"
property=
"attestStatus"
/>
<result
column=
"attest_time"
property=
"attestTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -40,7 +45,12 @@
...
@@ -40,7 +45,12 @@
credit_code,
credit_code,
is_on_stock,
is_on_stock,
level,
level,
register_time
register_time,
license_url,
area,
attest_name,
attest_status,
attest_time
</sql>
</sql>
<!--
<!--
...
...
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