forked from luyan/epmet-cloud-lingshan
				
			
				 9 changed files with 732 additions and 0 deletions
			
			
		@ -0,0 +1,164 @@ | 
				
			|||
package com.epmet.dto; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.Date; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 居民信息审核表 | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2022-06-01 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class IcResiUserConfirmDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 主键 | 
				
			|||
     */ | 
				
			|||
	private String id; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 客户Id customer.id | 
				
			|||
     */ | 
				
			|||
	private String customerId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 组织Id | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 组织的pids | 
				
			|||
     */ | 
				
			|||
	private String pids; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 网格ID | 
				
			|||
     */ | 
				
			|||
	private String gridId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 姓 | 
				
			|||
     */ | 
				
			|||
	private String surname; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 名 | 
				
			|||
     */ | 
				
			|||
	private String name; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 手机号 | 
				
			|||
     */ | 
				
			|||
	private String mobile; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 性别 | 
				
			|||
     */ | 
				
			|||
	private String gender; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 身份证号 | 
				
			|||
     */ | 
				
			|||
	private String idCard; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 出生日期 | 
				
			|||
     */ | 
				
			|||
	private String birthday; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 户籍所在地地区码 | 
				
			|||
     */ | 
				
			|||
	private String hjszdCode; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 户籍所在地 | 
				
			|||
     */ | 
				
			|||
	private String hjszd; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 现居住地地区码 | 
				
			|||
     */ | 
				
			|||
	private String xjzdCode; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 现居住地 | 
				
			|||
     */ | 
				
			|||
	private String xjzd; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 民族【字典表】 | 
				
			|||
     */ | 
				
			|||
	private String mz; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 与户主关系 | 
				
			|||
     */ | 
				
			|||
	private String yhzgx; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 审核状态0未审核,1审核通过,2审核不通过 | 
				
			|||
     */ | 
				
			|||
	private String confirmResult; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 审核不通过的原因 | 
				
			|||
     */ | 
				
			|||
	private String reason; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除标识 0.未删除 1.已删除 | 
				
			|||
     */ | 
				
			|||
	private Integer delFlag; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 乐观锁 | 
				
			|||
     */ | 
				
			|||
	private Integer revision; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建人 | 
				
			|||
     */ | 
				
			|||
	private String createdBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 创建时间 | 
				
			|||
     */ | 
				
			|||
	private Date createdTime; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新人 | 
				
			|||
     */ | 
				
			|||
	private String updatedBy; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 更新时间 | 
				
			|||
     */ | 
				
			|||
	private Date updatedTime; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * ic_resi_user表id | 
				
			|||
     */ | 
				
			|||
	private String icUserId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 操作类型:新增add 修改 update 删除 delete | 
				
			|||
     */ | 
				
			|||
	private String submitType; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除原因 | 
				
			|||
     */ | 
				
			|||
	private String deleteReason; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 操作说明 | 
				
			|||
     */ | 
				
			|||
	private String operationDescribe; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,82 @@ | 
				
			|||
package com.epmet.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.dto.IcResiUserConfirmDTO; | 
				
			|||
import com.epmet.excel.IcResiUserConfirmExcel; | 
				
			|||
import com.epmet.service.IcResiUserConfirmService; | 
				
			|||
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-06-01 | 
				
			|||
 */ | 
				
			|||
@RestController | 
				
			|||
@RequestMapping("icResiUserConfirm") | 
				
			|||
public class IcResiUserConfirmController { | 
				
			|||
 | 
				
			|||
    @Autowired | 
				
			|||
    private IcResiUserConfirmService icResiUserConfirmService; | 
				
			|||
 | 
				
			|||
    @RequestMapping("page") | 
				
			|||
    public Result<PageData<IcResiUserConfirmDTO>> page(@RequestParam Map<String, Object> params){ | 
				
			|||
        PageData<IcResiUserConfirmDTO> page = icResiUserConfirmService.page(params); | 
				
			|||
        return new Result<PageData<IcResiUserConfirmDTO>>().ok(page); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) | 
				
			|||
    public Result<IcResiUserConfirmDTO> get(@PathVariable("id") String id){ | 
				
			|||
        IcResiUserConfirmDTO data = icResiUserConfirmService.get(id); | 
				
			|||
        return new Result<IcResiUserConfirmDTO>().ok(data); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @NoRepeatSubmit | 
				
			|||
    @PostMapping("save") | 
				
			|||
    public Result save(@RequestBody IcResiUserConfirmDTO dto){ | 
				
			|||
        //效验数据
 | 
				
			|||
        ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); | 
				
			|||
        icResiUserConfirmService.save(dto); | 
				
			|||
        return new Result(); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @NoRepeatSubmit | 
				
			|||
    @PostMapping("update") | 
				
			|||
    public Result update(@RequestBody IcResiUserConfirmDTO dto){ | 
				
			|||
        //效验数据
 | 
				
			|||
        ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); | 
				
			|||
        icResiUserConfirmService.update(dto); | 
				
			|||
        return new Result(); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @PostMapping("delete") | 
				
			|||
    public Result delete(@RequestBody String[] ids){ | 
				
			|||
        //效验数据
 | 
				
			|||
        AssertUtils.isArrayEmpty(ids, "id"); | 
				
			|||
        icResiUserConfirmService.delete(ids); | 
				
			|||
        return new Result(); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @GetMapping("export") | 
				
			|||
    public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { | 
				
			|||
        List<IcResiUserConfirmDTO> list = icResiUserConfirmService.list(params); | 
				
			|||
        ExcelUtils.exportExcelToTarget(response, null, list, IcResiUserConfirmExcel.class); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
 | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,16 @@ | 
				
			|||
package com.epmet.dao; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			|||
import com.epmet.entity.IcResiUserConfirmEntity; | 
				
			|||
import org.apache.ibatis.annotations.Mapper; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 居民信息审核表 | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2022-06-01 | 
				
			|||
 */ | 
				
			|||
@Mapper | 
				
			|||
public interface IcResiUserConfirmDao extends BaseDao<IcResiUserConfirmEntity> { | 
				
			|||
	 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,131 @@ | 
				
			|||
package com.epmet.entity; | 
				
			|||
 | 
				
			|||
import com.baomidou.mybatisplus.annotation.TableName; | 
				
			|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.EqualsAndHashCode; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 居民信息审核表 | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2022-06-01 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
@EqualsAndHashCode(callSuper=false) | 
				
			|||
@TableName("ic_resi_user_confirm") | 
				
			|||
public class IcResiUserConfirmEntity extends BaseEpmetEntity { | 
				
			|||
 | 
				
			|||
	private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 客户Id customer.id | 
				
			|||
     */ | 
				
			|||
	private String customerId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 组织Id | 
				
			|||
     */ | 
				
			|||
	private String agencyId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 组织的pids | 
				
			|||
     */ | 
				
			|||
	private String pids; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 网格ID | 
				
			|||
     */ | 
				
			|||
	private String gridId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 姓 | 
				
			|||
     */ | 
				
			|||
	private String surname; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 名 | 
				
			|||
     */ | 
				
			|||
	private String name; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 手机号 | 
				
			|||
     */ | 
				
			|||
	private String mobile; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 性别 | 
				
			|||
     */ | 
				
			|||
	private String gender; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 身份证号 | 
				
			|||
     */ | 
				
			|||
	private String idCard; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 出生日期 | 
				
			|||
     */ | 
				
			|||
	private String birthday; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 户籍所在地地区码 | 
				
			|||
     */ | 
				
			|||
	private String hjszdCode; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 户籍所在地 | 
				
			|||
     */ | 
				
			|||
	private String hjszd; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 现居住地地区码 | 
				
			|||
     */ | 
				
			|||
	private String xjzdCode; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 现居住地 | 
				
			|||
     */ | 
				
			|||
	private String xjzd; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 民族【字典表】 | 
				
			|||
     */ | 
				
			|||
	private String mz; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 与户主关系 | 
				
			|||
     */ | 
				
			|||
	private String yhzgx; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 审核状态0未审核,1审核通过,2审核不通过 | 
				
			|||
     */ | 
				
			|||
	private String confirmResult; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 审核不通过的原因 | 
				
			|||
     */ | 
				
			|||
	private String reason; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * ic_resi_user表id | 
				
			|||
     */ | 
				
			|||
	private String icUserId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 操作类型:新增add 修改 update 删除 delete | 
				
			|||
     */ | 
				
			|||
	private String submitType; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 删除原因 | 
				
			|||
     */ | 
				
			|||
	private String deleteReason; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 操作说明 | 
				
			|||
     */ | 
				
			|||
	private String operationDescribe; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,105 @@ | 
				
			|||
package com.epmet.excel; | 
				
			|||
 | 
				
			|||
import cn.afterturn.easypoi.excel.annotation.Excel; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.util.Date; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 居民信息审核表 | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2022-06-01 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class IcResiUserConfirmExcel { | 
				
			|||
 | 
				
			|||
    @Excel(name = "主键") | 
				
			|||
    private String id; | 
				
			|||
 | 
				
			|||
    @Excel(name = "客户Id customer.id") | 
				
			|||
    private String customerId; | 
				
			|||
 | 
				
			|||
    @Excel(name = "组织Id") | 
				
			|||
    private String agencyId; | 
				
			|||
 | 
				
			|||
    @Excel(name = "组织的pids") | 
				
			|||
    private String pids; | 
				
			|||
 | 
				
			|||
    @Excel(name = "网格ID") | 
				
			|||
    private String gridId; | 
				
			|||
 | 
				
			|||
    @Excel(name = "姓") | 
				
			|||
    private String surname; | 
				
			|||
 | 
				
			|||
    @Excel(name = "名") | 
				
			|||
    private String name; | 
				
			|||
 | 
				
			|||
    @Excel(name = "手机号") | 
				
			|||
    private String mobile; | 
				
			|||
 | 
				
			|||
    @Excel(name = "性别") | 
				
			|||
    private String gender; | 
				
			|||
 | 
				
			|||
    @Excel(name = "身份证号") | 
				
			|||
    private String idCard; | 
				
			|||
 | 
				
			|||
    @Excel(name = "出生日期") | 
				
			|||
    private String birthday; | 
				
			|||
 | 
				
			|||
    @Excel(name = "户籍所在地地区码") | 
				
			|||
    private String hjszdCode; | 
				
			|||
 | 
				
			|||
    @Excel(name = "户籍所在地") | 
				
			|||
    private String hjszd; | 
				
			|||
 | 
				
			|||
    @Excel(name = "现居住地地区码") | 
				
			|||
    private String xjzdCode; | 
				
			|||
 | 
				
			|||
    @Excel(name = "现居住地") | 
				
			|||
    private String xjzd; | 
				
			|||
 | 
				
			|||
    @Excel(name = "民族【字典表】") | 
				
			|||
    private String mz; | 
				
			|||
 | 
				
			|||
    @Excel(name = "与户主关系") | 
				
			|||
    private String yhzgx; | 
				
			|||
 | 
				
			|||
    @Excel(name = "审核状态0未审核,1审核通过,2审核不通过") | 
				
			|||
    private String confirmResult; | 
				
			|||
 | 
				
			|||
    @Excel(name = "审核不通过的原因") | 
				
			|||
    private String reason; | 
				
			|||
 | 
				
			|||
    @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; | 
				
			|||
 | 
				
			|||
    @Excel(name = "ic_resi_user表id") | 
				
			|||
    private String icUserId; | 
				
			|||
 | 
				
			|||
    @Excel(name = "操作类型:新增add 修改 update 删除 delete") | 
				
			|||
    private String submitType; | 
				
			|||
 | 
				
			|||
    @Excel(name = "删除原因") | 
				
			|||
    private String deleteReason; | 
				
			|||
 | 
				
			|||
    @Excel(name = "操作说明") | 
				
			|||
    private String operationDescribe; | 
				
			|||
 | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,30 @@ | 
				
			|||
package com.epmet.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-06-01 | 
				
			|||
 */ | 
				
			|||
@Component | 
				
			|||
public class IcResiUserConfirmRedis { | 
				
			|||
    @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.service; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.service.BaseService; | 
				
			|||
import com.epmet.commons.tools.page.PageData; | 
				
			|||
import com.epmet.dto.IcResiUserConfirmDTO; | 
				
			|||
import com.epmet.entity.IcResiUserConfirmEntity; | 
				
			|||
 | 
				
			|||
import java.util.List; | 
				
			|||
import java.util.Map; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 居民信息审核表 | 
				
			|||
 * | 
				
			|||
 * @author generator generator@elink-cn.com | 
				
			|||
 * @since v1.0.0 2022-06-01 | 
				
			|||
 */ | 
				
			|||
public interface IcResiUserConfirmService extends BaseService<IcResiUserConfirmEntity> { | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 默认分页 | 
				
			|||
     * | 
				
			|||
     * @param params | 
				
			|||
     * @return PageData<IcResiUserConfirmDTO> | 
				
			|||
     * @author generator | 
				
			|||
     * @date 2022-06-01 | 
				
			|||
     */ | 
				
			|||
    PageData<IcResiUserConfirmDTO> page(Map<String, Object> params); | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 默认查询 | 
				
			|||
     * | 
				
			|||
     * @param params | 
				
			|||
     * @return java.util.List<IcResiUserConfirmDTO> | 
				
			|||
     * @author generator | 
				
			|||
     * @date 2022-06-01 | 
				
			|||
     */ | 
				
			|||
    List<IcResiUserConfirmDTO> list(Map<String, Object> params); | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 单条查询 | 
				
			|||
     * | 
				
			|||
     * @param id | 
				
			|||
     * @return IcResiUserConfirmDTO | 
				
			|||
     * @author generator | 
				
			|||
     * @date 2022-06-01 | 
				
			|||
     */ | 
				
			|||
    IcResiUserConfirmDTO get(String id); | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 默认保存 | 
				
			|||
     * | 
				
			|||
     * @param dto | 
				
			|||
     * @return void | 
				
			|||
     * @author generator | 
				
			|||
     * @date 2022-06-01 | 
				
			|||
     */ | 
				
			|||
    void save(IcResiUserConfirmDTO dto); | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 默认更新 | 
				
			|||
     * | 
				
			|||
     * @param dto | 
				
			|||
     * @return void | 
				
			|||
     * @author generator | 
				
			|||
     * @date 2022-06-01 | 
				
			|||
     */ | 
				
			|||
    void update(IcResiUserConfirmDTO dto); | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 批量删除 | 
				
			|||
     * | 
				
			|||
     * @param ids | 
				
			|||
     * @return void | 
				
			|||
     * @author generator | 
				
			|||
     * @date 2022-06-01 | 
				
			|||
     */ | 
				
			|||
    void delete(String[] ids); | 
				
			|||
} | 
				
			|||
@ -0,0 +1,87 @@ | 
				
			|||
package com.epmet.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.dao.IcResiUserConfirmDao; | 
				
			|||
import com.epmet.dto.IcResiUserConfirmDTO; | 
				
			|||
import com.epmet.entity.IcResiUserConfirmEntity; | 
				
			|||
import com.epmet.redis.IcResiUserConfirmRedis; | 
				
			|||
import com.epmet.service.IcResiUserConfirmService; | 
				
			|||
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-06-01 | 
				
			|||
 */ | 
				
			|||
@Service | 
				
			|||
public class IcResiUserConfirmServiceImpl extends BaseServiceImpl<IcResiUserConfirmDao, IcResiUserConfirmEntity> implements IcResiUserConfirmService { | 
				
			|||
 | 
				
			|||
    @Autowired | 
				
			|||
    private IcResiUserConfirmRedis icResiUserConfirmRedis; | 
				
			|||
 | 
				
			|||
    @Override | 
				
			|||
    public PageData<IcResiUserConfirmDTO> page(Map<String, Object> params) { | 
				
			|||
        IPage<IcResiUserConfirmEntity> page = baseDao.selectPage( | 
				
			|||
                getPage(params, FieldConstant.CREATED_TIME, false), | 
				
			|||
                getWrapper(params) | 
				
			|||
        ); | 
				
			|||
        return getPageData(page, IcResiUserConfirmDTO.class); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @Override | 
				
			|||
    public List<IcResiUserConfirmDTO> list(Map<String, Object> params) { | 
				
			|||
        List<IcResiUserConfirmEntity> entityList = baseDao.selectList(getWrapper(params)); | 
				
			|||
 | 
				
			|||
        return ConvertUtils.sourceToTarget(entityList, IcResiUserConfirmDTO.class); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    private QueryWrapper<IcResiUserConfirmEntity> getWrapper(Map<String, Object> params){ | 
				
			|||
        String id = (String)params.get(FieldConstant.ID_HUMP); | 
				
			|||
 | 
				
			|||
        QueryWrapper<IcResiUserConfirmEntity> wrapper = new QueryWrapper<>(); | 
				
			|||
        wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); | 
				
			|||
 | 
				
			|||
        return wrapper; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @Override | 
				
			|||
    public IcResiUserConfirmDTO get(String id) { | 
				
			|||
        IcResiUserConfirmEntity entity = baseDao.selectById(id); | 
				
			|||
        return ConvertUtils.sourceToTarget(entity, IcResiUserConfirmDTO.class); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @Override | 
				
			|||
    @Transactional(rollbackFor = Exception.class) | 
				
			|||
    public void save(IcResiUserConfirmDTO dto) { | 
				
			|||
        IcResiUserConfirmEntity entity = ConvertUtils.sourceToTarget(dto, IcResiUserConfirmEntity.class); | 
				
			|||
        insert(entity); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @Override | 
				
			|||
    @Transactional(rollbackFor = Exception.class) | 
				
			|||
    public void update(IcResiUserConfirmDTO dto) { | 
				
			|||
        IcResiUserConfirmEntity entity = ConvertUtils.sourceToTarget(dto, IcResiUserConfirmEntity.class); | 
				
			|||
        updateById(entity); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    @Override | 
				
			|||
    @Transactional(rollbackFor = Exception.class) | 
				
			|||
    public void delete(String[] ids) { | 
				
			|||
        // 逻辑删除(@TableLogic 注解)
 | 
				
			|||
        baseDao.deleteBatchIds(Arrays.asList(ids)); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,39 @@ | 
				
			|||
<?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.dao.IcResiUserConfirmDao"> | 
				
			|||
 | 
				
			|||
    <resultMap type="com.epmet.entity.IcResiUserConfirmEntity" id="icResiUserConfirmMap"> | 
				
			|||
        <result property="id" column="ID"/> | 
				
			|||
        <result property="customerId" column="CUSTOMER_ID"/> | 
				
			|||
        <result property="agencyId" column="AGENCY_ID"/> | 
				
			|||
        <result property="pids" column="PIDS"/> | 
				
			|||
        <result property="gridId" column="GRID_ID"/> | 
				
			|||
        <result property="surname" column="SURNAME"/> | 
				
			|||
        <result property="name" column="NAME"/> | 
				
			|||
        <result property="mobile" column="MOBILE"/> | 
				
			|||
        <result property="gender" column="GENDER"/> | 
				
			|||
        <result property="idCard" column="ID_CARD"/> | 
				
			|||
        <result property="birthday" column="BIRTHDAY"/> | 
				
			|||
        <result property="hjszdCode" column="HJSZD_CODE"/> | 
				
			|||
        <result property="hjszd" column="HJSZD"/> | 
				
			|||
        <result property="xjzdCode" column="XJZD_CODE"/> | 
				
			|||
        <result property="xjzd" column="XJZD"/> | 
				
			|||
        <result property="mz" column="MZ"/> | 
				
			|||
        <result property="yhzgx" column="YHZGX"/> | 
				
			|||
        <result property="confirmResult" column="CONFIRM_RESULT"/> | 
				
			|||
        <result property="reason" column="REASON"/> | 
				
			|||
        <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"/> | 
				
			|||
        <result property="icUserId" column="IC_USER_ID"/> | 
				
			|||
        <result property="submitType" column="SUBMIT_TYPE"/> | 
				
			|||
        <result property="deleteReason" column="DELETE_REASON"/> | 
				
			|||
        <result property="operationDescribe" column="OPERATION_DESCRIBE"/> | 
				
			|||
    </resultMap> | 
				
			|||
 | 
				
			|||
 | 
				
			|||
</mapper> | 
				
			|||
					Loading…
					
					
				
		Reference in new issue