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
770e23e4
Commit
770e23e4
authored
Mar 26, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业讯息bug优化,项目配置文件jpa自动生成表
parent
5ce3683a
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
528 additions
and
82 deletions
+528
-82
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
+0
-1
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
+6
-2
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+515
-64
src/main/java/cn/timer/api/dao/yggl/YgCityDtoMapper.java
+0
-1
src/main/java/cn/timer/api/dto/yggl/YgAreaDto.java
+0
-2
src/main/java/cn/timer/api/dto/yggl/YgCityDto.java
+0
-2
src/main/java/cn/timer/api/dto/yggl/YgProDto.java
+0
-2
src/main/java/cn/timer/api/dto/yggl/YgmzDto.java
+0
-1
src/main/resources/application-pro.yml
+7
-7
No files found.
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
View file @
770e23e4
...
...
@@ -13,7 +13,6 @@ import com.baomidou.mybatisplus.annotation.TableField;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
cn.timer.api.config.swagger.IgnoreSwaggerParameter
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
...
...
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
View file @
770e23e4
...
...
@@ -293,11 +293,15 @@ public class CmsController {
qyxxQueryDto
.
getTotalPage
()
==
null
?
10
:
qyxxQueryDto
.
getTotalPage
());
QueryWrapper
<
CmsContent
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"status"
,
1
).
eq
(
t
!=
null
&&
t
>
-
1
,
"modularid"
,
t
).
eq
(
r
!=
null
&&
r
>
-
1
,
"releasestate"
,
r
)
queryWrapper
.
eq
(
"organization_id"
,
userBean
.
getOrgCode
())
.
eq
(
"status"
,
1
).
eq
(
t
!=
null
&&
t
>
-
1
,
"modularid"
,
t
)
.
eq
(
r
!=
null
&&
r
>
-
1
,
"releasestate"
,
r
)
.
between
(!
StrUtil
.
hasBlank
(
s
)
&&
!
StrUtil
.
hasBlank
(
e
),
"releasetime"
,
!
StrUtil
.
hasBlank
(
s
)
?
s
:
"1000-01-01 00:00:00"
,
!
StrUtil
.
hasBlank
(
e
)
?
e
:
"9999-01-01 00:00:00"
)
.
and
(!
StrUtil
.
hasBlank
(
q
),
wq
->
wq
.
like
(
"userid"
,
q
).
or
().
like
(
"author"
,
q
).
or
().
like
(
"title"
,
q
))
.
and
(!
StrUtil
.
hasBlank
(
q
),
wq
->
wq
.
like
(
"userid"
,
q
)
.
or
().
like
(
"author"
,
q
).
or
().
like
(
"title"
,
q
))
.
orderByDesc
(
"addeddate"
);
IPage
<
CmsContent
>
cmsContentPage
=
CmsContent
.
builder
().
build
().
selectPage
(
page
,
queryWrapper
);
List
<
CmsContent
>
cmsContents
=
cmsContentPage
.
getRecords
();
...
...
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
770e23e4
...
...
@@ -5,11 +5,16 @@
*/
package
cn
.
timer
.
api
.
controller
.
yggl
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
javax.transaction.Transactional
;
...
...
@@ -52,14 +57,25 @@ import cn.timer.api.config.annotation.CurrentUser;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.config.enums.CommonEnum
;
import
cn.timer.api.dao.qyzx.QyzxEmpLoginMapper
;
import
cn.timer.api.dao.yggl.YgAreaDtoMapper
;
import
cn.timer.api.dao.yggl.YgCityDtoMapper
;
import
cn.timer.api.dao.yggl.YgMzDtoMapper
;
import
cn.timer.api.dao.yggl.YgProDtoMapper
;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dao.yggl.YgglMainLzbMapper
;
import
cn.timer.api.dao.zzgl.ZzglBmgwMMapper
;
import
cn.timer.api.dto.yggl.AddygdaDto
;
import
cn.timer.api.dto.yggl.LzbQueryDto
;
import
cn.timer.api.dto.yggl.LzygQueryDto
;
import
cn.timer.api.dto.yggl.YgAreaDto
;
import
cn.timer.api.dto.yggl.YgCityDto
;
import
cn.timer.api.dto.yggl.YgDrjqbDto
;
import
cn.timer.api.dto.yggl.YgDrsDto
;
import
cn.timer.api.dto.yggl.YgProDto
;
import
cn.timer.api.dto.yggl.YgQueryDto
;
import
cn.timer.api.dto.yggl.YgglCartogramDto
;
import
cn.timer.api.dto.yggl.YgjgDto
;
import
cn.timer.api.dto.yggl.YgmzDto
;
import
cn.timer.api.dto.yggl.YgzzDto
;
import
cn.timer.api.utils.Md5
;
import
cn.timer.api.utils.Result
;
...
...
@@ -91,6 +107,17 @@ public class YgglController {
@Autowired
private
ZzglBmgwMMapper
zzglBmgwMMapper
;
//weng(籍贯)
@Autowired
private
YgAreaDtoMapper
ygAreaDtoMapper
;
@Autowired
private
YgCityDtoMapper
ygCityDtoMapper
;
@Autowired
private
YgProDtoMapper
ygProDtoMapper
;
//weng
@Autowired
private
YgMzDtoMapper
ygMzDtoMapper
;
/**
* 获取员工档案
*
...
...
@@ -110,22 +137,6 @@ public class YgglController {
}
/**
* 展示所有部门岗位
*
* @param
* @return
*/
@GetMapping
(
value
=
"/bmgw"
)
@ApiOperation
(
value
=
"获取所有部门岗位id和名称"
,
httpMethod
=
"GET"
,
notes
=
"获取所有部门岗位id和名称"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
List
<
ZzglBmgwM
>>
allbmgw
(
@CurrentUser
UserBean
userBean
)
{
Integer
orgCode
=
userBean
.
getOrgCode
();
List
<
ZzglBmgwM
>
bmgws
=
ZzglBmgwM
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZzglBmgwM
>().
eq
(
"org_code"
,
orgCode
));
return
ResultUtil
.
data
(
bmgws
,
"获取员工档案成功"
);
}
/**
* 根据岗位id获取员工档案部门岗位名称
*
* @param
...
...
@@ -134,20 +145,23 @@ public class YgglController {
@GetMapping
(
value
=
"/ygdabm"
)
@ApiOperation
(
value
=
"获取员工档案部门岗位名称"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
String
>
selectbmgw
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
gwid
)
{
public
Result
<
String
>
selectbmgw
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
gwid
)
{
if
(
gwid
==
null
||
gwid
==
0
)
{
return
ResultUtil
.
data
(
"无岗位"
,
"获取员工档案部门岗位名称成功"
);
}
Integer
orgCode
=
userBean
.
getOrgCode
();
QueryWrapper
<
ZzglBmgwM
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"org_code"
,
orgCode
).
eq
(
"id"
,
gwid
);
String
gw
=
ZzglBmgwM
.
builder
().
build
().
selectOne
(
queryWrapper
).
getName
();
Integer
bmid
=
ZzglBmgwM
.
builder
().
build
().
selectOne
(
queryWrapper
).
getUpId
();
// QueryWrapper<ZzglBmgwM> queryWrapper1 = new QueryWrapper<>();
// queryWrapper1.eq("org_code", orgCode).eq("up_dept_id", gwid);
String
bm
=
ZzglBmgwM
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
ZzglBmgwM
>().
eq
(
"org_code"
,
orgCode
).
eq
(
"id"
,
bmid
)).
getName
();
String
bmgw
=
bm
+
"/"
+
gw
;
return
ResultUtil
.
data
(
bmgw
,
"获取员工档案成功"
);
//QueryWrapper<ZzglBmgwM> queryWrapper1 = new QueryWrapper<>();
//queryWrapper1.eq("org_code", orgCode).eq("up_dept_id", gwid);
String
bm
=
ZzglBmgwM
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
ZzglBmgwM
>().
eq
(
"org_code"
,
orgCode
).
eq
(
"id"
,
bmid
)).
getName
();
String
bmgw
=
bm
+
"/"
+
gw
;
return
ResultUtil
.
data
(
bmgw
,
"获取员工档案部门岗位名称成功"
);
}
/**
* 获取员工教育经历表
*
...
...
@@ -338,25 +352,7 @@ public class YgglController {
QueryWrapper
<
YgglMainEmp
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"org_code"
,
orgCode
).
eq
(
"emp_num"
,
empNum
);
YgglMainEmp
ygglMainEmp
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
queryWrapper
);
if
(
ygglMainEmp
!=
null
)
{
Integer
bmgwId
=
ygglMainEmp
.
getBmgwId
();
if
(
bmgwId
!=
null
)
{
ZzglBmgwM
zzglBmgwM
=
ZzglBmgwM
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
ZzglBmgwM
>().
select
(
"name"
,
"up_id"
).
eq
(
"id"
,
bmgwId
));
if
(
zzglBmgwM
!=
null
)
{
ygglMainEmp
.
setGwName
(
zzglBmgwM
.
getName
());
Integer
upId
=
zzglBmgwM
.
getUpId
();
if
(
upId
!=
null
)
{
ZzglBmgwM
zzglBmM
=
ZzglBmgwM
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
ZzglBmgwM
>().
select
(
"name"
).
eq
(
"up_id"
,
upId
));
if
(
zzglBmM
!=
null
)
{
ygglMainEmp
.
setBmName
(
zzglBmM
.
getName
());
}
}
}
}
}
return
ResultUtil
.
data
(
ygglMainEmp
,
"获取员工档案成功"
);
}
...
...
@@ -478,7 +474,7 @@ public class YgglController {
public
Result
<
List
<
YgglAttaCzjlb
>>
selectczjlb
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
empNum
)
{
List
<
YgglAttaCzjlb
>
ygglAttaCzjlbs
=
YgglAttaCzjlb
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
YgglAttaCzjlb
>().
eq
(
"org_code"
,
userBean
.
getOrgCode
()).
eq
(
"emp_num"
,
empNum
));
return
ResultUtil
.
data
(
ygglAttaCzjlbs
,
"获取员工
成长记录
表成功"
);
return
ResultUtil
.
data
(
ygglAttaCzjlbs
,
"获取员工
合同信息
表成功"
);
}
/**
...
...
@@ -839,8 +835,8 @@ public class YgglController {
@ApiOperation
(
value
=
"添加/修改员工材料附件表"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
41
)
public
Result
<
YgglAttaClfjb
>
addclfjb
(
@CurrentUser
UserBean
userBean
,
@RequestBody
YgglAttaClfjb
ygglAttaClfjb
)
{
ygglAttaClfjb
.
setEmpNum
(
ygglAttaClfjb
.
getEmpNum
());
ygglAttaClfjb
.
setOrgCode
(
userBean
.
getOrgCode
());
ygglAttaClfjb
.
setEmpNum
(
ygglAttaClfjb
.
getEmpNum
());
ygglAttaClfjb
.
insertOrUpdate
();
return
ResultUtil
.
data
(
ygglAttaClfjb
,
"添加/修改员工材料附件表成功"
);
}
...
...
@@ -1054,25 +1050,484 @@ public class YgglController {
return
ResultUtil
.
data
(
page
,
lzb
,
"离职员工搜索成功"
);
}
//威力加强版
@PostMapping
(
value
=
"/ygdas"
)
@ApiOperation
(
value
=
"导入威力加强版"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
70
)
public
Result
<
List
<
YgDrjqbDto
>>
ygdr
(
@CurrentUser
UserBean
userBean
,
@RequestBody
YgDrsDto
drList
)
{
drList
.
setOrgCode
(
userBean
.
getOrgCode
());
YgDrsDto
tofList
=
errorFilter
(
drList
);
//滤嘴,过滤信息
if
(
tofList
.
getDrList
().
size
()==
0
)
{
return
ResultUtil
.
data
(
tofList
.
getErrorList
(),
"导入发生错误人员名单"
);
}
YgDrsDto
tof
=
optFilter
(
tofList
);
//彻底规范好数据
List
<
YgDrjqbDto
>
trueList
=
tof
.
getDrList
();
//拿出正确的信息
List
<
YgDrjqbDto
>
errorList
=
tof
.
getErrorList
();
//拿出错误的信息
if
(
trueList
.
size
()==
0
)
{
return
ResultUtil
.
data
(
errorList
,
"导入发生错误人员名单"
);
}
for
(
YgDrjqbDto
e
:
trueList
)
{
QyzxEmpLogin
login
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
).
eq
(
QyzxEmpLogin:
:
getPhone
,
e
.
getPhone
()).
one
();
//证件类型为0
Integer
jobType
=
Integer
.
valueOf
(
e
.
getJobType
());
//工作类型
Integer
syq
=
Integer
.
valueOf
(
e
.
getSyq
());
//试用期
Integer
sex
=
Integer
.
valueOf
(
e
.
getSex
());
//性别,还差一个岗位
Integer
gw
=
e
.
getHavebmid
();
String
jobNum
=
e
.
getYgnbgh
();
//入职日期
Date
rzdate
=
new
Date
();
SimpleDateFormat
straight
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
//正杠
SimpleDateFormat
italics
=
new
SimpleDateFormat
(
"yyyy/MM/dd"
);
//斜杠
SimpleDateFormat
drop
=
new
SimpleDateFormat
(
"yyyy.MM.dd"
);
//点
SimpleDateFormat
didnot
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
//没有
if
(
e
.
getRzTime
().
indexOf
(
"-"
)!=-
1
)
{
try
{
rzdate
=
straight
.
parse
(
e
.
getRzTime
());
}
catch
(
ParseException
PException
)
{
PException
.
printStackTrace
();
e
.
setError
(
"请填写正确的时间格式"
);
errorList
.
add
(
e
);
continue
;
}
}
//判断是否已有员工登录表
if
(
login
==
null
)
{
QyzxEmpLogin
qyzxEmpLogin
=
QyzxEmpLogin
.
builder
().
phone
(
e
.
getPhone
()).
pw
(
Md5
.
md5
(
"123456"
))
.
sts
(
CommonEnum
.
U_STS_ON
.
getType
()).
orgId
(
userBean
.
getOrgCode
()).
username
(
e
.
getName
()).
build
();
if
(!
qyzxEmpLogin
.
insert
())
{
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
e
.
setError
(
"员工无法添加!"
);
errorList
.
add
(
e
);
continue
;
}
// 添加三张表
// 员工权限表(未定)
// 员工企业关联表和员工档案,员工成长表(未定)
QyzxEmpEntAsso
.
builder
().
empNum
(
qyzxEmpLogin
.
getId
()).
orgCode
(
userBean
.
getOrgCode
())
.
userType
(
2
).
status
(
1
).
build
().
insert
();
// userType2普通员工
YgglMainEmp
emp
=
YgglMainEmp
.
builder
()
.
name
(
e
.
getName
()).
phone
(
e
.
getPhone
()).
zjType
(
0
)
.
zjNum
(
e
.
getZj
()).
jobType
(
jobType
).
rzTime
(
rzdate
)
.
updateTime
(
new
Date
()).
updateMan
(
userBean
.
getEmpNum
()).
syq
(
syq
)
.
sex
(
sex
).
jobNum
(
jobNum
).
bmgwId
(
gw
)
.
empNum
(
qyzxEmpLogin
.
getId
()).
orgCode
(
userBean
.
getOrgCode
()).
build
();
emp
.
insert
();
//return ResultUtil.data(ygglMainEmp, "新添加员工档案成功!");
}
else
{
// 添加两张表
YgglMainEmp
ishad
=
YgglMainEmp
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>()
.
eq
(
"phone"
,
e
.
getPhone
()).
eq
(
"org_code"
,
userBean
.
getOrgCode
()));
if
(
ishad
==
null
)
{
// 员工权限表(未定)
QyzxEmpEntAsso
.
builder
().
empNum
(
login
.
getId
()).
orgCode
(
userBean
.
getOrgCode
()).
userType
(
2
).
build
().
insert
();
// 2普通员工
YgglMainEmp
emp
=
YgglMainEmp
.
builder
().
name
(
e
.
getName
()).
phone
(
e
.
getPhone
())
.
zjType
(
0
).
zjNum
(
e
.
getZj
())
.
jobType
(
jobType
).
rzTime
(
rzdate
)
.
updateTime
(
new
Date
()).
updateMan
(
userBean
.
getEmpNum
())
.
syq
(
syq
).
sex
(
sex
)
.
jobNum
(
jobNum
).
empNum
(
login
.
getId
()).
orgCode
(
userBean
.
getOrgCode
()).
build
();
emp
.
insert
();
//return ResultUtil.data(emp, "添加员工档案成功!");
}
else
{
e
.
setError
(
"该手机号码已被使用"
);
errorList
.
add
(
e
);
continue
;
}
}
}
if
(
errorList
.
size
()==
0
)
{
return
ResultUtil
.
success
(
"员工全部导入成功!"
);
}
return
ResultUtil
.
data
(
errorList
,
"导入发生错误人员名单"
);
}
//错误选项过滤器
public
YgDrsDto
errorFilter
(
YgDrsDto
ygDrsDto
)
{
List
<
YgDrjqbDto
>
drList
=
ygDrsDto
.
getDrList
();
List
<
YgDrjqbDto
>
newList
=
new
ArrayList
<
YgDrjqbDto
>(
drList
);
List
<
YgDrjqbDto
>
errorList
=
ygDrsDto
.
getErrorList
();
Integer
orgCode
=
ygDrsDto
.
getOrgCode
();
Iterator
<
YgDrjqbDto
>
itDr
=
drList
.
iterator
();
YgDrjqbDto
a
=
drList
.
get
(
0
);
//一个员工导入
Integer
size
=
drList
.
size
();
for
(
Integer
i
=
0
;
i
<
size
;)
{
//
YgDrjqbDto
d
=
newList
.
get
(
i
);
//计数器
if
(
itDr
.
hasNext
())
{
a
=
itDr
.
next
();
System
.
out
.
println
(
"a为:"
+
a
+
"此时i为"
+
i
);
}
//请填写必填项
String
name
=
newList
.
get
(
i
).
getName
();
String
phone
=
newList
.
get
(
i
).
getPhone
();
String
sex
=
newList
.
get
(
i
).
getSex
();
String
zj
=
newList
.
get
(
i
).
getZj
();
if
(
StrUtil
.
hasBlank
(
name
)
||
StrUtil
.
hasBlank
(
phone
)
||
StrUtil
.
hasBlank
(
sex
)
||
StrUtil
.
hasBlank
(
zj
))
{
d
.
setError
(
"请填写必填项"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
//手机号码格式不对
String
regex
=
"^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$"
;
if
(
phone
.
length
()!=
11
)
{
d
.
setError
(
"手机号应为11位数"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
Pattern
p
=
Pattern
.
compile
(
regex
);
Matcher
m
=
p
.
matcher
(
phone
);
boolean
isMatch
=
m
.
matches
();
if
(!
isMatch
){
d
.
setError
(
"手机号格式不对"
);
System
.
out
.
println
(
"错误的手机号"
+
d
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
//手机号码已被使用
QyzxEmpLogin
login
=
new
LambdaQueryChainWrapper
<
QyzxEmpLogin
>(
qyzxEmpLoginMapper
).
eq
(
QyzxEmpLogin:
:
getPhone
,
phone
).
eq
(
QyzxEmpLogin:
:
getOrgId
,
orgCode
).
one
();
if
(
login
!=
null
)
{
d
.
setError
(
"手机号码已被使用"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
//证件号码信息有误
if
(
zj
==
null
||
""
.
equals
(
zj
))
{
d
.
setError
(
"证件号码信息有误"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
String
regularExpression
=
"(^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|"
+
"(^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$)"
;
boolean
matches
=
zj
.
matches
(
regularExpression
);
if
(
zj
.
length
()
==
18
)
{
try
{
char
[]
charArray
=
zj
.
toCharArray
();
//前十七位加权因子
int
[]
idCardWi
=
{
7
,
9
,
10
,
5
,
8
,
4
,
2
,
1
,
6
,
3
,
7
,
9
,
10
,
5
,
8
,
4
,
2
};
//这是除以11后,可能产生的11位余数对应的验证码
String
[]
idCardY
=
{
"1"
,
"0"
,
"X"
,
"9"
,
"8"
,
"7"
,
"6"
,
"5"
,
"4"
,
"3"
,
"2"
};
int
sum
=
0
;
for
(
Integer
j
=
0
;
j
<
idCardWi
.
length
;
j
++)
{
int
current
=
Integer
.
parseInt
(
String
.
valueOf
(
charArray
[
j
]));
int
count
=
current
*
idCardWi
[
j
];
sum
+=
count
;
}
char
idCardLast
=
charArray
[
17
];
int
idCardMod
=
sum
%
11
;
if
(
idCardY
[
idCardMod
].
toUpperCase
().
equals
(
String
.
valueOf
(
idCardLast
).
toUpperCase
()))
{
//System.out.println("成功");
}
else
{
//System.out.println("身份证最后一位:" + String.valueOf(idCardLast).toUpperCase() +
// "错误,正确的应该是:" + idCardY[idCardMod].toUpperCase());
//return false;
d
.
setError
(
"证件号码信息有误"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//System.out.println("异常:" + zj);
//return false;
d
.
setError
(
"证件号码信息有误"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
}
//部门岗位有误
String
oneb
=
newList
.
get
(
i
).
getOneb
();
String
twob
=
newList
.
get
(
i
).
getTwob
();
String
threeb
=
newList
.
get
(
i
).
getThreeb
();
String
fourb
=
newList
.
get
(
i
).
getFourb
();
String
gw
=
newList
.
get
(
i
).
getGw
();
String
[]
bms
=
{
oneb
,
twob
,
threeb
,
fourb
};
if
(
StrUtil
.
hasBlank
(
gw
)
&&
StrUtil
.
hasBlank
(
oneb
)
&&
StrUtil
.
hasBlank
(
twob
)
&&
StrUtil
.
hasBlank
(
threeb
)
&&
StrUtil
.
hasBlank
(
fourb
))
{
//没填写岗位,通过~ //
}
else
{
//填写了部门岗位,办他!
Integer
isHaveBmgw
=
isHavebmgw
(
bms
,
gw
,
orgCode
);
if
(
isHaveBmgw
==
0
)
{
d
.
setError
(
"部门岗位有误"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
else
{
//获取到部门岗位id啦!
d
.
setHavebmid
(
isHaveBmgw
);
}
}
i
++;
}
//for循环完毕!
YgDrsDto
tofList
=
new
YgDrsDto
(
drList
,
errorList
,
orgCode
);
return
tofList
;
}
//选填项过滤器
public
YgDrsDto
optFilter
(
YgDrsDto
ygDrsDto
)
{
List
<
YgDrjqbDto
>
drList
=
ygDrsDto
.
getDrList
();
List
<
YgDrjqbDto
>
newList
=
new
ArrayList
<
YgDrjqbDto
>(
drList
);
List
<
YgDrjqbDto
>
errorList
=
ygDrsDto
.
getErrorList
();
Integer
orgCode
=
ygDrsDto
.
getOrgCode
();
Iterator
<
YgDrjqbDto
>
itDr
=
drList
.
iterator
();
YgDrjqbDto
a
=
drList
.
get
(
0
);
//一个员工导入
Integer
size
=
drList
.
size
();
for
(
Integer
i
=
0
;
i
<
size
;)
{
//
YgDrjqbDto
d
=
newList
.
get
(
i
);
//计数器
if
(
itDr
.
hasNext
())
{
a
=
itDr
.
next
();
}
//for (YgDrjqbDto d : drList) {
String
ygnbgh
=
d
.
getYgnbgh
();
String
sex
=
d
.
getSex
();
String
jobType
=
d
.
getJobType
();
String
jobStatus
=
d
.
getJobStatus
();
String
rzTime
=
d
.
getRzTime
();
String
syq
=
d
.
getSyq
();
String
zy
=
d
.
getZy
();
String
address
=
d
.
getAddress
();
String
hjAddress
=
d
.
getHkAddress
();
String
qq
=
d
.
getQq
();
String
weixin
=
d
.
getWeixin
();
String
email
=
d
.
getEmail
();
String
[]
bathroom
=
{
ygnbgh
,
jobType
,
jobStatus
,
rzTime
,
syq
,
zy
,
address
,
hjAddress
,
qq
,
weixin
,
email
};
boolean
child
=
takeshower
(
bathroom
);
if
(
child
==
false
)
{
d
.
setError
(
"填写内容不要大于50字数"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
//公司内部工号
if
(
ygnbgh
!=
null
&&
ygnbgh
.
length
()
!=
0
)
{
d
.
setYgnbgh
(
ygnbgh
.
trim
());
}
else
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
String
bh
=
format
.
format
(
new
Date
())+
orgCode
+
i
+
System
.
currentTimeMillis
();
d
.
setYgnbgh
(
bh
);
}
//男女
if
(
sex
!=
null
&&
sex
.
length
()
!=
0
)
{
if
(
sex
.
indexOf
(
"1"
)!=-
1
||
sex
.
indexOf
(
"男"
)!=-
1
)
{
d
.
setSex
(
"1"
);
}
if
(
sex
.
indexOf
(
"2"
)!=-
1
||
sex
.
indexOf
(
"女"
)!=-
1
)
{
d
.
setSex
(
"2"
);
}
}
else
{
d
.
setSex
(
"1"
);
}
//工作性质(需要优化)
if
(
jobType
!=
null
&&
jobType
.
length
()
!=
0
)
{
//8种情况
if
((
jobType
.
indexOf
(
"1"
))!=-
1
||
jobType
.
indexOf
(
"全"
)
!=-
1
)
{
d
.
setJobType
(
"1"
);
}
if
((
jobType
.
indexOf
(
"2"
))!=-
1
||
jobType
.
indexOf
(
"实习"
)
!=-
1
)
{
d
.
setJobType
(
"2"
);
}
if
((
jobType
.
indexOf
(
"3"
))!=-
1
||
jobType
.
indexOf
(
"兼"
)
!=-
1
)
{
d
.
setJobType
(
"3"
);
}
if
((
jobType
.
indexOf
(
"5"
))!=-
1
||
jobType
.
indexOf
(
"劳务"
)
!=-
1
)
{
d
.
setJobType
(
"5"
);
}
if
((
jobType
.
indexOf
(
"6"
))!=-
1
||
jobType
.
indexOf
(
"派遣"
)
!=-
1
)
{
d
.
setJobType
(
"6"
);
}
if
((
jobType
.
indexOf
(
"4"
))!=-
1
||
jobType
.
indexOf
(
"劳务派遣"
)
!=-
1
)
{
d
.
setJobType
(
"4"
);
}
if
((
jobType
.
indexOf
(
"7"
))!=-
1
||
jobType
.
indexOf
(
"外包"
)
!=-
1
)
{
d
.
setJobType
(
"7"
);
}
if
((
jobType
.
indexOf
(
"8"
))!=-
1
||
jobType
.
indexOf
(
"退休"
)
!=-
1
)
{
d
.
setJobType
(
"8"
);
}
if
(
Integer
.
valueOf
(
d
.
getJobType
())>
8
||
Integer
.
valueOf
(
d
.
getJobType
())<
1
)
{
d
.
setError
(
"填写工作性质有误!"
);
errorList
.
add
(
d
);
itDr
.
remove
();
i
++;
continue
;
}
}
else
{
d
.
setJobType
(
"1"
);
}
//员工状态(需要优化)
if
(
jobStatus
!=
null
&&
jobStatus
.
length
()
!=
0
)
{
if
((
jobStatus
.
indexOf
(
"1"
))!=-
1
||
jobStatus
.
indexOf
(
"正"
)
!=-
1
)
{
d
.
setJobStatus
(
"1"
);
}
if
((
jobStatus
.
indexOf
(
"2"
))!=-
1
||
jobStatus
.
indexOf
(
"试"
)
!=-
1
)
{
d
.
setJobStatus
(
"2"
);
}
}
else
{
d
.
setJobStatus
(
"1"
);
}
//入职日期(需要枚举)
//SimpleDateFormat straight = new SimpleDateFormat("yyyy-MM-dd");//正杠
//SimpleDateFormat italics = new SimpleDateFormat("yyyy/MM/dd");//斜杠
//SimpleDateFormat drop = new SimpleDateFormat("yyyy.MM.dd");//点
//SimpleDateFormat didnot = new SimpleDateFormat("yyyyMMdd");//没有
//试用期
if
(
syq
!=
null
&&
syq
.
length
()
!=
0
)
{
if
((
syq
.
indexOf
(
"0"
))!=-
1
||
syq
.
indexOf
(
"无"
)
!=-
1
)
{
d
.
setSyq
(
"0"
);
}
if
((
syq
.
indexOf
(
"1"
))!=-
1
||
syq
.
indexOf
(
"一"
)
!=-
1
)
{
d
.
setSyq
(
"1"
);
}
if
((
syq
.
indexOf
(
"2"
))!=-
1
||
syq
.
indexOf
(
"二"
)
!=-
1
)
{
d
.
setSyq
(
"2"
);
}
if
((
syq
.
indexOf
(
"3"
))!=-
1
||
syq
.
indexOf
(
"三"
)
!=-
1
)
{
d
.
setSyq
(
"3"
);
}
if
((
syq
.
indexOf
(
"4"
))!=-
1
||
syq
.
indexOf
(
"四"
)
!=-
1
)
{
d
.
setSyq
(
"4"
);
}
if
((
syq
.
indexOf
(
"5"
))!=-
1
||
syq
.
indexOf
(
"五"
)
!=-
1
)
{
d
.
setSyq
(
"5"
);
}
if
((
syq
.
indexOf
(
"6"
))!=-
1
||
syq
.
indexOf
(
"六"
)
!=-
1
)
{
d
.
setSyq
(
"6"
);
}
}
else
{
d
.
setSyq
(
"0"
);
}
i
++;
}
YgDrsDto
clear
=
new
YgDrsDto
(
drList
,
errorList
,
orgCode
);
return
clear
;
}
//浴池,洗去选填项字节大于100的选项
public
boolean
takeshower
(
String
[]
bathroom
){
for
(
String
b
:
bathroom
)
{
if
(
b
.
length
()>
100
)
{
return
false
;}}
return
true
;}
//判断是否导入组织部门
public
Integer
isHavebmgw
(
String
[]
bms
,
String
gw
,
Integer
orgCode
)
{
//将姓名转为部门岗位对象
List
<
ZzglBmgwM
>
gwList
=
new
ArrayList
<
ZzglBmgwM
>();
//判断有几个部门,且这几个部门是否属实,里面不包括岗位
for
(
String
bm
:
bms
)
{
if
(!
StrUtil
.
hasBlank
(
bm
)){
ZzglBmgwM
ibm
=
new
LambdaQueryChainWrapper
<
ZzglBmgwM
>(
zzglBmgwMMapper
)
.
eq
(
ZzglBmgwM:
:
getName
,
bm
)
.
eq
(
ZzglBmgwM:
:
getOrgCode
,
orgCode
)
.
eq
(
ZzglBmgwM:
:
getType
,
0
).
one
();
//选择部门类型0为部门,1为岗位
if
(
ibm
==
null
)
{
return
0
;}
//找不到有相关名称的部门则报错
gwList
.
add
(
ibm
);
}
else
{
break
;
}
}
Integer
qiantao
=
qiantao
(
gwList
,
gw
,
0
,
orgCode
);
if
(
qiantao
!=
0
)
{
return
qiantao
;
//组织部门成立!
}
else
{
return
0
;
//失败
}
};
//判断是否导入组织部门的嵌套并寻找到正确岗位id
public
Integer
qiantao
(
List
<
ZzglBmgwM
>
gwList
,
String
gw
,
Integer
upid
,
Integer
orgCode
)
{
//重写
if
(
upid
!=
0
&&
!
gwList
.
get
(
0
).
getUpId
().
equals
(
upid
))
{
return
0
;
}
upid
=
gwList
.
get
(
0
).
getId
();
if
(
gwList
.
size
()
==
1
)
{
ZzglBmgwM
igw
=
new
LambdaQueryChainWrapper
<
ZzglBmgwM
>(
zzglBmgwMMapper
)
.
eq
(
ZzglBmgwM:
:
getName
,
gw
)
.
eq
(
ZzglBmgwM:
:
getUpId
,
upid
)
.
eq
(
ZzglBmgwM:
:
getOrgCode
,
orgCode
)
.
eq
(
ZzglBmgwM:
:
getType
,
1
).
one
();
if
(
igw
==
null
)
{
return
0
;
}
return
igw
.
getId
();
}
gwList
.
remove
(
0
);
Integer
q
=
qiantao
(
gwList
,
gw
,
upid
,
orgCode
);
return
q
;
};
/**
* 导入/批量添加/修改员工
*
* 部门导入(未完成)
* @param
* @return
*/
@PostMapping
(
value
=
"/ygdas"
)
@ApiOperation
(
value
=
"导入/批量添加/修改员工"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
54
)
public
Result
<
List
<
YgglMainEmp
>>
addygdas
(
UserBean
userBean
,
List
<
YgglMainEmp
>
ygglMainEmpList
)
{
for
(
YgglMainEmp
ygglMainEmp
:
ygglMainEmpList
)
{
ygglMainEmp
.
insertOrUpdate
();
@PostMapping
(
value
=
"/ygbmdr"
)
@ApiOperation
(
value
=
"员工部门导入"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
59
)
public
Result
<
List
<
YgglMainEmp
>>
ygbmdr
(
UserBean
userBean
,
List
<
YgglMainEmp
>
EmpList
)
{
return
ResultUtil
.
success
(
"员工导入成功!"
);
}
/**
* 展示民族/展示所有民族
* @param
* @return
*/
@PostMapping
(
value
=
"/mz/{id}"
)
@ApiOperation
(
value
=
"展示民族/展示所有民族"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
60
)
public
Result
<
List
<
YgmzDto
>>
selectmzs
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
if
(
id
==
null
||
id
==
0
)
{
List
<
YgmzDto
>
allmz
=
new
LambdaQueryChainWrapper
<
YgmzDto
>(
ygMzDtoMapper
).
list
();
return
ResultUtil
.
data
(
allmz
,
"展示所有民族"
);
}
List
<
YgmzDto
>
mz
=
new
LambdaQueryChainWrapper
<
YgmzDto
>(
ygMzDtoMapper
).
eq
(
YgmzDto:
:
getNumber
,
id
).
list
();
return
ResultUtil
.
data
(
mz
,
"展示该民族"
);
}
return
ResultUtil
.
data
(
ygglMainEmpList
,
"导入/批量添加/修改员工成功"
);
/**
* 展示籍贯/展示所有籍贯
* @param
* @return
*/
@PostMapping
(
value
=
"/jg"
)
@ApiOperation
(
value
=
"展示籍贯所有省市区"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
65
)
public
Result
<
List
<
String
>>
selectjgs
(
@CurrentUser
UserBean
userBean
,
@RequestBody
YgjgDto
ygjgDto
)
{
Integer
type
=
ygjgDto
.
getType
();
Integer
upId
=
ygjgDto
.
getJgid
();
List
<
String
>
a
=
new
ArrayList
<
String
>();
if
(
type
==
1
)
{
//省份
List
<
YgProDto
>
proList
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
orderByAsc
(
YgProDto:
:
getProvince
).
list
();
for
(
YgProDto
pro
:
proList
)
{
a
.
add
(
pro
.
getName
());}}
if
(
type
==
2
)
{
//城市
List
<
YgCityDto
>
cityList
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getProvince
,
upId
).
orderByAsc
(
YgCityDto:
:
getProvince
).
orderByAsc
(
YgCityDto:
:
getCity
).
list
();
for
(
YgCityDto
city
:
cityList
)
{
a
.
add
(
city
.
getName
());}}
if
(
type
==
3
)
{
//地区
List
<
YgAreaDto
>
areaList
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
select
(
YgAreaDto:
:
getId
,
YgAreaDto:
:
getName
).
eq
(
YgAreaDto:
:
getCity
,
upId
).
orderByAsc
(
YgAreaDto:
:
getProvince
).
orderByAsc
(
YgAreaDto:
:
getCity
).
list
();
for
(
YgAreaDto
area
:
areaList
)
{
a
.
add
(
area
.
getName
());}}
//IYgjgDto iYgjgDto = PunishFactory.getPunish(type);
//List<String> strings = iYgjgDto.exePunish();
//System.out.println(strings);
if
(!
a
.
isEmpty
())
return
ResultUtil
.
data
(
a
,
"展示籍贯成功"
);
return
ResultUtil
.
error
(
"输入参数有误!"
);
}
@PostMapping
(
value
=
"/jgp/{id}"
)
@ApiOperation
(
value
=
"显示籍贯省市区"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
66
)
public
Result
<
String
>
selectjg
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
String
isPro
=
id
.
toString
().
substring
(
2
,
4
);
String
isCity
=
id
.
toString
().
substring
(
4
,
6
);
if
(
"00"
.
equals
(
isPro
))
{
YgProDto
pro
=
new
LambdaQueryChainWrapper
<
YgProDto
>(
ygProDtoMapper
).
select
(
YgProDto:
:
getId
,
YgProDto:
:
getName
).
eq
(
YgProDto:
:
getId
,
id
).
one
();
if
(
pro
!=
null
)
{
return
ResultUtil
.
data
(
pro
.
getName
(),
"显示所在籍贯"
);
}}
if
(
"00"
.
equals
(
isCity
))
{
YgCityDto
city
=
new
LambdaQueryChainWrapper
<
YgCityDto
>(
ygCityDtoMapper
).
select
(
YgCityDto:
:
getId
,
YgCityDto:
:
getName
).
eq
(
YgCityDto:
:
getId
,
id
).
one
();
if
(
city
!=
null
)
{
return
ResultUtil
.
data
(
city
.
getName
(),
"显示所在籍贯"
);
}}
YgAreaDto
area
=
new
LambdaQueryChainWrapper
<
YgAreaDto
>(
ygAreaDtoMapper
).
select
(
YgAreaDto:
:
getId
,
YgAreaDto:
:
getName
).
eq
(
YgAreaDto:
:
getId
,
id
).
one
();
if
(
area
!=
null
)
{
return
ResultUtil
.
data
(
area
.
getName
(),
"显示所在籍贯"
);}
return
ResultUtil
.
error
(
"编码有误,显示不到所在籍贯"
);
}
/**
* 导出/批量添加/修改员工
*
* 导出员工
* @param
* @return
*/
...
...
@@ -1084,7 +1539,7 @@ public class YgglController {
QueryWrapper
<
YgglMainEmp
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"org_code"
,
orgCode
);
List
<
YgglMainEmp
>
ygglMainEmpList
=
YgglMainEmp
.
builder
().
build
().
selectList
(
queryWrapper
);
return
ResultUtil
.
data
(
ygglMainEmpList
,
"导出
/批量添加/修改
员工成功"
);
return
ResultUtil
.
data
(
ygglMainEmpList
,
"导出员工成功"
);
}
/**
...
...
@@ -1127,9 +1582,7 @@ public class YgglController {
List
<
YgglCartogramDto
>
ygglCartogramDto11
=
ygglMainEmpMapper
.
queryWorkingAge
(
userBean
);
map
.
put
(
"positive"
,
ygglCartogramDto1
.
getPositive
());
if
(
ygglCartogramDto2
!=
null
)
{
map
.
put
(
"avgAge"
,
ygglCartogramDto2
.
getAvgAge
());
}
map
.
put
(
"induction"
,
ygglCartogramDto3
.
getInduction
());
map
.
put
(
"probation"
,
ygglCartogramDto4
.
getProbation
());
map
.
put
(
"regular"
,
ygglCartogramDto4
.
getRegular
());
...
...
@@ -1154,10 +1607,9 @@ public class YgglController {
@GetMapping
(
value
=
"/ygsbgjj/{empNum}"
)
@ApiOperation
(
value
=
"获取员工社保公积金"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
12
)
public
Result
<
YgglAttaSbgjj
>
selectygsbgjj
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
empNum
)
{
public
Result
<
YgglAttaSbgjj
>
selectygsbgjj
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
empNum
)
{
YgglAttaSbgjj
ygglAttaSbgjj
=
YgglAttaSbgjj
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
YgglAttaSbgjj
>().
eq
(
"emp_num"
,
empNum
));
YgglAttaSbgjj
ygglAttaSbgjj
=
YgglAttaSbgjj
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglAttaSbgjj
>().
eq
(
"emp_num"
,
empNum
));
return
ResultUtil
.
data
(
ygglAttaSbgjj
,
"获取员工社保公积金成功"
);
}
...
...
@@ -1171,16 +1623,15 @@ public class YgglController {
@PostMapping
(
value
=
"/ygsbgjj"
)
@ApiOperation
(
value
=
"添加/修改员工社保公积金"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
12
)
public
Result
<
YgglAttaSbgjj
>
addygsbgjj
(
@CurrentUser
UserBean
userBean
,
@RequestBody
YgglAttaSbgjj
ygglAttaSbgjj
)
{
public
Result
<
YgglAttaSbgjj
>
addygsbgjj
(
@CurrentUser
UserBean
userBean
,
@RequestBody
YgglAttaSbgjj
ygglAttaSbgjj
)
{
Integer
empNum
=
ygglAttaSbgjj
.
getEmpNum
();
if
(
empNum
==
null
)
{
return
ResultUtil
.
error
();
}
YgglAttaSbgjj
AttaSbgjj
=
YgglAttaSbgjj
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
YgglAttaSbgjj
>().
eq
(
"emp_num"
,
empNum
));
YgglAttaSbgjj
AttaSbgjj
=
YgglAttaSbgjj
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglAttaSbgjj
>().
eq
(
"emp_num"
,
empNum
));
if
(
AttaSbgjj
!=
null
)
{
ygglAttaSbgjj
.
update
(
new
UpdateWrapper
<
YgglAttaSbgjj
>().
eq
(
"emp_num"
,
empNum
));
}
else
{
}
else
{
ygglAttaSbgjj
.
insert
();
}
...
...
src/main/java/cn/timer/api/dao/yggl/YgCityDtoMapper.java
View file @
770e23e4
...
...
@@ -4,7 +4,6 @@ import org.springframework.stereotype.Repository;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.dto.yggl.YgCityDto
;
import
cn.timer.api.dto.yggl.YgProDto
;
...
...
src/main/java/cn/timer/api/dto/yggl/YgAreaDto.java
View file @
770e23e4
...
...
@@ -3,10 +3,8 @@ package cn.timer.api.dto.yggl;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/cn/timer/api/dto/yggl/YgCityDto.java
View file @
770e23e4
...
...
@@ -3,10 +3,8 @@ package cn.timer.api.dto.yggl;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/cn/timer/api/dto/yggl/YgProDto.java
View file @
770e23e4
...
...
@@ -3,10 +3,8 @@ package cn.timer.api.dto.yggl;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/cn/timer/api/dto/yggl/YgmzDto.java
View file @
770e23e4
...
...
@@ -3,7 +3,6 @@ package cn.timer.api.dto.yggl;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
src/main/resources/application-pro.yml
View file @
770e23e4
...
...
@@ -10,19 +10,19 @@ spring:
multipart
:
max-file-size
:
20MB
max-request-size
:
20MB
#
jpa:
#
11
配置生成表 存储引擎InnoDB
jpa
:
# 配置生成表 存储引擎InnoDB
# database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
# database:
# open-in-view: false
#naming:
#
naming:
# spring boot jpa hibernate 根据实体类生成表以及字段的命名策略
# 无修改命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
# 遇到大写字母 加”_”的命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#
hibernate:
#
ddl-auto: update
#
show-sql: true
#
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
hibernate
:
ddl-auto
:
update
show-sql
:
true
datasource
:
username
:
root
password
:
youlingHR73!
...
...
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