Commit b875eadf by fz

1.根据用户id,sn获取车钥匙列表

1 parent 06e55393
...@@ -9,4 +9,6 @@ import lombok.Data; ...@@ -9,4 +9,6 @@ import lombok.Data;
public class SmartCarKeyUserRequest { public class SmartCarKeyUserRequest {
//用户id //用户id
private String userId; private String userId;
private String sn;
} }
...@@ -250,7 +250,10 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService { ...@@ -250,7 +250,10 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
@Override @Override
public R getAllKeyByUser(SmartCarKeyUserRequest request) { public R getAllKeyByUser(SmartCarKeyUserRequest request) {
SmartVehicleBlueKeyExample example = new SmartVehicleBlueKeyExample(); SmartVehicleBlueKeyExample example = new SmartVehicleBlueKeyExample();
example.createCriteria().andUserIdEqualTo(Long.valueOf(request.getUserId())).andIsDeleteEqualTo(0); example.createCriteria()
.andUserIdEqualTo(Long.valueOf(request.getUserId()))
.andSnEqualTo(request.getSn())
.andIsDeleteEqualTo(0);
List<SmartVehicleBlueKey> keyList = smartVehicleBlueKeyService.selectByExample(example); List<SmartVehicleBlueKey> keyList = smartVehicleBlueKeyService.selectByExample(example);
//给没有名称的钥匙设置名字 //给没有名称的钥匙设置名字
if (CollectionUtils.isNotEmpty(keyList)) { if (CollectionUtils.isNotEmpty(keyList)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!