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
0ff6c96f
Commit
0ff6c96f
authored
Apr 21, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wdz' into 'develop'
Wdz See merge request 8timerv2/8timerapiv200!36
parents
3f4f75e7
437addff
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
462 additions
and
179 deletions
+462
-179
src/main/java/cn/timer/api/bean/qyzx/QyzxFeebackAccessory.java
+44
-0
src/main/java/cn/timer/api/bean/qyzx/QyzxSuggestionFeeback.java
+53
-0
src/main/java/cn/timer/api/controller/LoginController.java
+5
-5
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
+286
-172
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+1
-1
src/main/java/cn/timer/api/dao/qyzx/QyzxEmpEntAssoMapper.java
+1
-1
src/main/java/cn/timer/api/dao/qyzx/QyzxFeebackAccessoryMapper.java
+16
-0
src/main/java/cn/timer/api/dao/qyzx/QyzxSuggestionFeebackMapper.java
+16
-0
src/main/java/cn/timer/api/dto/qyzx/EntauthDto.java
+40
-0
No files found.
src/main/java/cn/timer/api/bean/qyzx/QyzxFeebackAccessory.java
0 → 100644
View file @
0ff6c96f
package
cn
.
timer
.
api
.
bean
.
qyzx
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
cn.timer.api.dto.login.QysDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-11
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
(
toBuilder
=
true
)
@ApiModel
(
"反馈附件表"
)
public
class
QyzxFeebackAccessory
extends
Model
<
QyzxFeebackAccessory
>
{
private
static
final
long
serialVersionUID
=
3545665863196016627L
;
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
,
example
=
"1"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"意见id"
,
example
=
"1"
)
private
Integer
feebackId
;
@ApiModelProperty
(
value
=
"附件url地址"
,
example
=
"url"
)
private
String
opinionUrl
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/qyzx/QyzxSuggestionFeeback.java
0 → 100644
View file @
0ff6c96f
package
cn
.
timer
.
api
.
bean
.
qyzx
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author Tang 2019-11-11
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
(
toBuilder
=
true
)
@ApiModel
(
"意见反馈表"
)
public
class
QyzxSuggestionFeeback
extends
Model
<
QyzxSuggestionFeeback
>
{
private
static
final
long
serialVersionUID
=
3545665863196016627L
;
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
,
example
=
"1"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"员工编号"
,
example
=
"9688"
)
private
Integer
empNum
;
@ApiModelProperty
(
value
=
""
,
example
=
"不好用"
)
private
String
opinionText
;
@ApiModelProperty
(
value
=
""
,
example
=
"1"
)
private
Integer
bugType
;
@ApiModelProperty
(
value
=
""
,
example
=
"2020-4-20 08:00:00"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
""
,
example
=
"117"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
""
,
example
=
"那别用了"
)
private
String
reply
;
@ApiModelProperty
(
value
=
""
,
example
=
"2020-4-21 08:00:00"
)
private
Date
replyTime
;
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/LoginController.java
View file @
0ff6c96f
...
@@ -134,11 +134,11 @@ public class LoginController {
...
@@ -134,11 +134,11 @@ public class LoginController {
@ApiOperationSupport
(
order
=
2
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
String
>
authentication
(
@RequestBody
EntRegisterDto
entRegisterDto
)
{
public
Result
<
String
>
authentication
(
@RequestBody
EntRegisterDto
entRegisterDto
)
{
String
phone
=
entRegisterDto
.
getPhone
();
String
phone
=
entRegisterDto
.
getPhone
();
String
code
=
entRegisterDto
.
getCode
();
String
code
=
entRegisterDto
.
getCode
()
.
toString
()
;
// String codeRedis = (String) redisTemplate.get(phone);
// String codeRedis = (String) redisTemplate.get(phone);
String
codeRedis
=
(
String
)
session
.
getAttribute
(
phone
);
Integer
codeRedis
=
(
Integer
)
session
.
getAttribute
(
phone
);
if
(
code
==
null
||
!
code
.
toString
().
equals
(
codeRedis
))
{
if
(
code
==
null
||
!
code
.
equals
(
codeRedis
.
toString
()
))
{
return
ResultUtil
.
error
(
"验证码不符"
);
return
ResultUtil
.
error
(
"验证码不符"
);
}
}
return
ResultUtil
.
success
(
"验证码正确"
);
return
ResultUtil
.
success
(
"验证码正确"
);
...
@@ -401,9 +401,9 @@ public class LoginController {
...
@@ -401,9 +401,9 @@ public class LoginController {
String
phone
=
entRegisterDto
.
getPhone
();
String
phone
=
entRegisterDto
.
getPhone
();
// Object codeRedis = redisTemplate.get(phone);
// Object codeRedis = redisTemplate.get(phone);
String
codeRedis
=
(
String
)
session
.
getAttribute
(
phone
);
Integer
codeRedis
=
(
Integer
)
session
.
getAttribute
(
phone
);
if
(
codeRedis
==
null
||
!
code
.
toString
().
equals
(
codeRedis
.
toString
()))
if
(
codeRedis
==
null
||
!
code
.
equals
(
codeRedis
.
toString
()))
return
ResultUtil
.
error
(
"验证码不符"
);
return
ResultUtil
.
error
(
"验证码不符"
);
QyzxEmpLogin
qyzxEmpLogin1
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
QyzxEmpLogin
qyzxEmpLogin1
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
...
...
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
View file @
0ff6c96f
package
cn
.
timer
.
api
.
controller
.
qyzx
;
package
cn
.
timer
.
api
.
controller
.
qyzx
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -7,6 +8,7 @@ import java.util.stream.Stream;
...
@@ -7,6 +8,7 @@ import java.util.stream.Stream;
import
javax.servlet.http.HttpSession
;
import
javax.servlet.http.HttpSession
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -14,7 +16,9 @@ import org.springframework.web.bind.annotation.PathVariable;
...
@@ -14,7 +16,9 @@ import org.springframework.web.bind.annotation.PathVariable;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
@@ -22,6 +26,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
...
@@ -22,6 +26,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.service.additional.update.impl.LambdaUpdateChainWrapper
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.NumberUtil
;
import
cn.hutool.core.util.NumberUtil
;
...
@@ -33,8 +38,10 @@ import cn.timer.api.bean.qyzx.QyzxEmpEntAsso;
...
@@ -33,8 +38,10 @@ import cn.timer.api.bean.qyzx.QyzxEmpEntAsso;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
import
cn.timer.api.bean.qyzx.QyzxEntAuth
;
import
cn.timer.api.bean.qyzx.QyzxEntAuth
;
import
cn.timer.api.bean.qyzx.QyzxEntInfoM
;
import
cn.timer.api.bean.qyzx.QyzxEntInfoM
;
import
cn.timer.api.bean.qyzx.QyzxFeebackAccessory
;
import
cn.timer.api.bean.qyzx.QyzxLogBuy
;
import
cn.timer.api.bean.qyzx.QyzxLogBuy
;
import
cn.timer.api.bean.qyzx.QyzxPayServe
;
import
cn.timer.api.bean.qyzx.QyzxPayServe
;
import
cn.timer.api.bean.qyzx.QyzxSuggestionFeeback
;
import
cn.timer.api.bean.zzgl.ZzglAuth
;
import
cn.timer.api.bean.zzgl.ZzglAuth
;
import
cn.timer.api.bean.zzgl.ZzglBmgwM
;
import
cn.timer.api.bean.zzgl.ZzglBmgwM
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.CurrentUser
;
...
@@ -43,14 +50,20 @@ import cn.timer.api.config.enums.CommonEnum;
...
@@ -43,14 +50,20 @@ import cn.timer.api.config.enums.CommonEnum;
import
cn.timer.api.dao.qyzx.QyzxAttaFpzlMapper
;
import
cn.timer.api.dao.qyzx.QyzxAttaFpzlMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpLoginMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpLoginMapper
;
import
cn.timer.api.dao.qyzx.QyzxEntAuthMapper
;
import
cn.timer.api.dao.qyzx.QyzxEntInfoMMapper
;
import
cn.timer.api.dao.qyzx.QyzxEntInfoMMapper
;
import
cn.timer.api.dao.qyzx.QyzxFeebackAccessoryMapper
;
import
cn.timer.api.dao.qyzx.QyzxLogBuyMapper
;
import
cn.timer.api.dao.qyzx.QyzxLogBuyMapper
;
import
cn.timer.api.dao.qyzx.QyzxPayServeMapper
;
import
cn.timer.api.dao.qyzx.QyzxSuggestionFeebackMapper
;
import
cn.timer.api.dao.zzgl.ZzglBmgwMMapper
;
import
cn.timer.api.dao.zzgl.ZzglBmgwMMapper
;
import
cn.timer.api.dto.login.QysDto
;
import
cn.timer.api.dto.login.QysDto
;
import
cn.timer.api.dto.qyzx.AdminListDto
;
import
cn.timer.api.dto.qyzx.AdminListDto
;
import
cn.timer.api.dto.qyzx.AttaFpglQueryDto
;
import
cn.timer.api.dto.qyzx.AttaFpglQueryDto
;
import
cn.timer.api.dto.qyzx.EntauthDto
;
import
cn.timer.api.dto.qyzx.LogBuyDto
;
import
cn.timer.api.dto.qyzx.LogBuyDto
;
import
cn.timer.api.dto.qyzx.QyzxAttaFpzlQueryDto
;
import
cn.timer.api.dto.qyzx.QyzxAttaFpzlQueryDto
;
import
cn.timer.api.utils.OSSUtil
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
cn.timer.api.utils.ResultUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -83,6 +96,21 @@ public class QyzxController {
...
@@ -83,6 +96,21 @@ public class QyzxController {
@Autowired
@Autowired
private
QyzxAttaFpzlMapper
qyzxAttaFpzlMapper
;
private
QyzxAttaFpzlMapper
qyzxAttaFpzlMapper
;
@Autowired
private
QyzxEntAuthMapper
qyzxEntAuthMapper
;
@Autowired
private
ZzglBmgwMMapper
zzglBmgwMMapper
;
@Autowired
private
QyzxPayServeMapper
qyzxPayServeMapper
;
@Autowired
private
QyzxSuggestionFeebackMapper
qyzxSuggestionFeebackMapper
;
@Autowired
private
QyzxFeebackAccessoryMapper
qyzxFeebackAccessoryMapper
;
/**
/**
* 获取企业信息
* 获取企业信息
*
*
...
@@ -99,30 +127,17 @@ public class QyzxController {
...
@@ -99,30 +127,17 @@ public class QyzxController {
}
}
/**
/**
* 返回类名
*
* @return
*/
/*
* private String className() { return this.getClass().getName(); }
*/
/**
* 企业认证-申请
* 企业认证-申请
*
*
* @param qyzxEntAuth
* @param qyzxEntAuth
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/entauth"
)
@PostMapping
(
value
=
"/entauth"
)
@ApiOperation
(
value
=
"企业认证"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"企业认证"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxEntAuth
>
entauth
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntAuth
qyzxEntAuth
)
{
public
Result
<
QyzxEntAuth
>
entauth
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntAuth
qyzxEntAuth
)
{
// 查询表结果
// QyzxEntAuth result = qyzxEntAuth.selectById();
// System.err.println(result);
// if (result == null) {
// 设置审核状态
// 设置审核状态
qyzxEntAuth
.
setAuthType
(
CommonEnum
.
AUTH_TYPE_UNDEREVIEW
.
getType
());
qyzxEntAuth
.
setAuthType
(
CommonEnum
.
AUTH_TYPE_UNDEREVIEW
.
getType
());
qyzxEntAuth
.
setId
(
userBean
.
getOrgCode
());
// 插入数据
// 插入数据
qyzxEntAuth
.
insert
();
qyzxEntAuth
.
insert
();
// }
// }
...
@@ -136,14 +151,13 @@ public class QyzxController {
...
@@ -136,14 +151,13 @@ public class QyzxController {
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/entauthcheck"
)
@PostMapping
(
value
=
"/entauthcheck"
)
@ApiOperation
(
value
=
"企业认证"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"企业认证
-审核-通过/未通过
"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxEntAuth
>
entauthcheck1
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntAuth
qyzxEntAuth
)
{
public
Result
<
QyzxEntAuth
>
entauthcheck1
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxEntAuth
qyzxEntAuth
)
{
Integer
id
=
qyzxEntAuth
.
getId
();
Integer
id
=
qyzxEntAuth
.
getId
();
Integer
authType
=
qyzxEntAuth
.
getAuthType
();
Integer
authType
=
qyzxEntAuth
.
getAuthType
();
if
(
id
==
null
||
authType
==
null
)
{
if
(
id
==
null
||
authType
==
null
)
{
return
ResultUtil
.
error
(
"参数缺少/异常"
);
return
ResultUtil
.
error
(
"参数缺少/异常"
);
}
}
QyzxEntAuth
entAuth
=
QyzxEntAuth
.
builder
().
id
(
id
).
authType
(
authType
).
build
();
QyzxEntAuth
entAuth
=
QyzxEntAuth
.
builder
().
id
(
id
).
authType
(
authType
).
build
();
boolean
b
=
entAuth
.
updateById
();
boolean
b
=
entAuth
.
updateById
();
if
(
b
)
{
if
(
b
)
{
...
@@ -151,7 +165,47 @@ public class QyzxController {
...
@@ -151,7 +165,47 @@ public class QyzxController {
}
else
{
}
else
{
return
ResultUtil
.
error
(
"企业认证-审批失败"
);
return
ResultUtil
.
error
(
"企业认证-审批失败"
);
}
}
}
/**
* 运营管理 企业认证-审核-通过/不通过(weng)
*
* @param qyzxEntAuth
* @return
*/
@PostMapping
(
value
=
"/entauthpass"
)
@ApiOperation
(
value
=
"企业认证-审核-通过"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
String
>
entauthpass
(
@RequestBody
EntauthDto
entauthDto
)
{
// 2未通过,3通过
String
msg
=
"企业认证不通过"
;
Integer
type
=
entauthDto
.
getAuthType
();
if
(
type
!=
2
)
{
type
=
3
;
msg
=
"企业认证成功"
;
}
boolean
b
=
new
LambdaUpdateChainWrapper
<
QyzxEntAuth
>(
qyzxEntAuthMapper
)
.
eq
(
QyzxEntAuth:
:
getId
,
entauthDto
.
getOrgCode
()).
set
(
QyzxEntAuth:
:
getAuthType
,
type
).
update
();
if
(
b
)
{
return
ResultUtil
.
data
(
msg
);
}
return
ResultUtil
.
error
(
"企业认证未通过"
);
}
/**
* 显示企业的超级管理员
*
* @param qyzxEntAuth
* @return
*/
@GetMapping
(
value
=
"/smanagerphone"
)
@ApiOperation
(
value
=
"显示超管头像和电话号码"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxEmpLogin
>
smanagerphone
(
@CurrentUser
UserBean
userBean
)
{
QyzxEmpEntAsso
smanagerid
=
new
LambdaQueryChainWrapper
<
QyzxEmpEntAsso
>(
qyzxEmpEntAssoMapper
)
.
select
(
QyzxEmpEntAsso:
:
getEmpNum
).
eq
(
QyzxEmpEntAsso:
:
getOrgCode
,
userBean
.
getOrgCode
())
.
eq
(
QyzxEmpEntAsso:
:
getStatus
,
0
).
one
();
QyzxEmpLogin
smanagerphone
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
)
.
select
(
QyzxEmpLogin:
:
getPhone
,
QyzxEmpLogin:
:
getHeadUrl
)
.
eq
(
QyzxEmpLogin:
:
getId
,
smanagerid
.
getEmpNum
()).
one
();
return
ResultUtil
.
data
(
smanagerphone
,
"企业超管头像和电话号码"
);
}
}
/**
/**
...
@@ -172,9 +226,6 @@ public class QyzxController {
...
@@ -172,9 +226,6 @@ public class QyzxController {
return
ResultUtil
.
data
(
qyzxEntInfoMs
,
"获取企业信息成功"
);
return
ResultUtil
.
data
(
qyzxEntInfoMs
,
"获取企业信息成功"
);
}
}
@Autowired
ZzglBmgwMMapper
zzglBmgwMMapper
;
/**
/**
* 切换企业
* 切换企业
*
*
...
@@ -186,13 +237,13 @@ public class QyzxController {
...
@@ -186,13 +237,13 @@ public class QyzxController {
public
Result
<
List
<
String
>>
changeent
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
orgCode
)
{
public
Result
<
List
<
String
>>
changeent
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
orgCode
)
{
// 查询该员工加入的企业id列表
// 查询该员工加入的企业id列表
QyzxEmpLogin
emp
=
userBean
.
getQyzxEmpLogin
();
QyzxEmpLogin
emp
=
userBean
.
getQyzxEmpLogin
();
Stream
<
QysDto
>
s
=
emp
.
getQys
().
stream
().
filter
(
o
->
orgCode
.
equals
(
o
.
getId
()));
Stream
<
QysDto
>
s
=
emp
.
getQys
().
stream
().
filter
(
o
->
orgCode
.
equals
(
o
.
getId
()));
// 判断 切换目标企业id 是否包含在 企业id列表 内
// 判断 切换目标企业id 是否包含在 企业id列表 内
if
(
s
!=
null
)
{
if
(
s
!=
null
)
{
List
<
String
>
menus
=
new
ArrayList
<>();
List
<
String
>
menus
=
new
ArrayList
<>();
QysDto
ctrl
=
s
.
findFirst
().
get
();
QysDto
ctrl
=
s
.
findFirst
().
get
();
if
(
CommonEnum
.
U_TYPE_ADMIN
.
getType
().
equals
(
ctrl
.
getUserType
())
if
(
CommonEnum
.
U_TYPE_ADMIN
.
getType
().
equals
(
ctrl
.
getUserType
())
||
CommonEnum
.
U_TYPE_C_ADMIN
.
getType
().
equals
(
ctrl
.
getUserType
()))
{
||
CommonEnum
.
U_TYPE_C_ADMIN
.
getType
().
equals
(
ctrl
.
getUserType
()))
{
}
else
{
}
else
{
// 获取权限
// 获取权限
ArrayList
<
Integer
>
list
=
new
ArrayList
<
Integer
>();
ArrayList
<
Integer
>
list
=
new
ArrayList
<
Integer
>();
...
@@ -205,10 +256,10 @@ public class QyzxController {
...
@@ -205,10 +256,10 @@ public class QyzxController {
wp
.
select
(
ZzglAuth:
:
getMenuId
).
eq
(
ZzglAuth:
:
getOrgCode
,
ctrl
.
getId
())
wp
.
select
(
ZzglAuth:
:
getMenuId
).
eq
(
ZzglAuth:
:
getOrgCode
,
ctrl
.
getId
())
.
and
(
i
->
i
.
in
(
ZzglAuth:
:
getBmgwId
,
list
.
toArray
()));
.
and
(
i
->
i
.
in
(
ZzglAuth:
:
getBmgwId
,
list
.
toArray
()));
List
<
ZzglAuth
>
zas
=
ZzglAuth
.
builder
().
build
().
selectList
(
wp
);
List
<
ZzglAuth
>
zas
=
ZzglAuth
.
builder
().
build
().
selectList
(
wp
);
if
(
zas
.
size
()==
0
)
if
(
zas
.
size
()
==
0
)
return
ResultUtil
.
error
(
null
,
"切换企业失败,在该公司没有权限"
);
return
ResultUtil
.
error
(
null
,
"切换企业失败,在该公司没有权限"
);
zas
.
stream
().
forEach
(
o
->
menus
.
add
(
o
.
getMenuId
()));
zas
.
stream
().
forEach
(
o
->
menus
.
add
(
o
.
getMenuId
()));
}
else
{
}
else
{
return
ResultUtil
.
error
(
null
,
"切换企业失败,在该公司没有权限"
);
return
ResultUtil
.
error
(
null
,
"切换企业失败,在该公司没有权限"
);
}
}
}
}
...
@@ -225,177 +276,240 @@ public class QyzxController {
...
@@ -225,177 +276,240 @@ public class QyzxController {
* 获取开票资料
* 获取开票资料
*/
*/
/*
/*
*
* @Override public Result<QyzxEntInfoM> selectfpzl() { Integer orgCode =
* @Override public Result<QyzxEntInfoM> selectfpzl() { Integer orgCode =
* List<QyzxAttaFpzl> qyzxAttaFpzl =
* List<QyzxAttaFpzl> qyzxAttaFpzl =
* QyzxAttaFpzl.builder().build().selectList(new
* QyzxAttaFpzl.builder().build().selectList(new
* QueryWrapper<QyzxAttaFpzl>().eq("org_code", orgCode)); return new
* QueryWrapper<QyzxAttaFpzl>().eq("org_code", orgCode)); return new
* ResultUtil.data("获取发票资料成功", qyzxAttaFpzl); }
* ResultUtil.data("获取发票资料成功", qyzxAttaFpzl); }
*/
/**
* 添加/修改开票资料
*
*
* @param
* @return
*/
@PostMapping
(
value
=
"/fpzl"
)
@ApiOperation
(
value
=
"添加/修改发票资料"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxAttaFpzl
>
addfpzl
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxAttaFpzl
qyzxAttaFpzl
)
{
qyzxAttaFpzl
.
setOrgCode
(
userBean
.
getOrgCode
());
qyzxAttaFpzl
.
insertOrUpdate
();
return
ResultUtil
.
data
(
qyzxAttaFpzl
,
"添加/修改发票资料成功"
);
}
/**
* 设置默认发票
*
*
* @param
*//**
* @return
* 添加/修改开票资料
*/
*
@GetMapping
(
value
=
"/defaultfp/{id}"
)
* @param
@ApiOperation
(
value
=
"设置默认发票"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
* @return
public
Result
<
Void
>
setdef
(
@CurrentUser
UserBean
userBean
,
@PathVariable
(
"id"
)
Integer
id
)
{
*/
// 将所有地址设为非默认
/*
UpdateWrapper
<
QyzxAttaFpzl
>
updateWrapper
=
new
UpdateWrapper
<
QyzxAttaFpzl
>();
* @PostMapping(value = "/fpzl")
QyzxAttaFpzl
q
=
QyzxAttaFpzl
.
builder
().
orgCode
(
userBean
.
getOrgCode
()).
isDefault
(
2
).
build
();
qyzxAttaFpzlMapper
.
update
(
q
,
updateWrapper
);
// 根据id将发票设为默认
updateWrapper
.
eq
(
"id"
,
id
);
QyzxAttaFpzl
w
=
QyzxAttaFpzl
.
builder
().
orgCode
(
userBean
.
getOrgCode
()).
id
(
id
).
isDefault
(
1
).
build
();
qyzxAttaFpzlMapper
.
update
(
w
,
updateWrapper
);
// 返回成功
return
ResultUtil
.
success
(
"设置成功"
);
}
/**
* 删除开票资料
*
*
* @param
* @ApiOperation(value = "添加/修改发票资料", httpMethod = "POST", notes = "接口发布说明")
* @return
* public Result<QyzxAttaFpzl> addfpzl(@CurrentUser UserBean
*/
* userBean, @RequestBody QyzxAttaFpzl qyzxAttaFpzl) {
@DeleteMapping
(
value
=
"/fpzl/{id}"
)
* qyzxAttaFpzl.setOrgCode(userBean.getOrgCode());
@ApiOperation
(
value
=
"删除发票资料"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
* qyzxAttaFpzl.insertOrUpdate(); return ResultUtil.data(qyzxAttaFpzl,
public
Result
<
Integer
>
deletefpzl
(
@PathVariable
Integer
id
)
{
* "添加/修改发票资料成功"); }
QyzxAttaFpzl
.
builder
().
build
().
deleteById
(
id
);
*
return
ResultUtil
.
data
(
id
,
"删除发票资料成功"
);
*//**
}
* 设置默认发票
*
// 获取发票管理
* @param
* @return
*/
/*
* @GetMapping(value = "/defaultfp/{id}")
*
* @ApiOperation(value = "设置默认发票", httpMethod = "GET", notes = "接口发布说明") public
* Result<Void> setdef(@CurrentUser UserBean userBean, @PathVariable("id")
* Integer id) { // 将所有地址设为非默认 UpdateWrapper<QyzxAttaFpzl> updateWrapper = new
* UpdateWrapper<QyzxAttaFpzl>(); QyzxAttaFpzl q =
* QyzxAttaFpzl.builder().orgCode(userBean.getOrgCode()).isDefault(2).build();
* qyzxAttaFpzlMapper.update(q, updateWrapper);
*
* // 根据id将发票设为默认 updateWrapper.eq("id", id); QyzxAttaFpzl w =
* QyzxAttaFpzl.builder().orgCode(userBean.getOrgCode()).id(id).isDefault(1).
* build(); qyzxAttaFpzlMapper.update(w, updateWrapper);
*
* // 返回成功 return ResultUtil.success("设置成功"); }
*
*//**
* 删除开票资料
*
* @param
* @return
*/
/*
/*
* @DeleteMapping(value = "/fpzl/{id}")
*
* @ApiOperation(value = "删除发票资料", httpMethod = "DELETE", notes = "接口发布说明")
* public Result<Integer> deletefpzl(@PathVariable Integer id) {
* QyzxAttaFpzl.builder().build().deleteById(id); return ResultUtil.data(id,
* "删除发票资料成功"); }
*
* // 获取发票管理
*
* @Override public Result<QyzxEntInfoM> selectfpgl() { Integer orgCode =
* @Override public Result<QyzxEntInfoM> selectfpgl() { Integer orgCode =
* qyzxAttaFpgl = QyzxAttaFpgl.builder().build().selectList(new
* qyzxAttaFpgl = QyzxAttaFpgl.builder().build().selectList(new
* QueryWrapper<QyzxAttaFpgl>().eq("org_code", orgCode)); return new
* QueryWrapper<QyzxAttaFpgl>().eq("org_code", orgCode)); return new
* ResultUtil.data("获取发票管理成功", qyzxAttaFpgl); }
* ResultUtil.data("获取发票管理成功", qyzxAttaFpgl); }
*/
/**
* 添加/修改发票管理
*
*
* @param
* @return
*/
@PostMapping
(
value
=
"/fpgl"
)
@ApiOperation
(
value
=
"添加/修改发票管理"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxAttaFpgl
>
addfpgl
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxAttaFpgl
qyzxAttaFpgl
)
{
qyzxAttaFpgl
.
setOrgCode
(
userBean
.
getOrgCode
());
qyzxAttaFpgl
.
insertOrUpdate
();
return
ResultUtil
.
data
(
qyzxAttaFpgl
,
"添加/修改发票管理成功"
);
}
/**
* 删除开票资料
*
*
* @param
*//**
* @return
* 添加/修改发票管理
*/
*
@DeleteMapping
(
value
=
"/fpgl/{id}"
)
* @param
@ApiOperation
(
value
=
"删除发票管理"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
* @return
public
Result
<
Integer
>
deletefpgl
(
@PathVariable
Integer
id
)
{
*/
QyzxAttaFpgl
.
builder
().
build
().
deleteById
(
id
);
/*
return
ResultUtil
.
data
(
id
,
"删除发票管理成功"
);
* @PostMapping(value = "/fpgl")
}
*
* @ApiOperation(value = "添加/修改发票管理", httpMethod = "POST", notes = "接口发布说明")
* public Result<QyzxAttaFpgl> addfpgl(@CurrentUser UserBean
* userBean, @RequestBody QyzxAttaFpgl qyzxAttaFpgl) {
* qyzxAttaFpgl.setOrgCode(userBean.getOrgCode());
* qyzxAttaFpgl.insertOrUpdate(); return ResultUtil.data(qyzxAttaFpgl,
* "添加/修改发票管理成功"); }
*
*//**
* 删除开票资料
*
* @param
* @return
*/
/*
* @DeleteMapping(value = "/fpgl/{id}")
*
* @ApiOperation(value = "删除发票管理", httpMethod = "DELETE", notes = "接口发布说明")
* public Result<Integer> deletefpgl(@PathVariable Integer id) {
* QyzxAttaFpgl.builder().build().deleteById(id); return ResultUtil.data(id,
* "删除发票管理成功"); }
*
*//**
* 开票资料查询
*
* @param
* @return
*/
/*
* @PostMapping(value = "/fpzlquery")
*
* @ApiOperation(value = "发票资料查询", httpMethod = "POST", notes = "接口发布说明") public
* Result<Object> queryfpzl(@CurrentUser UserBean userBean,
*
* @RequestBody QyzxAttaFpzlQueryDto qyzxAttaFpzlQueryDto) { String
* titleOrAddress = qyzxAttaFpzlQueryDto.getNameOrAddress();
*
* Page<QyzxAttaFpzl> page = new Page<QyzxAttaFpzl>(
* qyzxAttaFpzlQueryDto.getCurrentPage() == null ? 1 :
* qyzxAttaFpzlQueryDto.getCurrentPage(), qyzxAttaFpzlQueryDto.getTotalPage() ==
* null ? 10 : qyzxAttaFpzlQueryDto.getTotalPage());
*
* QueryWrapper<QyzxAttaFpzl> queryWrapper = new QueryWrapper<>();
* queryWrapper.eq("org_code",
* userBean.getOrgCode()).and(!StrUtil.hasBlank(titleOrAddress), wq ->
* wq.likeRight("address", titleOrAddress).or().likeRight("title",
* titleOrAddress)); IPage<QyzxAttaFpzl> qyzxAttaFpzlPage =
* QyzxAttaFpzl.builder().build().selectPage(page, queryWrapper);
* List<QyzxAttaFpzl> qyzxAttaFpzls = qyzxAttaFpzlPage.getRecords();
* qyzxAttaFpzlPage.getCurrent(); qyzxAttaFpzlPage.getPages();
* qyzxAttaFpzlPage.getTotal(); qyzxAttaFpzlPage.getSize(); return
* ResultUtil.data(qyzxAttaFpzlPage, qyzxAttaFpzls, "发票资料查询成功"); }
*
*//**
* 发票管理查询
*
* @param
* @return
*//*
* @PostMapping(value = "/fpglquery")
*
* @ApiOperation(value = "发票管理查询", httpMethod = "POST", notes = "接口发布说明") public
* Result<Object> queryfpgl(@CurrentUser UserBean userBean, @RequestBody
* AttaFpglQueryDto attaFpglQueryDto) { String query =
* attaFpglQueryDto.getQuery(); String startTime =
* attaFpglQueryDto.getStartTime(); String endTime =
* attaFpglQueryDto.getEndTime(); Page<QyzxAttaFpgl> page = new
* Page<QyzxAttaFpgl>( attaFpglQueryDto.getCurrentPage() == null ? 1 :
* attaFpglQueryDto.getCurrentPage(), attaFpglQueryDto.getTotalPage() == null ?
* 10 : attaFpglQueryDto.getTotalPage()); Integer orgCode =
* userBean.getOrgCode(); QueryWrapper<QyzxAttaFpgl> queryWrapper = new
* QueryWrapper<>(); queryWrapper.eq("org_code",
* orgCode).gt(!StrUtil.hasBlank(startTime), "create_time", startTime)
* .lt(!StrUtil.hasBlank(endTime), "create_time", endTime)
* .and(!StrUtil.hasBlank(query), wq -> wq.likeRight("title",
* query).or().likeRight("project", query)); List<QyzxAttaFpgl> qyzxAttaFpgls =
* QyzxAttaFpgl.builder().build().selectList(queryWrapper);
*
* queryWrapper.eq("org_code", orgCode) .between(!StrUtil.hasBlank(startTime) &&
* !StrUtil.hasBlank(endTime), "create_time", !StrUtil.hasBlank(startTime) ?
* startTime : "1000-01-01 00:00:00", !StrUtil.hasBlank(endTime) ? endTime :
* "9999-01-01 00:00:00") .and(!StrUtil.hasBlank(query), wq ->
* wq.likeRight("title", query).or().likeRight("project", query));
*
*
*
* IPage<QyzxAttaFpgl> qyzxAttaFpglPage =
* QyzxAttaFpgl.builder().build().selectPage(page, queryWrapper);
* List<QyzxAttaFpgl> qyzxAttaFpgls = qyzxAttaFpglPage.getRecords();
* qyzxAttaFpglPage.getCurrent(); qyzxAttaFpglPage.getPages();
* qyzxAttaFpglPage.getTotal(); qyzxAttaFpglPage.getSize();
*
*
* return ResultUtil.data(page, qyzxAttaFpgls, "发票资料查询成功"); }
*/
// 下载系统使用手册 直接提供(OSS公共读权限文件)url地址到前端按钮
/**
/**
* 开票资料查询
* 意见反馈
*
* @param
* @return
*/
*/
@PostMapping
(
value
=
"/fpzlquery"
)
@PostMapping
(
value
=
"/feedback"
)
@ApiOperation
(
value
=
"发票资料查询"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"意见反馈)"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
queryfpzl
(
@CurrentUser
UserBean
userBean
,
public
Result
<
QyzxLogBuy
>
feedback
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
required
=
false
)
String
moudle
,
@RequestBody
QyzxAttaFpzlQueryDto
qyzxAttaFpzlQueryDto
)
{
@RequestParam
(
required
=
false
)
String
opinionText
,
@Param
(
"files"
)
List
<
MultipartFile
>
files
)
{
String
titleOrAddress
=
qyzxAttaFpzlQueryDto
.
getNameOrAddress
();
String
url
=
null
;
List
<
String
>
list
=
new
ArrayList
<
String
>();
Page
<
QyzxAttaFpzl
>
page
=
new
Page
<
QyzxAttaFpzl
>(
for
(
MultipartFile
file
:
files
)
{
qyzxAttaFpzlQueryDto
.
getCurrentPage
()
==
null
?
1
:
qyzxAttaFpzlQueryDto
.
getCurrentPage
(),
String
path
=
"8timer2.0/"
+
userBean
.
getOrgCode
()
+
"/"
+
moudle
+
"/"
+
file
.
getOriginalFilename
();
qyzxAttaFpzlQueryDto
.
getTotalPage
()
==
null
?
10
:
qyzxAttaFpzlQueryDto
.
getTotalPage
());
if
(
file
==
null
||
file
.
getSize
()
<=
0
)
{
return
ResultUtil
.
error
(
"上传的文件为空,请重新选择!"
);
QueryWrapper
<
QyzxAttaFpzl
>
queryWrapper
=
new
QueryWrapper
<>();
}
else
{
queryWrapper
.
eq
(
"org_code"
,
userBean
.
getOrgCode
()).
and
(!
StrUtil
.
hasBlank
(
titleOrAddress
),
try
{
wq
->
wq
.
likeRight
(
"address"
,
titleOrAddress
).
or
().
likeRight
(
"title"
,
titleOrAddress
));
url
=
OSSUtil
.
uploadFile
(
path
,
file
.
getInputStream
());
IPage
<
QyzxAttaFpzl
>
qyzxAttaFpzlPage
=
QyzxAttaFpzl
.
builder
().
build
().
selectPage
(
page
,
queryWrapper
);
list
.
add
(
url
);
List
<
QyzxAttaFpzl
>
qyzxAttaFpzls
=
qyzxAttaFpzlPage
.
getRecords
();
}
catch
(
IOException
e
)
{
qyzxAttaFpzlPage
.
getCurrent
();
e
.
printStackTrace
();
qyzxAttaFpzlPage
.
getPages
();
}
qyzxAttaFpzlPage
.
getTotal
();
}
qyzxAttaFpzlPage
.
getSize
();
}
return
ResultUtil
.
data
(
qyzxAttaFpzlPage
,
qyzxAttaFpzls
,
"发票资料查询成功"
);
QyzxSuggestionFeeback
feeback
=
new
QyzxSuggestionFeeback
();
feeback
.
setEmpNum
(
userBean
.
getEmpNum
());
feeback
.
setOpinionText
(
opinionText
);
feeback
.
setCreateTime
(
new
Date
());
feeback
.
setOrgCode
(
userBean
.
getOrgCode
());
boolean
a
=
feeback
.
insert
();
if
(
a
&&
list
.
size
()>
0
)
{
for
(
String
opinionUrl
:
list
)
{
QyzxFeebackAccessory
.
builder
().
feebackId
(
feeback
.
getId
()).
opinionUrl
(
opinionUrl
).
build
().
insert
();
}
}
return
ResultUtil
.
success
(
"意见反馈成功!"
);
}
}
/**
/**
* 发票管理查询
* 查看服务列表
*
* @param
* @return
*/
*/
@PostMapping
(
value
=
"/fpglquery"
)
@GetMapping
(
value
=
"/servelist"
)
@ApiOperation
(
value
=
"发票管理查询"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"查看服务列表"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
queryfpgl
(
@CurrentUser
UserBean
userBean
,
@RequestBody
AttaFpglQueryDto
attaFpglQueryDto
)
{
public
Result
<
List
<
QyzxPayServe
>>
servelist
(){
String
query
=
attaFpglQueryDto
.
getQuery
();
List
<
QyzxPayServe
>
list
=
new
LambdaQueryChainWrapper
<
QyzxPayServe
>(
qyzxPayServeMapper
)
String
startTime
=
attaFpglQueryDto
.
getStartTime
();
.
select
(
QyzxPayServe:
:
getName
,
QyzxPayServe:
:
getNum
,
QyzxPayServe:
:
getSpecialPrice
,
QyzxPayServe:
:
getOriginalPrice
,
String
endTime
=
attaFpglQueryDto
.
getEndTime
();
QyzxPayServe:
:
getSort
,
QyzxPayServe:
:
getUnit
,
QyzxPayServe:
:
getRemark
).
orderByAsc
(
QyzxPayServe:
:
getId
).
list
();
Page
<
QyzxAttaFpgl
>
page
=
new
Page
<
QyzxAttaFpgl
>(
return
ResultUtil
.
data
(
list
,
"查看服务列表成功"
);
attaFpglQueryDto
.
getCurrentPage
()
==
null
?
1
:
attaFpglQueryDto
.
getCurrentPage
(),
attaFpglQueryDto
.
getTotalPage
()
==
null
?
10
:
attaFpglQueryDto
.
getTotalPage
());
Integer
orgCode
=
userBean
.
getOrgCode
();
QueryWrapper
<
QyzxAttaFpgl
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"org_code"
,
orgCode
).
gt
(!
StrUtil
.
hasBlank
(
startTime
),
"create_time"
,
startTime
)
.
lt
(!
StrUtil
.
hasBlank
(
endTime
),
"create_time"
,
endTime
)
.
and
(!
StrUtil
.
hasBlank
(
query
),
wq
->
wq
.
likeRight
(
"title"
,
query
).
or
().
likeRight
(
"project"
,
query
));
List
<
QyzxAttaFpgl
>
qyzxAttaFpgls
=
QyzxAttaFpgl
.
builder
().
build
().
selectList
(
queryWrapper
);
/*
* queryWrapper.eq("org_code", orgCode) .between(!StrUtil.hasBlank(startTime) &&
* !StrUtil.hasBlank(endTime), "create_time", !StrUtil.hasBlank(startTime) ?
* startTime : "1000-01-01 00:00:00", !StrUtil.hasBlank(endTime) ? endTime :
* "9999-01-01 00:00:00") .and(!StrUtil.hasBlank(query), wq ->
* wq.likeRight("title", query).or().likeRight("project", query));
*/
/*
* IPage<QyzxAttaFpgl> qyzxAttaFpglPage =
* QyzxAttaFpgl.builder().build().selectPage(page, queryWrapper);
* List<QyzxAttaFpgl> qyzxAttaFpgls = qyzxAttaFpglPage.getRecords();
* qyzxAttaFpglPage.getCurrent(); qyzxAttaFpglPage.getPages();
* qyzxAttaFpglPage.getTotal(); qyzxAttaFpglPage.getSize();
*/
return
ResultUtil
.
data
(
page
,
qyzxAttaFpgls
,
"发票资料查询成功"
);
}
}
// 下载系统使用手册 直接提供(OSS公共读权限文件)url地址到前端按钮
/**
/**
* 购买服务(添加服务计算,添加购买记录)
* 购买服务(添加服务计算,添加购买记录)
*
*
* @param
* @param
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/
gmfw
"
)
@PostMapping
(
value
=
"/
buyserve
"
)
@ApiOperation
(
value
=
"
购买服务(添加服务计算,添加购买记录)"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"购买服务(添加服务计算,添加购买记录)"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
QyzxLogBuy
>
addgmfw
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxLogBuy
qyzxLogBuy
)
{
public
Result
<
QyzxLogBuy
>
buyserve
(
@CurrentUser
UserBean
userBean
,
@RequestBody
QyzxLogBuy
qyzxLogBuy
)
{
Integer
payServeId
=
qyzxLogBuy
.
getPayServeId
();
// 套餐的付费服务的id
Integer
payServeId
=
qyzxLogBuy
.
getPayServeId
();
// 套餐的付费服务的id
Integer
num
=
qyzxLogBuy
.
getNum
();
// 套餐的购买次数
Integer
num
=
qyzxLogBuy
.
getNum
();
// 套餐的购买次数
QyzxPayServe
qyzxPayServe
=
QyzxPayServe
.
builder
().
id
(
payServeId
).
build
().
selectById
();
QyzxPayServe
qyzxPayServe
=
QyzxPayServe
.
builder
().
id
(
payServeId
).
build
().
selectById
();
...
@@ -502,17 +616,17 @@ public class QyzxController {
...
@@ -502,17 +616,17 @@ public class QyzxController {
}
}
/**
/**
* 账号管理
获取账号
* 账号管理 获取账号
*
*
* @param
* @param
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/adminlist/{page}/{limit}"
)
@GetMapping
(
value
=
"/adminlist/{page}/{limit}"
)
@ApiOperation
(
value
=
"获取账号"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"获取账号"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
adminlist
(
@CurrentUser
UserBean
userBean
,
@PathVariable
(
"page"
)
Integer
page
,
@PathVariable
(
"limit"
)
Integer
limit
)
{
public
Result
<
Object
>
adminlist
(
@CurrentUser
UserBean
userBean
,
@PathVariable
(
"page"
)
Integer
page
,
IPage
<
AdminListDto
>
page1
=
new
Page
<
AdminListDto
>(
page
,
limit
);
@PathVariable
(
"limit"
)
Integer
limit
)
{
return
ResultUtil
.
data
(
page1
,
qyzxEmpEntAssoMapper
.
adminlist
(
page1
,
userBean
.
getOrgCode
()),
"获取账号"
);
IPage
<
AdminListDto
>
page1
=
new
Page
<
AdminListDto
>(
page
,
limit
);
return
ResultUtil
.
data
(
page1
,
qyzxEmpEntAssoMapper
.
adminlist
(
page1
,
userBean
.
getOrgCode
()),
"获取账号"
);
}
}
}
}
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
0ff6c96f
...
@@ -240,7 +240,7 @@ public class YgglController {
...
@@ -240,7 +240,7 @@ public class YgglController {
// 添加三张表
// 添加三张表
// 员工权限表(未定)
// 员工权限表(未定)
// 员工企业关联表和员工档案,员工成长表(未定)
// 员工企业关联表和员工档案,员工成长表(未定)
QyzxEmpEntAsso
.
builder
().
empNum
(
qyzxEmpLogin
.
getId
()).
orgCode
(
orgCode
).
userType
(
2
).
status
(
1
).
build
().
insert
();
// usertype2普通员工 status1正常
QyzxEmpEntAsso
.
builder
().
empNum
(
qyzxEmpLogin
.
getId
()).
orgCode
(
orgCode
).
userType
(
CommonEnum
.
U_TYPE_EMP
.
getType
()
).
status
(
1
).
build
().
insert
();
// usertype2普通员工 status1正常
YgglMainEmp
ygglMainEmp
=
YgglMainEmp
.
builder
().
name
(
name
).
phone
(
phone
).
zjType
(
zjType
).
zjNum
(
zjNum
)
YgglMainEmp
ygglMainEmp
=
YgglMainEmp
.
builder
().
name
(
name
).
phone
(
phone
).
zjType
(
zjType
).
zjNum
(
zjNum
)
.
jobType
(
jobType
).
rzTime
(
rzTime
).
syq
(
syq
).
sex
(
sex
).
empNum
(
qyzxEmpLogin
.
getId
()).
orgCode
(
orgCode
)
.
jobType
(
jobType
).
rzTime
(
rzTime
).
syq
(
syq
).
sex
(
sex
).
empNum
(
qyzxEmpLogin
.
getId
()).
orgCode
(
orgCode
)
.
build
();
.
build
();
...
...
src/main/java/cn/timer/api/dao/qyzx/QyzxEmpEntAssoMapper.java
View file @
0ff6c96f
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.dto.qyzx.AdminListDto
;
import
cn.timer.api.dto.qyzx.AdminListDto
;
/**
/**
...
@@ -24,5 +25,4 @@ public interface QyzxEmpEntAssoMapper extends BaseMapper<QyzxEmpEntAsso> {
...
@@ -24,5 +25,4 @@ public interface QyzxEmpEntAssoMapper extends BaseMapper<QyzxEmpEntAsso> {
*/
*/
List
<
AdminListDto
>
adminlist
(
IPage
<
AdminListDto
>
page
,
Integer
org_code
);
List
<
AdminListDto
>
adminlist
(
IPage
<
AdminListDto
>
page
,
Integer
org_code
);
}
}
src/main/java/cn/timer/api/dao/qyzx/QyzxFeebackAccessoryMapper.java
0 → 100644
View file @
0ff6c96f
package
cn
.
timer
.
api
.
dao
.
qyzx
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 员工企业关联表
* @author Tang 2019-11-11
*/
@Repository
public
interface
QyzxFeebackAccessoryMapper
extends
BaseMapper
<
QyzxFeebackAccessoryMapper
>
{
}
src/main/java/cn/timer/api/dao/qyzx/QyzxSuggestionFeebackMapper.java
0 → 100644
View file @
0ff6c96f
package
cn
.
timer
.
api
.
dao
.
qyzx
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 员工企业关联表
* @author Tang 2019-11-11
*/
@Repository
public
interface
QyzxSuggestionFeebackMapper
extends
BaseMapper
<
QyzxSuggestionFeebackMapper
>
{
}
src/main/java/cn/timer/api/dto/qyzx/EntauthDto.java
0 → 100644
View file @
0ff6c96f
/**
* @date 2019年11月14日
* @author 翁东州
* @方法中文名称:
*/
package
cn
.
timer
.
api
.
dto
.
qyzx
;
import
java.io.Serializable
;
import
cn.timer.api.config.swagger.IgnoreSwaggerParameter
;
import
cn.timer.api.utils.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @date 2019年11月14日
* @author 翁东州
* @方法中文名称:
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
EntauthDto
extends
Page
implements
Serializable
{
private
static
final
long
serialVersionUID
=
910573493694136770L
;
@ApiModelProperty
(
value
=
"组织机构代码"
,
example
=
"117"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"认证状态"
,
example
=
"2未通过或3通过"
)
private
Integer
authType
;
}
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