beautify code
This commit is contained in:
parent
f060712145
commit
87a897e6e8
@ -63,15 +63,15 @@ public class PileStartChargingDataLogic implements ServiceLogic {
|
||||
if (pileStartChargingData.getStartType().equals("01")) { //刷卡启动
|
||||
IccardInfoExample example = new IccardInfoExample();
|
||||
IccardInfoExample.Criteria criteria = example.createCriteria();
|
||||
String pyhsicCardNo = null;
|
||||
String physicCardNo;
|
||||
if (accountOrCardNo.startsWith("00000000")) {
|
||||
pyhsicCardNo = accountOrCardNo.substring(8);
|
||||
physicCardNo = accountOrCardNo.substring(8);
|
||||
} else if (accountOrCardNo.endsWith("00000000")) {
|
||||
pyhsicCardNo = accountOrCardNo.substring(0, 8);
|
||||
physicCardNo = accountOrCardNo.substring(0, 8);
|
||||
} else {
|
||||
pyhsicCardNo = accountOrCardNo;
|
||||
physicCardNo = accountOrCardNo;
|
||||
}
|
||||
criteria.andCardidEqualTo(pyhsicCardNo).andCorpnoEqualTo(corpNo); // todo remove corpNo
|
||||
criteria.andCardidEqualTo(physicCardNo).andCorpnoEqualTo(corpNo); // todo remove corpNo
|
||||
List<IccardInfo> iccardInfos = iccardInfoMapper.selectByExample(example);
|
||||
if (iccardInfos.size() == 1) {
|
||||
IccardInfo iccardInfo = iccardInfos.get(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user