Commit 057b11e0 authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/MVP1.2' into MVP1.2

parents ab303518 48ca82f8
...@@ -527,5 +527,5 @@ public class TSalaryAccount extends BaseEntity { ...@@ -527,5 +527,5 @@ public class TSalaryAccount extends BaseEntity {
private String salaryMonthEnd; private String salaryMonthEnd;
@ExcelProperty(value = "导入行号") @ExcelProperty(value = "导入行号")
private int rowIndex; private Integer rowIndex;
} }
package com.yifu.cloud.plus.v1.yifu.salary.controller; package com.yifu.cloud.plus.v1.yifu.salary.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; 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.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common; import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
...@@ -74,7 +75,7 @@ public class TSalaryAccountPhoneController { ...@@ -74,7 +75,7 @@ public class TSalaryAccountPhoneController {
List<TSalaryAccount> list = salaryAccountService.list(Wrappers.<TSalaryAccount>lambdaQuery() List<TSalaryAccount> list = salaryAccountService.list(Wrappers.<TSalaryAccount>lambdaQuery()
.eq(TSalaryAccount::getEmpIdcard, idNumber) .eq(TSalaryAccount::getEmpIdcard, idNumber)
.eq(TSalaryAccount::getDeleteFlag, CommonConstants.ZERO_INT) .eq(TSalaryAccount::getDeleteFlag, CommonConstants.ZERO_INT)
.eq(TSalaryAccount::getDistributionFlag, CommonConstants.ONE_STRING) .eq(TSalaryAccount::getSendStatus, CommonConstants.ONE_STRING)
.last(SORT_COL.concat(CommonConstants.LAST_ONE_SQL))); .last(SORT_COL.concat(CommonConstants.LAST_ONE_SQL)));
//查实发工资 //查实发工资
if (Common.isNotNull(list)) { if (Common.isNotNull(list)) {
...@@ -87,7 +88,7 @@ public class TSalaryAccountPhoneController { ...@@ -87,7 +88,7 @@ public class TSalaryAccountPhoneController {
List<TSalaryAccount> list = salaryAccountService.list(Wrappers.<TSalaryAccount>lambdaQuery() List<TSalaryAccount> list = salaryAccountService.list(Wrappers.<TSalaryAccount>lambdaQuery()
.eq(TSalaryAccount::getEmpIdcard, idNumber) .eq(TSalaryAccount::getEmpIdcard, idNumber)
.eq(TSalaryAccount::getDeleteFlag, CommonConstants.ZERO_INT) .eq(TSalaryAccount::getDeleteFlag, CommonConstants.ZERO_INT)
.eq(TSalaryAccount::getDistributionFlag, CommonConstants.ONE_STRING) .eq(TSalaryAccount::getSendStatus, CommonConstants.ONE_STRING)
.likeRight(TSalaryAccount::getSalaryMonth, year).last(SORT_COL)); .likeRight(TSalaryAccount::getSalaryMonth, year).last(SORT_COL));
//查实发工资 //查实发工资
if (Common.isNotNull(list)) { if (Common.isNotNull(list)) {
...@@ -180,8 +181,10 @@ public class TSalaryAccountPhoneController { ...@@ -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> * @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) { private R<TSalaryEmployee> getUserCount(TSalaryEmployee em) {
SysUser user = new SysUser();
user.setUsername(em.getEmpIdcard());
R<Integer> userCount = HttpDaprUtil.invokeMethodPost(daprUpmsProperties.getAppUrl(), daprUpmsProperties.getAppId() 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) { if (userCount != null && userCount.getData() != null && userCount.getData() > CommonConstants.ZERO_INT) {
return R.other(CommonConstants.TWO_INT, "该身份已被绑定,请联系客服热线:0551 - 63535213!!"); return R.other(CommonConstants.TWO_INT, "该身份已被绑定,请联系客服热线:0551 - 63535213!!");
} }
......
...@@ -413,16 +413,15 @@ public class UserController { ...@@ -413,16 +413,15 @@ public class UserController {
} }
/** /**
* @param idCard
* @Description: 获取C端用户是否存在 * @Description: 获取C端用户是否存在
* @Author: hgw * @Author: hgw
* @Date: 2022/12/13 14:50 * @Date: 2022/12/13 14:50
* @return: java.lang.Integer * @return: java.lang.Integer
**/ **/
@Inner @Inner
@GetMapping("/inner/getCountByIdCard") @PostMapping("/inner/getCountByIdCard")
public Integer getCountByIdCard(@RequestParam String idCard) { public Integer getCountByIdCard(@RequestBody SysUser user) {
return (int) userService.count(Wrappers.<SysUser>lambdaQuery().eq(SysUser::getUsername, idCard) return (int) userService.count(Wrappers.<SysUser>lambdaQuery().eq(SysUser::getUsername, user.getUsername())
.eq(SysUser::getDelFlag, CommonConstants.ZERO_STRING) .eq(SysUser::getDelFlag, CommonConstants.ZERO_STRING)
.isNotNull(SysUser::getWxOpenid)); .isNotNull(SysUser::getWxOpenid));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment