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
057b11e0
Commit
057b11e0
authored
Dec 15, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.2' into MVP1.2
parents
ab303518
48ca82f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
TSalaryAccount.java
...yifu/cloud/plus/v1/yifu/salary/entity/TSalaryAccount.java
+1
-1
TSalaryAccountPhoneController.java
...yifu/salary/controller/TSalaryAccountPhoneController.java
+6
-3
UserController.java
...u/cloud/plus/v1/yifu/admin/controller/UserController.java
+3
-4
No files found.
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TSalaryAccount.java
View file @
057b11e0
...
...
@@ -527,5 +527,5 @@ public class TSalaryAccount extends BaseEntity {
private
String
salaryMonthEnd
;
@ExcelProperty
(
value
=
"导入行号"
)
private
int
rowIndex
;
private
Integer
rowIndex
;
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TSalaryAccountPhoneController.java
View file @
057b11e0
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
salary
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysUser
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
...
...
@@ -74,7 +75,7 @@ public class TSalaryAccountPhoneController {
List
<
TSalaryAccount
>
list
=
salaryAccountService
.
list
(
Wrappers
.<
TSalaryAccount
>
lambdaQuery
()
.
eq
(
TSalaryAccount:
:
getEmpIdcard
,
idNumber
)
.
eq
(
TSalaryAccount:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TSalaryAccount:
:
get
DistributionFlag
,
CommonConstants
.
ONE_STRING
)
.
eq
(
TSalaryAccount:
:
get
SendStatus
,
CommonConstants
.
ONE_STRING
)
.
last
(
SORT_COL
.
concat
(
CommonConstants
.
LAST_ONE_SQL
)));
//查实发工资
if
(
Common
.
isNotNull
(
list
))
{
...
...
@@ -87,7 +88,7 @@ public class TSalaryAccountPhoneController {
List
<
TSalaryAccount
>
list
=
salaryAccountService
.
list
(
Wrappers
.<
TSalaryAccount
>
lambdaQuery
()
.
eq
(
TSalaryAccount:
:
getEmpIdcard
,
idNumber
)
.
eq
(
TSalaryAccount:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
.
eq
(
TSalaryAccount:
:
get
DistributionFlag
,
CommonConstants
.
ONE_STRING
)
.
eq
(
TSalaryAccount:
:
get
SendStatus
,
CommonConstants
.
ONE_STRING
)
.
likeRight
(
TSalaryAccount:
:
getSalaryMonth
,
year
).
last
(
SORT_COL
));
//查实发工资
if
(
Common
.
isNotNull
(
list
))
{
...
...
@@ -180,8 +181,10 @@ public class TSalaryAccountPhoneController {
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryEmployee>
**/
private
R
<
TSalaryEmployee
>
getUserCount
(
TSalaryEmployee
em
)
{
SysUser
user
=
new
SysUser
();
user
.
setUsername
(
em
.
getEmpIdcard
());
R
<
Integer
>
userCount
=
HttpDaprUtil
.
invokeMethodPost
(
daprUpmsProperties
.
getAppUrl
(),
daprUpmsProperties
.
getAppId
()
,
"/user/inner/getCountByIdCard"
,
em
.
getEmpIdcard
()
,
Integer
.
class
,
SecurityConstants
.
FROM_IN
);
,
"/user/inner/getCountByIdCard"
,
user
,
Integer
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
userCount
!=
null
&&
userCount
.
getData
()
!=
null
&&
userCount
.
getData
()
>
CommonConstants
.
ZERO_INT
)
{
return
R
.
other
(
CommonConstants
.
TWO_INT
,
"该身份已被绑定,请联系客服热线:0551 - 63535213!!"
);
}
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/UserController.java
View file @
057b11e0
...
...
@@ -413,16 +413,15 @@ public class UserController {
}
/**
* @param idCard
* @Description: 获取C端用户是否存在
* @Author: hgw
* @Date: 2022/12/13 14:50
* @return: java.lang.Integer
**/
@Inner
@
Ge
tMapping
(
"/inner/getCountByIdCard"
)
public
Integer
getCountByIdCard
(
@Request
Param
String
idCard
)
{
return
(
int
)
userService
.
count
(
Wrappers
.<
SysUser
>
lambdaQuery
().
eq
(
SysUser:
:
getUsername
,
idCard
)
@
Pos
tMapping
(
"/inner/getCountByIdCard"
)
public
Integer
getCountByIdCard
(
@Request
Body
SysUser
user
)
{
return
(
int
)
userService
.
count
(
Wrappers
.<
SysUser
>
lambdaQuery
().
eq
(
SysUser:
:
getUsername
,
user
.
getUsername
()
)
.
eq
(
SysUser:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
isNotNull
(
SysUser:
:
getWxOpenid
));
}
...
...
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