Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
59add654
Commit
59add654
authored
May 22, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.6.4' into MVP1.6.5
parents
fcad1092
a18d0d11
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
21 deletions
+27
-21
R.java
.../java/com/yifu/cloud/plus/v1/yifu/common/core/util/R.java
+7
-0
TPaymentTaxSocialVo.java
...ifu/cloud/plus/v1/yifu/social/vo/TPaymentTaxSocialVo.java
+12
-10
UserController.java
...u/cloud/plus/v1/yifu/admin/controller/UserController.java
+2
-2
SysUserService.java
...yifu/cloud/plus/v1/yifu/admin/service/SysUserService.java
+1
-1
SysUserServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysUserServiceImpl.java
+5
-8
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/R.java
View file @
59add654
...
...
@@ -60,6 +60,13 @@ public class R<T> implements Serializable {
this
.
msg
=
e
.
getMessage
();
this
.
code
=
CommonConstants
.
FAIL
;
}
public
R
(
String
msg
,
int
code
)
{
super
();
this
.
msg
=
msg
;
this
.
code
=
code
;
}
public
static
<
T
>
R
<
T
>
ok
()
{
return
restResult
(
null
,
CommonConstants
.
SUCCESS
,
null
);
}
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TPaymentTaxSocialVo.java
View file @
59add654
...
...
@@ -52,10 +52,10 @@ public class TPaymentTaxSocialVo extends RowIndex implements Serializable {
/**
* 缴费工资
*/
@ExcelAttribute
(
name
=
"缴费工资"
,
isFloat
=
true
,
max
=
"999999999.99"
,
min
=
-
999999999
)
@Schema
(
description
=
"缴费工资"
)
@ExcelAttribute
(
name
=
"缴费工资
(不导入)
"
,
isFloat
=
true
,
max
=
"999999999.99"
,
min
=
-
999999999
)
@Schema
(
description
=
"缴费工资
(不导入)
"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"缴费工资"
,
converter
=
BigDecimalConverter
.
class
)
@ExcelProperty
(
value
=
"缴费工资
(不导入)
"
,
converter
=
BigDecimalConverter
.
class
)
private
BigDecimal
paymentSalary
;
/**
...
...
@@ -70,10 +70,10 @@ public class TPaymentTaxSocialVo extends RowIndex implements Serializable {
/**
* 费率
*/
@ExcelAttribute
(
name
=
"费率"
)
@Schema
(
description
=
"费率"
)
@ExcelAttribute
(
name
=
"费率
(不导入)
"
)
@Schema
(
description
=
"费率
(不导入)
"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"费率"
)
@ExcelProperty
(
value
=
"费率
(不导入)
"
)
private
String
paymentPer
;
/**
...
...
@@ -86,12 +86,12 @@ public class TPaymentTaxSocialVo extends RowIndex implements Serializable {
private
BigDecimal
paymentMoney
;
/**
* 人员编号
* 人员编号
(不导入)
*/
@ExcelAttribute
(
name
=
"人员编号"
)
@Schema
(
description
=
"人员编号"
)
@ExcelAttribute
(
name
=
"人员编号
(不导入)
"
)
@Schema
(
description
=
"人员编号
(不导入)
"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"人员编号"
)
@ExcelProperty
(
value
=
"人员编号
(不导入)
"
)
private
String
empNo
;
/**
...
...
@@ -164,6 +164,8 @@ public class TPaymentTaxSocialVo extends RowIndex implements Serializable {
@Length
(
max
=
32
,
message
=
"社保户不能超过32个字符"
)
@ExcelAttribute
(
name
=
"社保户"
,
maxLength
=
32
)
@Schema
(
description
=
"社保户"
)
@ExcelProperty
(
value
=
"社保户"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
private
String
socialHousehold
;
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/UserController.java
View file @
59add654
...
...
@@ -504,7 +504,7 @@ public class UserController {
*/
@SysLog
(
"从ldap实时更新用户和部门"
)
@PostMapping
(
"/updateUserAndDept"
)
public
R
updateUserAndDept
(
HttpServletRequest
request
,
@RequestBody
JSONObject
json
)
{
return
R
.
ok
(
userService
.
updateUserAndDept
(
request
,
json
)
);
public
R
<
String
>
updateUserAndDept
(
HttpServletRequest
request
,
@RequestBody
JSONObject
json
)
{
return
userService
.
updateUserAndDept
(
request
,
json
);
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/SysUserService.java
View file @
59add654
...
...
@@ -184,5 +184,5 @@ public interface SysUserService extends IService<SysUser> {
* 从ldap实时更新用户和部门
* @return R
*/
R
updateUserAndDept
(
HttpServletRequest
request
,
JSONObject
json
);
R
<
String
>
updateUserAndDept
(
HttpServletRequest
request
,
JSONObject
json
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysUserServiceImpl.java
View file @
59add654
...
...
@@ -739,26 +739,23 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
* @return R
*/
@Override
public
R
updateUserAndDept
(
HttpServletRequest
request
,
JSONObject
json
)
{
public
R
<
String
>
updateUserAndDept
(
HttpServletRequest
request
,
JSONObject
json
)
{
//权限验证
String
appId
=
request
.
getHeader
(
"HRBS-APP-ID"
);
String
appSecret
=
request
.
getHeader
(
"HRBS-APP-SECRET"
);
if
(
Common
.
isEmpty
(
appId
)
||
Common
.
isEmpty
(
appSecret
)){
return
R
.
failed
(
"操作失败,权限标识错误!"
);
return
new
R
<>(
"操作失败,权限标识错误!"
,
500
);
}
if
(!
hcmId
.
equals
(
appId
)
||
!
hcmSecret
.
equals
(
appSecret
)
){
return
R
.
failed
(
"操作失败,无权限!"
);
return
new
R
<>(
"操作失败,无权限!"
,
500
);
}
if
(
Common
.
isEmpty
(
json
))
{
return
R
.
failed
(
"传参不能为空"
);
return
new
R
<>(
"传参不能为空"
,
500
);
}
boolean
isAll
=
(
boolean
)
json
.
get
(
"isAll"
);
String
dataType
=
json
.
get
(
"dataType"
).
toString
();
//获取人员和部门信息
JSONArray
updateParamsArr
=
json
.
getJSONArray
(
"data"
);
if
(
Common
.
isEmpty
(
updateParamsArr
))
{
return
R
.
failed
(
"传参不能为空"
);
}
//全量更新直接调用定时任务接口
if
(
isAll
)
{
this
.
updateByLdap
();
...
...
@@ -770,7 +767,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
//更新或者新增部门信息
updateOrSaveDept
(
updateParamsArr
);
}
return
R
.
ok
(
);
return
new
R
<>(
"同步成功!"
,
200
);
}
/**
...
...
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