保后管理状态查询

master
shijie 4 years ago
parent 57969d8660
commit fc1c1be218
  1. 5
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/AlInsuranceListController.java
  2. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/AlInsuranceListMapper.java
  3. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IAlInsuranceListService.java
  4. 4
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/AlInsuranceListServiceImpl.java
  5. 6
      dq-financial-guarantee/src/main/resources/mapper/guarantee/AlInsuranceListMapper.xml

@ -42,9 +42,10 @@ public class AlInsuranceListController {
@GetMapping("/insuranceList")
@ApiOperation(value = "保后管理列表")
public ResponseResult insuranceList(@RequestParam(value="page",required=false) Integer page, @RequestParam(value="size",required=false) Integer size,
@RequestParam(value = "CustomerNumberOrName", required = false) String CustomerNumberOrName){
@RequestParam(value = "CustomerNumberOrName", required = false) String CustomerNumberOrName,
@RequestParam(value = "paymentStatus", required = false) Integer paymentStatus){
PageUtils data = alInsuranceListService.queryPage(page, size, CustomerNumberOrName);
PageUtils data = alInsuranceListService.queryPage(page, size, CustomerNumberOrName, paymentStatus);
return new ResponseResult<PageUtils>().SUCCESS(data);
}

@ -20,7 +20,7 @@ import java.util.List;
@Mapper
public interface AlInsuranceListMapper extends BaseMapper<AlInsuranceList> {
IPage<AlInsuranceListRes> pageByCondition(Page page, String customerNumberOrName);
IPage<AlInsuranceListRes> pageByCondition(Page page, String customerNumberOrName,Integer paymentStatus);
List<AlInsuranceListRes> selectListByIds(List<String> ids);
}

@ -19,7 +19,7 @@ import java.util.List;
*/
public interface IAlInsuranceListService extends IService<AlInsuranceList> {
PageUtils queryPage(Integer page, Integer size, String customerNumberOrName);
PageUtils queryPage(Integer page, Integer size, String customerNumberOrName,Integer paymentStatus);
AlInsuranceListRes insuranceDetail(Integer id);

@ -40,7 +40,7 @@ public class AlInsuranceListServiceImpl extends ServiceImpl<AlInsuranceListMappe
@Autowired
private AlRepaymentEntryMapper alRepaymentEntryMapper;
@Override
public PageUtils queryPage(Integer page, Integer size, String customerNumberOrName) {
public PageUtils queryPage(Integer page, Integer size, String customerNumberOrName, Integer paymentStatus) {
//分页参数
if (page <= 0) {
page = 1;
@ -48,7 +48,7 @@ public class AlInsuranceListServiceImpl extends ServiceImpl<AlInsuranceListMappe
if (size <= 0) {
size = 10;
}
IPage<AlInsuranceListRes> positionVO = this.getBaseMapper().pageByCondition(new Page(page, size),customerNumberOrName);
IPage<AlInsuranceListRes> positionVO = this.getBaseMapper().pageByCondition(new Page(page, size),customerNumberOrName,paymentStatus);
return new PageUtils(positionVO);
}

@ -26,9 +26,11 @@
<select id="pageByCondition" resultType="com.daqing.financial.guarantee.model.response.AlInsuranceListRes">
select * from al_insurance_list
<where>
<if test="paymentStatus != null">
payment_status = #{paymentStatus}
</if>
<if test="customerNumberOrName != null and customerNumberOrName != ''">
(business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR customer_name LIKE CONCAT('%',#{customerNumberOrName},'%'))
AND (business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR customer_name LIKE CONCAT('%',#{customerNumberOrName},'%'))
</if>
</where>
order by create_time desc

Loading…
Cancel
Save