Commit d0b7dc3a authored by hongguangwu's avatar hongguangwu

MVP1.4-salary代发户4次上传代码-优化

parent c7d2638e
......@@ -46,9 +46,6 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
@Override
public R<TCheckBankNo> checkBankNo(String name, String cardNo) {
if (Common.isEmpty(name) || Common.isEmpty(cardNo)){
R.failed(MsgUtils.getMessage(ErrorCodes.CHECKS_BANK_NO_REQUEST_PARAM_ERROR));
}
synchronized (this){
TCheckBankNo checkBankNo = baseMapper.selectOne(Wrappers.<TCheckBankNo>query().lambda()
.eq(TCheckBankNo::getBankNo, cardNo)
......@@ -56,9 +53,9 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(checkBankNo)){
if ("01".equals(checkBankNo.getResult())) {
R.ok(checkBankNo);
return R.ok(checkBankNo);
} else {
R.failed(checkBankNo);
return R.failed(checkBankNo);
}
}
R<TCheckBankNo> resR = ChecksUtil.checkBankNoTwo(name,cardNo,canCheckService.getCanCheck());
......
......@@ -153,7 +153,7 @@ public class TSalaryStandardIssueServiceImpl extends ServiceImpl<TSalaryStandard
}
private LambdaQueryWrapper buildQueryWrapper(TSalaryStandardIssueSearchVo entity) {
LambdaQueryWrapper<TSalaryStandardIssue> wrapper = Wrappers.lambdaQuery();
LambdaQueryWrapper<TSalaryStandardIssue> wrapper = Wrappers.lambdaQuery(entity);
if (ArrayUtil.isNotEmpty(entity.getCreateTimes())) {
wrapper.ge(TSalaryStandardIssue::getCreateTime, entity.getCreateTimes()[0])
.le(TSalaryStandardIssue::getCreateTime,
......
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