18 changed files with 1028 additions and 0 deletions
@ -0,0 +1,85 @@ |
|||||
|
package com.epmet.resi.partymember.dto.partymember; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcPartyMemberPayRecordDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 唯一标识 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id (customer.id) |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 党员ID |
||||
|
*/ |
||||
|
private String partyMemberId; |
||||
|
|
||||
|
/** |
||||
|
* 缴费日期 |
||||
|
*/ |
||||
|
private String payDate; |
||||
|
|
||||
|
/** |
||||
|
* 缴费金额 |
||||
|
*/ |
||||
|
private BigDecimal money; |
||||
|
|
||||
|
/** |
||||
|
* 缴费开始时间 |
||||
|
*/ |
||||
|
private String startDate; |
||||
|
|
||||
|
/** |
||||
|
* 缴费结束时间 |
||||
|
*/ |
||||
|
private String endDate; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
package com.epmet.resi.partymember.dto.partymember; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcPartyMemberPayRecordDetailDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 唯一标识 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id (customer.id) |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 党员ID |
||||
|
*/ |
||||
|
private String partyMemberId; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表ID |
||||
|
*/ |
||||
|
private String recordId; |
||||
|
|
||||
|
/** |
||||
|
* 缴费年度 |
||||
|
*/ |
||||
|
private String year; |
||||
|
|
||||
|
/** |
||||
|
* 缴费季度 |
||||
|
*/ |
||||
|
private String quarter; |
||||
|
|
||||
|
/** |
||||
|
* 缴费金额 |
||||
|
*/ |
||||
|
private BigDecimal money; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
@ -0,0 +1,82 @@ |
|||||
|
package com.epmet.modules.partymember.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ExcelUtils; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.AssertUtils; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.epmet.modules.partymember.excel.IcPartyMemberPayRecordExcel; |
||||
|
import com.epmet.modules.partymember.service.IcPartyMemberPayRecordService; |
||||
|
import com.epmet.resi.partymember.dto.partymember.IcPartyMemberPayRecordDTO; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("icPartyMemberPayRecord") |
||||
|
public class IcPartyMemberPayRecordController { |
||||
|
|
||||
|
@Autowired |
||||
|
private IcPartyMemberPayRecordService icPartyMemberPayRecordService; |
||||
|
|
||||
|
@RequestMapping("page") |
||||
|
public Result<PageData<IcPartyMemberPayRecordDTO>> page(@RequestParam Map<String, Object> params){ |
||||
|
PageData<IcPartyMemberPayRecordDTO> page = icPartyMemberPayRecordService.page(params); |
||||
|
return new Result<PageData<IcPartyMemberPayRecordDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
@RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) |
||||
|
public Result<IcPartyMemberPayRecordDTO> get(@PathVariable("id") String id){ |
||||
|
IcPartyMemberPayRecordDTO data = icPartyMemberPayRecordService.get(id); |
||||
|
return new Result<IcPartyMemberPayRecordDTO>().ok(data); |
||||
|
} |
||||
|
|
||||
|
@NoRepeatSubmit |
||||
|
@PostMapping("save") |
||||
|
public Result save(@RequestBody IcPartyMemberPayRecordDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
||||
|
icPartyMemberPayRecordService.save(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@NoRepeatSubmit |
||||
|
@PostMapping("update") |
||||
|
public Result update(@RequestBody IcPartyMemberPayRecordDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
||||
|
icPartyMemberPayRecordService.update(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@PostMapping("delete") |
||||
|
public Result delete(@RequestBody String[] ids){ |
||||
|
//效验数据
|
||||
|
AssertUtils.isArrayEmpty(ids, "id"); |
||||
|
icPartyMemberPayRecordService.delete(ids); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("export") |
||||
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
||||
|
List<IcPartyMemberPayRecordDTO> list = icPartyMemberPayRecordService.list(params); |
||||
|
ExcelUtils.exportExcelToTarget(response, null, list, IcPartyMemberPayRecordExcel.class); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,82 @@ |
|||||
|
package com.epmet.modules.partymember.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ExcelUtils; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.AssertUtils; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.epmet.modules.partymember.excel.IcPartyMemberPayRecordDetailExcel; |
||||
|
import com.epmet.modules.partymember.service.IcPartyMemberPayRecordDetailService; |
||||
|
import com.epmet.resi.partymember.dto.partymember.IcPartyMemberPayRecordDetailDTO; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("icPartyMemberPayRecordDetail") |
||||
|
public class IcPartyMemberPayRecordDetailController { |
||||
|
|
||||
|
@Autowired |
||||
|
private IcPartyMemberPayRecordDetailService icPartyMemberPayRecordDetailService; |
||||
|
|
||||
|
@RequestMapping("page") |
||||
|
public Result<PageData<IcPartyMemberPayRecordDetailDTO>> page(@RequestParam Map<String, Object> params){ |
||||
|
PageData<IcPartyMemberPayRecordDetailDTO> page = icPartyMemberPayRecordDetailService.page(params); |
||||
|
return new Result<PageData<IcPartyMemberPayRecordDetailDTO>>().ok(page); |
||||
|
} |
||||
|
|
||||
|
@RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) |
||||
|
public Result<IcPartyMemberPayRecordDetailDTO> get(@PathVariable("id") String id){ |
||||
|
IcPartyMemberPayRecordDetailDTO data = icPartyMemberPayRecordDetailService.get(id); |
||||
|
return new Result<IcPartyMemberPayRecordDetailDTO>().ok(data); |
||||
|
} |
||||
|
|
||||
|
@NoRepeatSubmit |
||||
|
@PostMapping("save") |
||||
|
public Result save(@RequestBody IcPartyMemberPayRecordDetailDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
||||
|
icPartyMemberPayRecordDetailService.save(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@NoRepeatSubmit |
||||
|
@PostMapping("update") |
||||
|
public Result update(@RequestBody IcPartyMemberPayRecordDetailDTO dto){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
||||
|
icPartyMemberPayRecordDetailService.update(dto); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@PostMapping("delete") |
||||
|
public Result delete(@RequestBody String[] ids){ |
||||
|
//效验数据
|
||||
|
AssertUtils.isArrayEmpty(ids, "id"); |
||||
|
icPartyMemberPayRecordDetailService.delete(ids); |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("export") |
||||
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
||||
|
List<IcPartyMemberPayRecordDetailDTO> list = icPartyMemberPayRecordDetailService.list(params); |
||||
|
ExcelUtils.exportExcelToTarget(response, null, list, IcPartyMemberPayRecordDetailExcel.class); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.epmet.modules.partymember.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.modules.partymember.entity.IcPartyMemberPayRecordEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface IcPartyMemberPayRecordDao extends BaseDao<IcPartyMemberPayRecordEntity> { |
||||
|
|
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.epmet.modules.partymember.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.modules.partymember.entity.IcPartyMemberPayRecordDetailEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface IcPartyMemberPayRecordDetailDao extends BaseDao<IcPartyMemberPayRecordDetailEntity> { |
||||
|
|
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
package com.epmet.modules.partymember.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("ic_party_member_pay_record_detail") |
||||
|
public class IcPartyMemberPayRecordDetailEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id (customer.id) |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 党员ID |
||||
|
*/ |
||||
|
private String partyMemberId; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表ID |
||||
|
*/ |
||||
|
private String recordId; |
||||
|
|
||||
|
/** |
||||
|
* 缴费年度 |
||||
|
*/ |
||||
|
private String year; |
||||
|
|
||||
|
/** |
||||
|
* 缴费季度 |
||||
|
*/ |
||||
|
private String quarter; |
||||
|
|
||||
|
/** |
||||
|
* 缴费金额 |
||||
|
*/ |
||||
|
private BigDecimal money; |
||||
|
|
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
package com.epmet.modules.partymember.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("ic_party_member_pay_record") |
||||
|
public class IcPartyMemberPayRecordEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id (customer.id) |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 党员ID |
||||
|
*/ |
||||
|
private String partyMemberId; |
||||
|
|
||||
|
/** |
||||
|
* 缴费日期 |
||||
|
*/ |
||||
|
private String payDate; |
||||
|
|
||||
|
/** |
||||
|
* 缴费金额 |
||||
|
*/ |
||||
|
private BigDecimal money; |
||||
|
|
||||
|
/** |
||||
|
* 缴费开始时间 |
||||
|
*/ |
||||
|
private String startDate; |
||||
|
|
||||
|
/** |
||||
|
* 缴费结束时间 |
||||
|
*/ |
||||
|
private String endDate; |
||||
|
|
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
package com.epmet.modules.partymember.excel; |
||||
|
|
||||
|
import cn.afterturn.easypoi.excel.annotation.Excel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcPartyMemberPayRecordDetailExcel { |
||||
|
|
||||
|
@Excel(name = "唯一标识") |
||||
|
private String id; |
||||
|
|
||||
|
@Excel(name = "客户Id (customer.id)") |
||||
|
private String customerId; |
||||
|
|
||||
|
@Excel(name = "党员ID") |
||||
|
private String partyMemberId; |
||||
|
|
||||
|
@Excel(name = "党员缴费记录表ID") |
||||
|
private String recordId; |
||||
|
|
||||
|
@Excel(name = "缴费年度") |
||||
|
private String year; |
||||
|
|
||||
|
@Excel(name = "缴费季度") |
||||
|
private String quarter; |
||||
|
|
||||
|
@Excel(name = "缴费金额") |
||||
|
private BigDecimal money; |
||||
|
|
||||
|
@Excel(name = "删除标识:0.未删除 1.已删除") |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
@Excel(name = "乐观锁") |
||||
|
private Integer revision; |
||||
|
|
||||
|
@Excel(name = "创建人") |
||||
|
private String createdBy; |
||||
|
|
||||
|
@Excel(name = "创建时间") |
||||
|
private Date createdTime; |
||||
|
|
||||
|
@Excel(name = "更新人") |
||||
|
private String updatedBy; |
||||
|
|
||||
|
@Excel(name = "更新时间") |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
package com.epmet.modules.partymember.excel; |
||||
|
|
||||
|
import cn.afterturn.easypoi.excel.annotation.Excel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcPartyMemberPayRecordExcel { |
||||
|
|
||||
|
@Excel(name = "唯一标识") |
||||
|
private String id; |
||||
|
|
||||
|
@Excel(name = "客户Id (customer.id)") |
||||
|
private String customerId; |
||||
|
|
||||
|
@Excel(name = "党员ID") |
||||
|
private String partyMemberId; |
||||
|
|
||||
|
@Excel(name = "缴费日期") |
||||
|
private String payDate; |
||||
|
|
||||
|
@Excel(name = "缴费金额") |
||||
|
private BigDecimal money; |
||||
|
|
||||
|
@Excel(name = "缴费开始时间") |
||||
|
private String startDate; |
||||
|
|
||||
|
@Excel(name = "缴费结束时间") |
||||
|
private String endDate; |
||||
|
|
||||
|
@Excel(name = "删除标识:0.未删除 1.已删除") |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
@Excel(name = "乐观锁") |
||||
|
private Integer revision; |
||||
|
|
||||
|
@Excel(name = "创建人") |
||||
|
private String createdBy; |
||||
|
|
||||
|
@Excel(name = "创建时间") |
||||
|
private Date createdTime; |
||||
|
|
||||
|
@Excel(name = "更新人") |
||||
|
private String updatedBy; |
||||
|
|
||||
|
@Excel(name = "更新时间") |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.modules.partymember.redis; |
||||
|
|
||||
|
import com.epmet.commons.tools.redis.RedisUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class IcPartyMemberPayRecordDetailRedis { |
||||
|
@Autowired |
||||
|
private RedisUtils redisUtils; |
||||
|
|
||||
|
public void delete(Object[] ids) { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public void set(){ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public String get(String id){ |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.modules.partymember.redis; |
||||
|
|
||||
|
import com.epmet.commons.tools.redis.RedisUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class IcPartyMemberPayRecordRedis { |
||||
|
@Autowired |
||||
|
private RedisUtils redisUtils; |
||||
|
|
||||
|
public void delete(Object[] ids) { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public void set(){ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public String get(String id){ |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
package com.epmet.modules.partymember.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.modules.partymember.entity.IcPartyMemberPayRecordDetailEntity; |
||||
|
import com.epmet.resi.partymember.dto.partymember.IcPartyMemberPayRecordDetailDTO; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
public interface IcPartyMemberPayRecordDetailService extends BaseService<IcPartyMemberPayRecordDetailEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<IcPartyMemberPayRecordDetailDTO> |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
PageData<IcPartyMemberPayRecordDetailDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<IcPartyMemberPayRecordDetailDTO> |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
List<IcPartyMemberPayRecordDetailDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return IcPartyMemberPayRecordDetailDTO |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
IcPartyMemberPayRecordDetailDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
void save(IcPartyMemberPayRecordDetailDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
void update(IcPartyMemberPayRecordDetailDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
package com.epmet.modules.partymember.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.modules.partymember.entity.IcPartyMemberPayRecordEntity; |
||||
|
import com.epmet.resi.partymember.dto.partymember.IcPartyMemberPayRecordDTO; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
public interface IcPartyMemberPayRecordService extends BaseService<IcPartyMemberPayRecordEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 默认分页 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return PageData<IcPartyMemberPayRecordDTO> |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
PageData<IcPartyMemberPayRecordDTO> page(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 默认查询 |
||||
|
* |
||||
|
* @param params |
||||
|
* @return java.util.List<IcPartyMemberPayRecordDTO> |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
List<IcPartyMemberPayRecordDTO> list(Map<String, Object> params); |
||||
|
|
||||
|
/** |
||||
|
* 单条查询 |
||||
|
* |
||||
|
* @param id |
||||
|
* @return IcPartyMemberPayRecordDTO |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
IcPartyMemberPayRecordDTO get(String id); |
||||
|
|
||||
|
/** |
||||
|
* 默认保存 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
void save(IcPartyMemberPayRecordDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 默认更新 |
||||
|
* |
||||
|
* @param dto |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
void update(IcPartyMemberPayRecordDTO dto); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除 |
||||
|
* |
||||
|
* @param ids |
||||
|
* @return void |
||||
|
* @author generator |
||||
|
* @date 2022-05-17 |
||||
|
*/ |
||||
|
void delete(String[] ids); |
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
package com.epmet.modules.partymember.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.modules.partymember.dao.IcPartyMemberPayRecordDetailDao; |
||||
|
import com.epmet.modules.partymember.entity.IcPartyMemberPayRecordDetailEntity; |
||||
|
import com.epmet.modules.partymember.redis.IcPartyMemberPayRecordDetailRedis; |
||||
|
import com.epmet.modules.partymember.service.IcPartyMemberPayRecordDetailService; |
||||
|
import com.epmet.resi.partymember.dto.partymember.IcPartyMemberPayRecordDetailDTO; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录明细表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class IcPartyMemberPayRecordDetailServiceImpl extends BaseServiceImpl<IcPartyMemberPayRecordDetailDao, IcPartyMemberPayRecordDetailEntity> implements IcPartyMemberPayRecordDetailService { |
||||
|
|
||||
|
@Autowired |
||||
|
private IcPartyMemberPayRecordDetailRedis icPartyMemberPayRecordDetailRedis; |
||||
|
|
||||
|
@Override |
||||
|
public PageData<IcPartyMemberPayRecordDetailDTO> page(Map<String, Object> params) { |
||||
|
IPage<IcPartyMemberPayRecordDetailEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, IcPartyMemberPayRecordDetailDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<IcPartyMemberPayRecordDetailDTO> list(Map<String, Object> params) { |
||||
|
List<IcPartyMemberPayRecordDetailEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, IcPartyMemberPayRecordDetailDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<IcPartyMemberPayRecordDetailEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<IcPartyMemberPayRecordDetailEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public IcPartyMemberPayRecordDetailDTO get(String id) { |
||||
|
IcPartyMemberPayRecordDetailEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, IcPartyMemberPayRecordDetailDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(IcPartyMemberPayRecordDetailDTO dto) { |
||||
|
IcPartyMemberPayRecordDetailEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyMemberPayRecordDetailEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(IcPartyMemberPayRecordDetailDTO dto) { |
||||
|
IcPartyMemberPayRecordDetailEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyMemberPayRecordDetailEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
package com.epmet.modules.partymember.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.page.PageData; |
||||
|
import com.epmet.commons.tools.utils.ConvertUtils; |
||||
|
import com.epmet.commons.tools.constant.FieldConstant; |
||||
|
import com.epmet.modules.partymember.dao.IcPartyMemberPayRecordDao; |
||||
|
import com.epmet.modules.partymember.entity.IcPartyMemberPayRecordEntity; |
||||
|
import com.epmet.modules.partymember.redis.IcPartyMemberPayRecordRedis; |
||||
|
import com.epmet.modules.partymember.service.IcPartyMemberPayRecordService; |
||||
|
import com.epmet.resi.partymember.dto.partymember.IcPartyMemberPayRecordDTO; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* 党员缴费记录表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2022-05-17 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class IcPartyMemberPayRecordServiceImpl extends BaseServiceImpl<IcPartyMemberPayRecordDao, IcPartyMemberPayRecordEntity> implements IcPartyMemberPayRecordService { |
||||
|
|
||||
|
@Autowired |
||||
|
private IcPartyMemberPayRecordRedis icPartyMemberPayRecordRedis; |
||||
|
|
||||
|
@Override |
||||
|
public PageData<IcPartyMemberPayRecordDTO> page(Map<String, Object> params) { |
||||
|
IPage<IcPartyMemberPayRecordEntity> page = baseDao.selectPage( |
||||
|
getPage(params, FieldConstant.CREATED_TIME, false), |
||||
|
getWrapper(params) |
||||
|
); |
||||
|
return getPageData(page, IcPartyMemberPayRecordDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<IcPartyMemberPayRecordDTO> list(Map<String, Object> params) { |
||||
|
List<IcPartyMemberPayRecordEntity> entityList = baseDao.selectList(getWrapper(params)); |
||||
|
|
||||
|
return ConvertUtils.sourceToTarget(entityList, IcPartyMemberPayRecordDTO.class); |
||||
|
} |
||||
|
|
||||
|
private QueryWrapper<IcPartyMemberPayRecordEntity> getWrapper(Map<String, Object> params){ |
||||
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
||||
|
|
||||
|
QueryWrapper<IcPartyMemberPayRecordEntity> wrapper = new QueryWrapper<>(); |
||||
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
||||
|
|
||||
|
return wrapper; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public IcPartyMemberPayRecordDTO get(String id) { |
||||
|
IcPartyMemberPayRecordEntity entity = baseDao.selectById(id); |
||||
|
return ConvertUtils.sourceToTarget(entity, IcPartyMemberPayRecordDTO.class); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void save(IcPartyMemberPayRecordDTO dto) { |
||||
|
IcPartyMemberPayRecordEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyMemberPayRecordEntity.class); |
||||
|
insert(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void update(IcPartyMemberPayRecordDTO dto) { |
||||
|
IcPartyMemberPayRecordEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyMemberPayRecordEntity.class); |
||||
|
updateById(entity); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@Transactional(rollbackFor = Exception.class) |
||||
|
public void delete(String[] ids) { |
||||
|
// 逻辑删除(@TableLogic 注解)
|
||||
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
<?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.epmet.modules.partymember.dao.IcPartyMemberPayRecordDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.modules.partymember.entity.IcPartyMemberPayRecordEntity" id="icPartyMemberPayRecordMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="partyMemberId" column="PARTY_MEMBER_ID"/> |
||||
|
<result property="payDate" column="PAY_DATE"/> |
||||
|
<result property="money" column="MONEY"/> |
||||
|
<result property="startDate" column="START_DATE"/> |
||||
|
<result property="endDate" column="END_DATE"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,23 @@ |
|||||
|
<?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.epmet.modules.partymember.dao.IcPartyMemberPayRecordDetailDao"> |
||||
|
|
||||
|
<resultMap type="com.epmet.modules.partymember.entity.IcPartyMemberPayRecordDetailEntity" id="icPartyMemberPayRecordDetailMap"> |
||||
|
<result property="id" column="ID"/> |
||||
|
<result property="customerId" column="CUSTOMER_ID"/> |
||||
|
<result property="partyMemberId" column="PARTY_MEMBER_ID"/> |
||||
|
<result property="recordId" column="RECORD_ID"/> |
||||
|
<result property="year" column="YEAR"/> |
||||
|
<result property="quarter" column="QUARTER"/> |
||||
|
<result property="money" column="MONEY"/> |
||||
|
<result property="delFlag" column="DEL_FLAG"/> |
||||
|
<result property="revision" column="REVISION"/> |
||||
|
<result property="createdBy" column="CREATED_BY"/> |
||||
|
<result property="createdTime" column="CREATED_TIME"/> |
||||
|
<result property="updatedBy" column="UPDATED_BY"/> |
||||
|
<result property="updatedTime" column="UPDATED_TIME"/> |
||||
|
</resultMap> |
||||
|
|
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue