选择驾驶员、车辆修改
This commit is contained in:
parent
12538531ed
commit
32d3a5f350
|
|
@ -122,10 +122,13 @@ public class CarCarController {
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PostMapping("getCarListBySup")
|
@GetMapping("getCarListBySup")
|
||||||
@DecryptAndVerify(decryptedClass = CarCarVo.class)
|
@DecryptAndVerify(decryptedClass = CarCarVo.class)
|
||||||
public ServerResponse getCarListBySup(EncryptedReq<CarCarVo> dto) {
|
public PageInfo<CarCarVo> getCarListBySup(EncryptedReq<CarCarVo> dto) {
|
||||||
return service.getCarListBySup(dto.getData());
|
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
|
||||||
|
List<CarCarVo> list = service.getCarListBySup(dto.getData());;
|
||||||
|
PageInfo<CarCarVo> pageInfo = new PageInfo<>(list);
|
||||||
|
return pageInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,10 +121,13 @@ public class CarDriverController {
|
||||||
* 传入supId
|
* 传入supId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PostMapping("getDriverListBySup")
|
@GetMapping("getDriverListBySup")
|
||||||
@DecryptAndVerify(decryptedClass = CarDriverVo.class)
|
@DecryptAndVerify(decryptedClass = CarDriverVo.class)
|
||||||
public ServerResponse getDriverListBySup(EncryptedReq<CarDriverVo> dto) {
|
public PageInfo<CarDriverVo> getDriverListBySup(EncryptedReq<CarDriverVo> dto) {
|
||||||
return service.getDriverListBySup(dto.getData());
|
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
|
||||||
|
List<CarDriverVo> list = service.getDriverListBySup(dto.getData());;
|
||||||
|
PageInfo<CarDriverVo> pageInfo = new PageInfo<>(list);
|
||||||
|
return pageInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ public interface CarCarService {
|
||||||
* @param data
|
* @param data
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
ServerResponse getCarListBySup(CarCarVo data);
|
List<CarCarVo> getCarListBySup(CarCarVo data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询车辆附件
|
* 查询车辆附件
|
||||||
|
|
|
||||||
|
|
@ -330,14 +330,14 @@ public class CarCarServiceImpl implements CarCarService {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ServerResponse getCarListBySup(CarCarVo data) {
|
public List<CarCarVo> getCarListBySup(CarCarVo data) {
|
||||||
List<CarCarVo> list=new ArrayList<>();
|
List<CarCarVo> list=new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
list=mapper.getCarListBySup(data);
|
list=mapper.getCarListBySup(data);
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error(e.toString());
|
log.error(e.toString());
|
||||||
}
|
}
|
||||||
return ServerResponse.createSuccess(list);
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public interface CarDriverService {
|
||||||
* @param data
|
* @param data
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
ServerResponse getDriverListBySup(CarDriverVo data);
|
List<CarDriverVo> getDriverListBySup(CarDriverVo data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询驾驶员附件
|
* 查询驾驶员附件
|
||||||
|
|
|
||||||
|
|
@ -330,14 +330,14 @@ public class CarDriverServiceImpl implements CarDriverService{
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ServerResponse getDriverListBySup(CarDriverVo data) {
|
public List<CarDriverVo> getDriverListBySup(CarDriverVo data) {
|
||||||
List<CarDriverVo> list=new ArrayList<>();
|
List<CarDriverVo> list=new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
list=mapper.getDriverListBySup(data);
|
list=mapper.getDriverListBySup(data);
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error(e.toString());
|
log.error(e.toString());
|
||||||
}
|
}
|
||||||
return ServerResponse.createSuccess(list);
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -84,5 +84,8 @@
|
||||||
<if test="supId!=null and supId!=''">
|
<if test="supId!=null and supId!=''">
|
||||||
and csi.sup_id=#{supId}
|
and csi.sup_id=#{supId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="carNum!=null and carNum!=''">
|
||||||
|
AND INSTR(csi.car_num,#{carNum}) > 0
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -58,5 +58,8 @@
|
||||||
<if test="supId!=null and supId!=''">
|
<if test="supId!=null and supId!=''">
|
||||||
and cdi.sup_id=#{supId}
|
and cdi.sup_id=#{supId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="name!=null and name!=''">
|
||||||
|
AND INSTR(cdi.name,#{name}) > 0
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue