救援APP
This commit is contained in:
parent
af06d9e095
commit
4ba061390d
@ -181,11 +181,12 @@ public class RescueInfoController extends BaseController {
|
|||||||
* 获取扣车订单
|
* 获取扣车订单
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getKcList")
|
@GetMapping("/getKcList")
|
||||||
public TableDataInfo getKcList(RescueInfo rescueInfo) {
|
public CommonResult getKcList(RescueInfo rescueInfo,
|
||||||
|
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
||||||
startPage();
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
||||||
List<RescueInfo> rescueInfos = rescueInfoService.getKcList(rescueInfo);
|
Page<RescueInfo> page = new Page<>(pageNum, pageSize);
|
||||||
return getDataTable(rescueInfos);
|
IPage<RescueInfo> rescueInfos = rescueInfoService.getKcList(rescueInfo, page);
|
||||||
|
return success(rescueInfos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -234,11 +235,12 @@ public class RescueInfoController extends BaseController {
|
|||||||
* 获取扣车订单
|
* 获取扣车订单
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getHcList")
|
@GetMapping("/getHcList")
|
||||||
public TableDataInfo getHcList(RescueInfo rescueInfo) {
|
public CommonResult getHcList(RescueInfo rescueInfo,
|
||||||
|
@RequestParam(value = "pageNum", defaultValue = "1")Integer pageNum,
|
||||||
startPage();
|
@RequestParam(value = "pageSize", defaultValue = "10")Integer pageSize) {
|
||||||
List<RescueInfo> rescueInfos = rescueInfoService.getHcList(rescueInfo);
|
Page<RescueInfo> page = new Page<>(pageNum, pageSize);
|
||||||
return getDataTable(rescueInfos);
|
IPage<RescueInfo> rescueInfos = rescueInfoService.getHcList(rescueInfo, page);
|
||||||
|
return success(rescueInfos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -159,7 +159,7 @@ public class SysLoginController {
|
|||||||
// * @return 结果
|
// * @return 结果
|
||||||
// */
|
// */
|
||||||
// @PostMapping("/loginSmsCode")
|
// @PostMapping("/loginSmsCode")
|
||||||
// public AjaxResult loginSmsCode(String phone) {
|
// public CommonResult loginSmsCode(String phone) {
|
||||||
// return loginService.loginSmsCode(phone);
|
// return loginService.loginSmsCode(phone);
|
||||||
// }
|
// }
|
||||||
/**
|
/**
|
||||||
|
@ -44,7 +44,7 @@ public interface RescueInfoMapper extends BaseMapper<RescueInfo>
|
|||||||
* @return 【请填写功能名称】集合
|
* @return 【请填写功能名称】集合
|
||||||
*/
|
*/
|
||||||
IPage<RescueInfo> selectRescueInfoListApp(@Param("map") RescueInfo rescueInfo, Page<RescueInfo> page);
|
IPage<RescueInfo> selectRescueInfoListApp(@Param("map") RescueInfo rescueInfo, Page<RescueInfo> page);
|
||||||
List<RescueInfo> getKcList(RescueInfo rescueInfo);
|
IPage<RescueInfo> getKcList(@Param("map") RescueInfo rescueInfo, Page<RescueInfo> page);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,8 +39,8 @@ public interface IRescueInfoService extends IService<RescueInfo>
|
|||||||
* @return 【请填写功能名称】集合
|
* @return 【请填写功能名称】集合
|
||||||
*/
|
*/
|
||||||
IPage<RescueInfo> selectRescueInfoList(RescueInfo rescueInfo, Page<RescueInfo> page);
|
IPage<RescueInfo> selectRescueInfoList(RescueInfo rescueInfo, Page<RescueInfo> page);
|
||||||
List<RescueInfo> getKcList(RescueInfo rescueInfo);
|
IPage<RescueInfo> getKcList(RescueInfo rescueInfo, Page<RescueInfo> page);
|
||||||
List<RescueInfo> getHcList(RescueInfo rescueInfo);
|
IPage<RescueInfo> getHcList(RescueInfo rescueInfo, Page<RescueInfo> page);
|
||||||
|
|
||||||
void openKc(Long rescueId) throws Exception;
|
void openKc(Long rescueId) throws Exception;
|
||||||
|
|
||||||
|
@ -144,15 +144,15 @@ public class RescueInfoServiceImpl extends ServiceImpl<RescueInfoMapper, RescueI
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<RescueInfo> getKcList(RescueInfo rescueInfo) {
|
public IPage<RescueInfo> getKcList(RescueInfo rescueInfo, Page<RescueInfo> page) {
|
||||||
Long deptId = getLoginUserDeptId();
|
Long deptId = getLoginUserDeptId();
|
||||||
rescueInfo.setDeptId(deptId);
|
rescueInfo.setDeptId(deptId);
|
||||||
List<RescueInfo> rescueInfos = baseMapper.getKcList(rescueInfo);
|
IPage<RescueInfo> rescueInfos = baseMapper.getKcList(rescueInfo, page);
|
||||||
return rescueInfos;
|
return rescueInfos;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<RescueInfo> getHcList(RescueInfo rescueInfo) {
|
public IPage<RescueInfo> getHcList(RescueInfo rescueInfo, Page<RescueInfo> page) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,18 +164,18 @@
|
|||||||
resultType="cn.iocoder.yudao.module.rescue.domain.RescueInfo">
|
resultType="cn.iocoder.yudao.module.rescue.domain.RescueInfo">
|
||||||
select * from rescue_info ri
|
select * from rescue_info ri
|
||||||
<where>
|
<where>
|
||||||
dept_id = #{deptId} and rescue_type = '5'
|
dept_id = #{map.deptId} and rescue_type = '5'
|
||||||
<if test="connectionName != null and connectionName != ''">
|
<if test="map.connectionName != null and map.connectionName != ''">
|
||||||
and (connection_name like concat('%', #{connectionName}, '%') or connection_phone like concat('%',
|
and (connection_name like concat('%', #{map.connectionName}, '%') or connection_phone like concat('%',
|
||||||
#{connectionPhone}, '%') or license_num like concat('%',#{licenseNum}, '%'))
|
#{map.connectionPhone}, '%') or license_num like concat('%',#{map.licenseNum}, '%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="rescueStatus != null ">
|
<if test="map.rescueStatus != null ">
|
||||||
<choose>
|
<choose>
|
||||||
<when test="rescueStatus == '1'.toString()">
|
<when test="map.rescueStatus == '1'.toString()">
|
||||||
<!-- 扣车中 -->
|
<!-- 扣车中 -->
|
||||||
and rescue_status <![CDATA[<]]> '6'
|
and rescue_status <![CDATA[<]]> '6'
|
||||||
</when>
|
</when>
|
||||||
<when test="rescueStatus == '2'.toString()">
|
<when test="map.rescueStatus == '2'.toString()">
|
||||||
<!-- 已解 -->
|
<!-- 已解 -->
|
||||||
and rescue_status <![CDATA[>=]]> '6'
|
and rescue_status <![CDATA[>=]]> '6'
|
||||||
</when>
|
</when>
|
||||||
|
Loading…
Reference in New Issue
Block a user