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