查卡不查corpNo;entity annotated with jpa

This commit is contained in:
ZZ 2022-03-11 11:44:45 +08:00
parent 4e50a5579e
commit 7f7a15784a
2 changed files with 35 additions and 19 deletions

View File

@ -16,61 +16,77 @@ public class XhpcTerminal extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 终端id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "terminal_id", nullable = false)
private Long terminalId; private Long terminalId;
/** 电桩id */ /**
* 电桩id
*/
@Column(name = "charging_pile_id")
private Long chargingPileId; private Long chargingPileId;
/** 电站id */ /**
* 电站id
*/
@Column(name = "charging_station_id")
private Long chargingStationId; private Long chargingStationId;
/** 名称 */ /**
* 名称
*/
@Column(name = "name")
private String name; private String name;
/** 编号 */ /**
* 编号
*/
@Column(name = "serial_number")
private String serialNumber; private String serialNumber;
/** 电桩编号 */ /** 电桩编号 */
@Column(name = "pile_serial_number")
private String pileSerialNumber; private String pileSerialNumber;
/** 插枪状态 */ /**
* 插枪状态
*/
@Column(name = "gun_status", nullable = true)
private Integer gunStatus; private Integer gunStatus;
/** 工作状态(0离线 1故障 2空闲 3充电) */ /** 工作状态(0离线 1故障 2空闲 3充电) */
@Column(name = "work_status", nullable = true)
private Integer workStatus; private Integer workStatus;
/** 状态0正常 1停用 */ /** 状态0正常 1停用 */
@Column(name = "status", nullable = true)
private Integer status; private Integer status;
/** 删除标志0代表存在 2代表删除 */ /** 删除标志0代表存在 2代表删除 */
@Column(name = "del_flag", nullable = true)
private Integer delFlag; private Integer delFlag;
/** 费率模型id */ /** 费率模型id */
@Column(name = "rate_model_id")
private Long rateModelId; private Long rateModelId;
@Column(name = "operator_id_evcs", nullable = true)
private String operatorIdEvcs; private String operatorIdEvcs;
/** /**
* 充电设备类型 * 充电设备类型
*/ */
@Column(name = "connector_type", nullable = true)
private Integer connectorType; private Integer connectorType;
/** /**
* 电桩统计数量 * 电桩统计数量
*/ */
@Column(name = "number", nullable = true)
private Integer number; private Integer number;
public int getConnectorType() { public int getConnectorType() {

View File

@ -72,7 +72,7 @@ public class PileStartChargingDataLogic implements ServiceLogic {
} else { } else {
physicCardNo = accountOrCardNo; physicCardNo = accountOrCardNo;
} }
// criteria.andCardidEqualTo(physicCardNo).andCorpnoEqualTo(corpNo); // todo remove corpNo criteria.andCardidEqualTo(physicCardNo);//.andCorpnoEqualTo(corpNo); // todo remove corpNo alrity
List<IccardInfo> iccardInfos = iccardInfoMapper.selectByExample(example); List<IccardInfo> iccardInfos = iccardInfoMapper.selectByExample(example);
if (iccardInfos.size() == 1) { if (iccardInfos.size() == 1) {
IccardInfo iccardInfo = iccardInfos.get(0); IccardInfo iccardInfo = iccardInfos.get(0);