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