23 changed files with 932 additions and 3 deletions
@ -0,0 +1,90 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import java.util.Date; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
/** |
||||
* 客户基础保价表 实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@Data |
||||
@TableName("logpm_basicdata_support_value") |
||||
@ApiModel(value = "BasicdataSupportValue对象", description = "客户基础保价表") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class BasicdataSupportValueEntity extends TenantEntity { |
||||
|
||||
/** |
||||
* 收货用户名称 |
||||
*/ |
||||
@ApiModelProperty(value = "收货用户名称") |
||||
private String userName; |
||||
/** |
||||
* 保费率 |
||||
*/ |
||||
@ApiModelProperty(value = "保费率") |
||||
private Integer premiumRate; |
||||
/** |
||||
* 收货用户地址 |
||||
*/ |
||||
@ApiModelProperty(value = "收货用户地址") |
||||
private String userAdderss; |
||||
/** |
||||
* 收货用户电话 |
||||
*/ |
||||
@ApiModelProperty(value = "收货用户电话") |
||||
private String userPhone; |
||||
/** |
||||
* 预留1 |
||||
*/ |
||||
@ApiModelProperty(value = "预留1") |
||||
private String reserve1; |
||||
/** |
||||
* 预留2 |
||||
*/ |
||||
@ApiModelProperty(value = "预留2") |
||||
private String reserve2; |
||||
/** |
||||
* 预留3 |
||||
*/ |
||||
@ApiModelProperty(value = "预留3") |
||||
private String reserve3; |
||||
/** |
||||
* 预留4 |
||||
*/ |
||||
@ApiModelProperty(value = "预留4") |
||||
private String reserve4; |
||||
/** |
||||
* 预留5 |
||||
*/ |
||||
@ApiModelProperty(value = "预留5") |
||||
private String reserve5; |
||||
/** |
||||
* 客户ID(结算对象) |
||||
*/ |
||||
@ApiModelProperty(value = "客户ID(结算对象)") |
||||
private String clientId; |
||||
|
||||
} |
@ -0,0 +1,49 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.feign; |
||||
|
||||
import org.springblade.core.mp.support.BladePage; |
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
||||
/** |
||||
* 客户基础保价表 Feign接口类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@FeignClient( |
||||
value = "blade-basicdataSupportValue" |
||||
) |
||||
public interface IBasicdataSupportValueClient { |
||||
|
||||
String API_PREFIX = "/client"; |
||||
String TOP = API_PREFIX + "/top2314"; |
||||
|
||||
/** |
||||
* 获取客户基础保价表列表 |
||||
* |
||||
* @param current 页号 |
||||
* @param size 页数 |
||||
* @return BladePage |
||||
*/ |
||||
@GetMapping(TOP) |
||||
BladePage<BasicdataSupportValueEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
||||
|
||||
} |
@ -0,0 +1,35 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.vo; |
||||
|
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import org.springblade.core.tool.node.INode; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 客户基础保价表 视图实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class BasicdataSupportValueVO extends BasicdataSupportValueEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,150 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.controller; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import javax.validation.Valid; |
||||
|
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import com.logpm.basicdata.vo.BasicdataSupportValueVO; |
||||
import com.logpm.basicdata.excel.BasicdataSupportValueExcel; |
||||
import com.logpm.basicdata.service.IBasicdataSupportValueService; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.tool.constant.BladeConstant; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
import java.util.Map; |
||||
import java.util.List; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
|
||||
/** |
||||
* 客户基础保价表 控制器 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/basicdataSupportValue") |
||||
@Api(value = "客户基础保价表", tags = "客户基础保价表接口") |
||||
public class BasicdataSupportValueController extends BladeController { |
||||
|
||||
private final IBasicdataSupportValueService basicdataSupportValueService; |
||||
|
||||
/** |
||||
* 客户基础保价表 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入basicdataSupportValue") |
||||
public R<BasicdataSupportValueEntity> detail(BasicdataSupportValueEntity basicdataSupportValue) { |
||||
BasicdataSupportValueEntity detail = basicdataSupportValueService.getOne(Condition.getQueryWrapper(basicdataSupportValue)); |
||||
return R.data(detail); |
||||
} |
||||
/** |
||||
* 客户基础保价表 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入basicdataSupportValue") |
||||
public R<IPage<BasicdataSupportValueEntity>> list(@ApiIgnore @RequestParam Map<String, Object> basicdataSupportValue, Query query) { |
||||
IPage<BasicdataSupportValueEntity> pages = basicdataSupportValueService.page(Condition.getPage(query), Condition.getQueryWrapper(basicdataSupportValue, BasicdataSupportValueEntity.class)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 客户基础保价表 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入basicdataSupportValue") |
||||
public R<IPage<BasicdataSupportValueVO>> page(BasicdataSupportValueVO basicdataSupportValue, Query query) { |
||||
IPage<BasicdataSupportValueVO> pages = basicdataSupportValueService.selectBasicdataSupportValuePage(Condition.getPage(query), basicdataSupportValue); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 客户基础保价表 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入basicdataSupportValue") |
||||
public R save(@Valid @RequestBody BasicdataSupportValueEntity basicdataSupportValue) { |
||||
return R.status(basicdataSupportValueService.save(basicdataSupportValue)); |
||||
} |
||||
|
||||
/** |
||||
* 客户基础保价表 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入basicdataSupportValue") |
||||
public R update(@Valid @RequestBody BasicdataSupportValueEntity basicdataSupportValue) { |
||||
return R.status(basicdataSupportValueService.updateById(basicdataSupportValue)); |
||||
} |
||||
|
||||
/** |
||||
* 客户基础保价表 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入basicdataSupportValue") |
||||
public R submit(@Valid @RequestBody BasicdataSupportValueEntity basicdataSupportValue) { |
||||
return R.status(basicdataSupportValueService.saveOrUpdate(basicdataSupportValue)); |
||||
} |
||||
|
||||
/** |
||||
* 客户基础保价表 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(basicdataSupportValueService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@GetMapping("/export-basicdataSupportValue") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "导出数据", notes = "传入basicdataSupportValue") |
||||
public void exportBasicdataSupportValue(@ApiIgnore @RequestParam Map<String, Object> basicdataSupportValue, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<BasicdataSupportValueEntity> queryWrapper = Condition.getQueryWrapper(basicdataSupportValue, BasicdataSupportValueEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(BasicdataSupportValue::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
queryWrapper.lambda().eq(BasicdataSupportValueEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||
List<BasicdataSupportValueExcel> list = basicdataSupportValueService.exportBasicdataSupportValue(queryWrapper); |
||||
ExcelUtil.export(response, "客户基础保价表数据" + DateUtil.time(), "客户基础保价表数据表", list, BasicdataSupportValueExcel.class); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,34 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.dto; |
||||
|
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 客户基础保价表 数据传输对象实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class BasicdataSupportValueDTO extends BasicdataSupportValueEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,117 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import java.io.Serializable; |
||||
|
||||
|
||||
/** |
||||
* 客户基础保价表 Excel实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class BasicdataSupportValueExcel implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 租户号 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("租户号") |
||||
private String tenantId; |
||||
/** |
||||
* 是否已删除 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否已删除") |
||||
private Integer isDeleted; |
||||
/** |
||||
* 收货用户名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("收货用户名称") |
||||
private String userName; |
||||
/** |
||||
* 保费率 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("保费率") |
||||
private Integer premiumRate; |
||||
/** |
||||
* 收货用户地址 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("收货用户地址") |
||||
private String userAdderss; |
||||
/** |
||||
* 收货用户电话 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("收货用户电话") |
||||
private String userPhone; |
||||
/** |
||||
* 预留1 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留1") |
||||
private String reserve1; |
||||
/** |
||||
* 预留2 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留2") |
||||
private String reserve2; |
||||
/** |
||||
* 预留3 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留3") |
||||
private String reserve3; |
||||
/** |
||||
* 预留4 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留4") |
||||
private String reserve4; |
||||
/** |
||||
* 预留5 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留5") |
||||
private String reserve5; |
||||
/** |
||||
* 客户ID(结算对象) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("客户ID(结算对象)") |
||||
private String clientId; |
||||
|
||||
} |
@ -0,0 +1,53 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.feign; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.mp.support.BladePage; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import com.logpm.basicdata.service.IBasicdataSupportValueService; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* 客户基础保价表 Feign实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class BasicdataSupportValueClient implements IBasicdataSupportValueClient { |
||||
|
||||
private final IBasicdataSupportValueService basicdataSupportValueService; |
||||
|
||||
@Override |
||||
@GetMapping(TOP) |
||||
public BladePage<BasicdataSupportValueEntity> top(Integer current, Integer size) { |
||||
Query query = new Query(); |
||||
query.setCurrent(current); |
||||
query.setSize(size); |
||||
IPage<BasicdataSupportValueEntity> page = basicdataSupportValueService.page(Condition.getPage(query)); |
||||
return BladePage.of(page); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,54 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.mapper; |
||||
|
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import com.logpm.basicdata.vo.BasicdataSupportValueVO; |
||||
import com.logpm.basicdata.excel.BasicdataSupportValueExcel; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 客户基础保价表 Mapper 接口 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
public interface BasicdataSupportValueMapper extends BaseMapper<BasicdataSupportValueEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param basicdataSupportValue |
||||
* @return |
||||
*/ |
||||
List<BasicdataSupportValueVO> selectBasicdataSupportValuePage(IPage page, BasicdataSupportValueVO basicdataSupportValue); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<BasicdataSupportValueExcel> exportBasicdataSupportValue(@Param("ew") Wrapper<BasicdataSupportValueEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.logpm.basicdata.mapper.BasicdataSupportValueMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="basicdataSupportValueResultMap" type="com.logpm.basicdata.entity.BasicdataSupportValueEntity"> |
||||
<result column="id" property="id"/> |
||||
<result column="tenant_id" property="tenantId"/> |
||||
<result column="create_user" property="createUser"/> |
||||
<result column="create_time" property="createTime"/> |
||||
<result column="update_user" property="updateUser"/> |
||||
<result column="update_time" property="updateTime"/> |
||||
<result column="status" property="status"/> |
||||
<result column="is_deleted" property="isDeleted"/> |
||||
<result column="create_dept" property="createDept"/> |
||||
<result column="user_name" property="userName"/> |
||||
<result column="premium_rate" property="premiumRate"/> |
||||
<result column="user_adderss" property="userAdderss"/> |
||||
<result column="user_phone" property="userPhone"/> |
||||
<result column="reserve1" property="reserve1"/> |
||||
<result column="reserve2" property="reserve2"/> |
||||
<result column="reserve3" property="reserve3"/> |
||||
<result column="reserve4" property="reserve4"/> |
||||
<result column="reserve5" property="reserve5"/> |
||||
<result column="client_id" property="clientId"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectBasicdataSupportValuePage" resultMap="basicdataSupportValueResultMap"> |
||||
select * from logpm_basicdata_support_value where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="exportBasicdataSupportValue" resultType="com.logpm.basicdata.excel.BasicdataSupportValueExcel"> |
||||
SELECT * FROM logpm_basicdata_support_value ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,52 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import com.logpm.basicdata.vo.BasicdataSupportValueVO; |
||||
import com.logpm.basicdata.excel.BasicdataSupportValueExcel; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 客户基础保价表 服务类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
public interface IBasicdataSupportValueService extends BaseService<BasicdataSupportValueEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param basicdataSupportValue |
||||
* @return |
||||
*/ |
||||
IPage<BasicdataSupportValueVO> selectBasicdataSupportValuePage(IPage<BasicdataSupportValueVO> page, BasicdataSupportValueVO basicdataSupportValue); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<BasicdataSupportValueExcel> exportBasicdataSupportValue(Wrapper<BasicdataSupportValueEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,54 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.service.impl; |
||||
|
||||
import com.logpm.basicdata.entity.BasicdataSupportValueEntity; |
||||
import com.logpm.basicdata.vo.BasicdataSupportValueVO; |
||||
import com.logpm.basicdata.excel.BasicdataSupportValueExcel; |
||||
import com.logpm.basicdata.mapper.BasicdataSupportValueMapper; |
||||
import com.logpm.basicdata.service.IBasicdataSupportValueService; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 客户基础保价表 服务实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-26 |
||||
*/ |
||||
@Service |
||||
public class BasicdataSupportValueServiceImpl extends BaseServiceImpl<BasicdataSupportValueMapper, BasicdataSupportValueEntity> implements IBasicdataSupportValueService { |
||||
|
||||
@Override |
||||
public IPage<BasicdataSupportValueVO> selectBasicdataSupportValuePage(IPage<BasicdataSupportValueVO> page, BasicdataSupportValueVO basicdataSupportValue) { |
||||
return page.setRecords(baseMapper.selectBasicdataSupportValuePage(page, basicdataSupportValue)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<BasicdataSupportValueExcel> exportBasicdataSupportValue(Wrapper<BasicdataSupportValueEntity> queryWrapper) { |
||||
List<BasicdataSupportValueExcel> basicdataSupportValueList = baseMapper.exportBasicdataSupportValue(queryWrapper); |
||||
//basicdataSupportValueList.forEach(basicdataSupportValue -> {
|
||||
// basicdataSupportValue.setTypeName(DictCache.getValue(DictEnum.YES_NO, BasicdataSupportValue.getType()));
|
||||
//});
|
||||
return basicdataSupportValueList; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue