28 changed files with 1801 additions and 0 deletions
@ -0,0 +1,180 @@ |
|||
package com.epmet.resi.partymember.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 党建组织活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
public class IcPartyActDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID:当前工作人员所属组织id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织ID的上级;如果org_id是根组织,那此列=0 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* ORG_ID全路径,包含自身 |
|||
*/ |
|||
private String orgIdPath; |
|||
|
|||
/** |
|||
* 发布活动党组织 |
|||
*/ |
|||
private String publishPartyOrgId; |
|||
|
|||
/** |
|||
* 发布活动党组织名称 |
|||
*/ |
|||
private String publishPartyOrgName; |
|||
|
|||
/** |
|||
* 参加活动党组织ID的上级节点 |
|||
*/ |
|||
private String publishOrgPid; |
|||
|
|||
/** |
|||
* 党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部;6党小组 |
|||
*/ |
|||
private String publishOrgType; |
|||
|
|||
/** |
|||
* PARTY_ORG_ID的全路径,包含自身。方便前端回显 |
|||
*/ |
|||
private String publishOrgPath; |
|||
|
|||
/** |
|||
* 活动类型,0:支部党员大会;1:支部委员会;2:党小组会;3:党课;4:主题党日;5:为民服务活动; |
|||
*/ |
|||
private String actType; |
|||
|
|||
/** |
|||
* 活动举办时间:yyyy |
|||
*/ |
|||
private String holdYearId; |
|||
|
|||
/** |
|||
* 活动举办时间:yyyyMM |
|||
*/ |
|||
private String holdMonthId; |
|||
|
|||
/** |
|||
* 举办活动时间 |
|||
*/ |
|||
private Date holdTime; |
|||
|
|||
/** |
|||
* 活动主题 |
|||
*/ |
|||
private String topic; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 活动地点纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 活动地点经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 活动开始前几天 |
|||
*/ |
|||
private Integer autoPublicType; |
|||
|
|||
/** |
|||
* 自动发布时间,保存时算好时间存在这里 |
|||
*/ |
|||
private Date autoPublicTime; |
|||
|
|||
/** |
|||
* 参加人员类型,0:全体党员;1:支部委员 |
|||
*/ |
|||
private String joinUserType; |
|||
|
|||
/** |
|||
* 是否自动通知参加人员,0否;1是 |
|||
*/ |
|||
private String isAutoInform; |
|||
|
|||
/** |
|||
* 活动介绍 |
|||
*/ |
|||
private String introduce; |
|||
|
|||
/** |
|||
* 是否发布,0未发布;1已发布; |
|||
*/ |
|||
private String isPublic; |
|||
|
|||
/** |
|||
* 活动发布人 |
|||
*/ |
|||
private String publishStaffId; |
|||
|
|||
/** |
|||
* 活动发布人姓名 |
|||
*/ |
|||
private String publishStaffName; |
|||
|
|||
/** |
|||
* 0未删除;1:已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.epmet.resi.partymember.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 参加活动党组织表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
public class IcPartyActOrgDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 活动id |
|||
*/ |
|||
private String icPartyActId; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 参加活动党组织ID,groupId |
|||
*/ |
|||
private String joinOrgId; |
|||
|
|||
/** |
|||
* 党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部;6党小组 |
|||
*/ |
|||
private String orgType; |
|||
|
|||
/** |
|||
* 参加活动党组织ID的上级节点 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* PARTY_ORG_ID的全路径,包含自身。方便前端回显 |
|||
*/ |
|||
private String joinOrgPath; |
|||
|
|||
/** |
|||
* 0:未删除;1:已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,94 @@ |
|||
package com.epmet.resi.partymember.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 党组织活动签到记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
public class IcPartyActSignInRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 活动id |
|||
*/ |
|||
private String icPartyActId; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 签到用户id |
|||
*/ |
|||
private String epmetUserId; |
|||
|
|||
/** |
|||
* 签到用户姓名 |
|||
*/ |
|||
private String userRealName; |
|||
|
|||
/** |
|||
* 签到地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 签到地点纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 签到地点经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 0:未删除;1:已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,99 @@ |
|||
package com.epmet.resi.partymember.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 日程表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
public class IcScheduleDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 所属行政组织ID:当前工作人员所属组织id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织ID的上级;如果org_id是根组织,那此列=0 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* ORG_ID全路径,包含自身 |
|||
*/ |
|||
private String orgIdPath; |
|||
|
|||
/** |
|||
* 当前登录用户userId |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 日程标题(35字) |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 提醒时间;其实就是日程所属日期 |
|||
*/ |
|||
private Date remindTime; |
|||
|
|||
/** |
|||
* 是否公开,0:仅自己可见;1:组织内其他人可见 |
|||
*/ |
|||
private String isPublic; |
|||
|
|||
/** |
|||
* 备注(500字) |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 0:未删除;1已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
package com.epmet.modules.partyOrg.controller; |
|||
|
|||
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
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.DefaultGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.modules.partyOrg.service.IcPartyActService; |
|||
import com.epmet.resi.partymember.dto.IcPartyActDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 党建组织活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("icPartyAct") |
|||
public class IcPartyActController { |
|||
|
|||
@Autowired |
|||
private IcPartyActService icPartyActService; |
|||
|
|||
@RequestMapping("page") |
|||
public Result<PageData<IcPartyActDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<IcPartyActDTO> page = icPartyActService.page(params); |
|||
return new Result<PageData<IcPartyActDTO>>().ok(page); |
|||
} |
|||
|
|||
@RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) |
|||
public Result<IcPartyActDTO> get(@PathVariable("id") String id){ |
|||
IcPartyActDTO data = icPartyActService.get(id); |
|||
return new Result<IcPartyActDTO>().ok(data); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("save") |
|||
public Result save(@RequestBody IcPartyActDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
icPartyActService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("update") |
|||
public Result update(@RequestBody IcPartyActDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
icPartyActService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PostMapping("delete") |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
icPartyActService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
package com.epmet.modules.partyOrg.controller; |
|||
|
|||
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
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.DefaultGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.modules.partyOrg.service.IcPartyActOrgService; |
|||
import com.epmet.resi.partymember.dto.IcPartyActOrgDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 参加活动党组织表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("icPartyActOrg") |
|||
public class IcPartyActOrgController { |
|||
|
|||
@Autowired |
|||
private IcPartyActOrgService icPartyActOrgService; |
|||
|
|||
@RequestMapping("page") |
|||
public Result<PageData<IcPartyActOrgDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<IcPartyActOrgDTO> page = icPartyActOrgService.page(params); |
|||
return new Result<PageData<IcPartyActOrgDTO>>().ok(page); |
|||
} |
|||
|
|||
@RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) |
|||
public Result<IcPartyActOrgDTO> get(@PathVariable("id") String id){ |
|||
IcPartyActOrgDTO data = icPartyActOrgService.get(id); |
|||
return new Result<IcPartyActOrgDTO>().ok(data); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("save") |
|||
public Result save(@RequestBody IcPartyActOrgDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
icPartyActOrgService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("update") |
|||
public Result update(@RequestBody IcPartyActOrgDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
icPartyActOrgService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PostMapping("delete") |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
icPartyActOrgService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
package com.epmet.modules.partyOrg.controller; |
|||
|
|||
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
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.DefaultGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.modules.partyOrg.service.IcPartyActSignInRecordService; |
|||
import com.epmet.resi.partymember.dto.IcPartyActSignInRecordDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 党组织活动签到记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("icPartyActSignInRecord") |
|||
public class IcPartyActSignInRecordController { |
|||
|
|||
@Autowired |
|||
private IcPartyActSignInRecordService icPartyActSignInRecordService; |
|||
|
|||
@RequestMapping("page") |
|||
public Result<PageData<IcPartyActSignInRecordDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<IcPartyActSignInRecordDTO> page = icPartyActSignInRecordService.page(params); |
|||
return new Result<PageData<IcPartyActSignInRecordDTO>>().ok(page); |
|||
} |
|||
|
|||
@RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) |
|||
public Result<IcPartyActSignInRecordDTO> get(@PathVariable("id") String id){ |
|||
IcPartyActSignInRecordDTO data = icPartyActSignInRecordService.get(id); |
|||
return new Result<IcPartyActSignInRecordDTO>().ok(data); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("save") |
|||
public Result save(@RequestBody IcPartyActSignInRecordDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
icPartyActSignInRecordService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("update") |
|||
public Result update(@RequestBody IcPartyActSignInRecordDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
icPartyActSignInRecordService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PostMapping("delete") |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
icPartyActSignInRecordService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
package com.epmet.modules.partyOrg.controller; |
|||
|
|||
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
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.DefaultGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.modules.partyOrg.service.IcScheduleService; |
|||
import com.epmet.resi.partymember.dto.IcScheduleDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 日程表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("icSchedule") |
|||
public class IcScheduleController { |
|||
|
|||
@Autowired |
|||
private IcScheduleService icScheduleService; |
|||
|
|||
@RequestMapping("page") |
|||
public Result<PageData<IcScheduleDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<IcScheduleDTO> page = icScheduleService.page(params); |
|||
return new Result<PageData<IcScheduleDTO>>().ok(page); |
|||
} |
|||
|
|||
@RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) |
|||
public Result<IcScheduleDTO> get(@PathVariable("id") String id){ |
|||
IcScheduleDTO data = icScheduleService.get(id); |
|||
return new Result<IcScheduleDTO>().ok(data); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("save") |
|||
public Result save(@RequestBody IcScheduleDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
icScheduleService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("update") |
|||
public Result update(@RequestBody IcScheduleDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
icScheduleService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PostMapping("delete") |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
icScheduleService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.modules.partyOrg.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 党建组织活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface IcPartyActDao extends BaseDao<IcPartyActEntity> { |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.modules.partyOrg.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActOrgEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 参加活动党组织表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface IcPartyActOrgDao extends BaseDao<IcPartyActOrgEntity> { |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.modules.partyOrg.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActSignInRecordEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 党组织活动签到记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface IcPartyActSignInRecordDao extends BaseDao<IcPartyActSignInRecordEntity> { |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.modules.partyOrg.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.modules.partyOrg.entity.IcScheduleEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 日程表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface IcScheduleDao extends BaseDao<IcScheduleEntity> { |
|||
|
|||
} |
@ -0,0 +1,149 @@ |
|||
package com.epmet.modules.partyOrg.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 党建组织活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_party_act") |
|||
public class IcPartyActEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID:当前工作人员所属组织id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织ID的上级;如果org_id是根组织,那此列=0 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* ORG_ID全路径,包含自身 |
|||
*/ |
|||
private String orgIdPath; |
|||
|
|||
/** |
|||
* 发布活动党组织 |
|||
*/ |
|||
private String publishPartyOrgId; |
|||
|
|||
/** |
|||
* 发布活动党组织名称 |
|||
*/ |
|||
private String publishPartyOrgName; |
|||
|
|||
/** |
|||
* 参加活动党组织ID的上级节点 |
|||
*/ |
|||
private String publishOrgPid; |
|||
|
|||
/** |
|||
* 党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部;6党小组 |
|||
*/ |
|||
private String publishOrgType; |
|||
|
|||
/** |
|||
* PARTY_ORG_ID的全路径,包含自身。方便前端回显 |
|||
*/ |
|||
private String publishOrgPath; |
|||
|
|||
/** |
|||
* 活动类型,0:支部党员大会;1:支部委员会;2:党小组会;3:党课;4:主题党日;5:为民服务活动; |
|||
*/ |
|||
private String actType; |
|||
|
|||
/** |
|||
* 活动举办时间:yyyy |
|||
*/ |
|||
private String holdYearId; |
|||
|
|||
/** |
|||
* 活动举办时间:yyyyMM |
|||
*/ |
|||
private String holdMonthId; |
|||
|
|||
/** |
|||
* 举办活动时间 |
|||
*/ |
|||
private Date holdTime; |
|||
|
|||
/** |
|||
* 活动主题 |
|||
*/ |
|||
private String topic; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 活动地点纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 活动地点经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 活动开始前几天 |
|||
*/ |
|||
private Integer autoPublicType; |
|||
|
|||
/** |
|||
* 自动发布时间,保存时算好时间存在这里 |
|||
*/ |
|||
private Date autoPublicTime; |
|||
|
|||
/** |
|||
* 参加人员类型,0:全体党员;1:支部委员 |
|||
*/ |
|||
private String joinUserType; |
|||
|
|||
/** |
|||
* 是否自动通知参加人员,0否;1是 |
|||
*/ |
|||
private String isAutoInform; |
|||
|
|||
/** |
|||
* 活动介绍 |
|||
*/ |
|||
private String introduce; |
|||
|
|||
/** |
|||
* 是否发布,0未发布;1已发布; |
|||
*/ |
|||
private String isPublic; |
|||
|
|||
/** |
|||
* 活动发布人 |
|||
*/ |
|||
private String publishStaffId; |
|||
|
|||
/** |
|||
* 活动发布人姓名 |
|||
*/ |
|||
private String publishStaffName; |
|||
|
|||
} |
@ -0,0 +1,54 @@ |
|||
package com.epmet.modules.partyOrg.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 参加活动党组织表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_party_act_org") |
|||
public class IcPartyActOrgEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 活动id |
|||
*/ |
|||
private String icPartyActId; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 参加活动党组织ID,groupId |
|||
*/ |
|||
private String joinOrgId; |
|||
|
|||
/** |
|||
* 党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部;6党小组 |
|||
*/ |
|||
private String orgType; |
|||
|
|||
/** |
|||
* 参加活动党组织ID的上级节点 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* PARTY_ORG_ID的全路径,包含自身。方便前端回显 |
|||
*/ |
|||
private String joinOrgPath; |
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.epmet.modules.partyOrg.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 党组织活动签到记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_party_act_sign_in_record") |
|||
public class IcPartyActSignInRecordEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 活动id |
|||
*/ |
|||
private String icPartyActId; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 签到用户id |
|||
*/ |
|||
private String epmetUserId; |
|||
|
|||
/** |
|||
* 签到用户姓名 |
|||
*/ |
|||
private String userRealName; |
|||
|
|||
/** |
|||
* 签到地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 签到地点纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 签到地点经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
} |
@ -0,0 +1,69 @@ |
|||
package com.epmet.modules.partyOrg.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 日程表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("ic_schedule") |
|||
public class IcScheduleEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 所属行政组织ID:当前工作人员所属组织id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织ID的上级;如果org_id是根组织,那此列=0 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* ORG_ID全路径,包含自身 |
|||
*/ |
|||
private String orgIdPath; |
|||
|
|||
/** |
|||
* 当前登录用户userId |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 日程标题(35字) |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 提醒时间;其实就是日程所属日期 |
|||
*/ |
|||
private Date remindTime; |
|||
|
|||
/** |
|||
* 是否公开,0:仅自己可见;1:组织内其他人可见 |
|||
*/ |
|||
private String isPublic; |
|||
|
|||
/** |
|||
* 备注(500字) |
|||
*/ |
|||
private String remark; |
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.epmet.modules.partyOrg.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActOrgEntity; |
|||
import com.epmet.resi.partymember.dto.IcPartyActOrgDTO; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 参加活动党组织表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
public interface IcPartyActOrgService extends BaseService<IcPartyActOrgEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<IcPartyActOrgDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
PageData<IcPartyActOrgDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<IcPartyActOrgDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
List<IcPartyActOrgDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return IcPartyActOrgDTO |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
IcPartyActOrgDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void save(IcPartyActOrgDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void update(IcPartyActOrgDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.epmet.modules.partyOrg.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActEntity; |
|||
import com.epmet.resi.partymember.dto.IcPartyActDTO; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 党建组织活动 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
public interface IcPartyActService extends BaseService<IcPartyActEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<IcPartyActDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
PageData<IcPartyActDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<IcPartyActDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
List<IcPartyActDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return IcPartyActDTO |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
IcPartyActDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void save(IcPartyActDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void update(IcPartyActDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.epmet.modules.partyOrg.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActSignInRecordEntity; |
|||
import com.epmet.resi.partymember.dto.IcPartyActSignInRecordDTO; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 党组织活动签到记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
public interface IcPartyActSignInRecordService extends BaseService<IcPartyActSignInRecordEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<IcPartyActSignInRecordDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
PageData<IcPartyActSignInRecordDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<IcPartyActSignInRecordDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
List<IcPartyActSignInRecordDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return IcPartyActSignInRecordDTO |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
IcPartyActSignInRecordDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void save(IcPartyActSignInRecordDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void update(IcPartyActSignInRecordDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.epmet.modules.partyOrg.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.modules.partyOrg.entity.IcScheduleEntity; |
|||
import com.epmet.resi.partymember.dto.IcScheduleDTO; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 日程表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-08-18 |
|||
*/ |
|||
public interface IcScheduleService extends BaseService<IcScheduleEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<IcScheduleDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
PageData<IcScheduleDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<IcScheduleDTO> |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
List<IcScheduleDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return IcScheduleDTO |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
IcScheduleDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void save(IcScheduleDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void update(IcScheduleDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2022-08-18 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,82 @@ |
|||
package com.epmet.modules.partyOrg.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.constant.FieldConstant; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.modules.partyOrg.dao.IcPartyActOrgDao; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActOrgEntity; |
|||
import com.epmet.modules.partyOrg.service.IcPartyActOrgService; |
|||
import com.epmet.resi.partymember.dto.IcPartyActOrgDTO; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
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-08-18 |
|||
*/ |
|||
@Service |
|||
public class IcPartyActOrgServiceImpl extends BaseServiceImpl<IcPartyActOrgDao, IcPartyActOrgEntity> implements IcPartyActOrgService { |
|||
|
|||
@Override |
|||
public PageData<IcPartyActOrgDTO> page(Map<String, Object> params) { |
|||
IPage<IcPartyActOrgEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, IcPartyActOrgDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<IcPartyActOrgDTO> list(Map<String, Object> params) { |
|||
List<IcPartyActOrgEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IcPartyActOrgDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IcPartyActOrgEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IcPartyActOrgEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IcPartyActOrgDTO get(String id) { |
|||
IcPartyActOrgEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IcPartyActOrgDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IcPartyActOrgDTO dto) { |
|||
IcPartyActOrgEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyActOrgEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(IcPartyActOrgDTO dto) { |
|||
IcPartyActOrgEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyActOrgEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,82 @@ |
|||
package com.epmet.modules.partyOrg.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.constant.FieldConstant; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.modules.partyOrg.dao.IcPartyActDao; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActEntity; |
|||
import com.epmet.modules.partyOrg.service.IcPartyActService; |
|||
import com.epmet.resi.partymember.dto.IcPartyActDTO; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
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-08-18 |
|||
*/ |
|||
@Service |
|||
public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPartyActEntity> implements IcPartyActService { |
|||
|
|||
@Override |
|||
public PageData<IcPartyActDTO> page(Map<String, Object> params) { |
|||
IPage<IcPartyActEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, IcPartyActDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<IcPartyActDTO> list(Map<String, Object> params) { |
|||
List<IcPartyActEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IcPartyActDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IcPartyActEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IcPartyActEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IcPartyActDTO get(String id) { |
|||
IcPartyActEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IcPartyActDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IcPartyActDTO dto) { |
|||
IcPartyActEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyActEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(IcPartyActDTO dto) { |
|||
IcPartyActEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyActEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,82 @@ |
|||
package com.epmet.modules.partyOrg.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.constant.FieldConstant; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.modules.partyOrg.dao.IcPartyActSignInRecordDao; |
|||
import com.epmet.modules.partyOrg.entity.IcPartyActSignInRecordEntity; |
|||
import com.epmet.modules.partyOrg.service.IcPartyActSignInRecordService; |
|||
import com.epmet.resi.partymember.dto.IcPartyActSignInRecordDTO; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
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-08-18 |
|||
*/ |
|||
@Service |
|||
public class IcPartyActSignInRecordServiceImpl extends BaseServiceImpl<IcPartyActSignInRecordDao, IcPartyActSignInRecordEntity> implements IcPartyActSignInRecordService { |
|||
|
|||
@Override |
|||
public PageData<IcPartyActSignInRecordDTO> page(Map<String, Object> params) { |
|||
IPage<IcPartyActSignInRecordEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, IcPartyActSignInRecordDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<IcPartyActSignInRecordDTO> list(Map<String, Object> params) { |
|||
List<IcPartyActSignInRecordEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IcPartyActSignInRecordDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IcPartyActSignInRecordEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IcPartyActSignInRecordEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IcPartyActSignInRecordDTO get(String id) { |
|||
IcPartyActSignInRecordEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IcPartyActSignInRecordDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IcPartyActSignInRecordDTO dto) { |
|||
IcPartyActSignInRecordEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyActSignInRecordEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(IcPartyActSignInRecordDTO dto) { |
|||
IcPartyActSignInRecordEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyActSignInRecordEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,82 @@ |
|||
package com.epmet.modules.partyOrg.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.constant.FieldConstant; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.modules.partyOrg.dao.IcScheduleDao; |
|||
import com.epmet.modules.partyOrg.entity.IcScheduleEntity; |
|||
import com.epmet.modules.partyOrg.service.IcScheduleService; |
|||
import com.epmet.resi.partymember.dto.IcScheduleDTO; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
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-08-18 |
|||
*/ |
|||
@Service |
|||
public class IcScheduleServiceImpl extends BaseServiceImpl<IcScheduleDao, IcScheduleEntity> implements IcScheduleService { |
|||
|
|||
@Override |
|||
public PageData<IcScheduleDTO> page(Map<String, Object> params) { |
|||
IPage<IcScheduleEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, IcScheduleDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<IcScheduleDTO> list(Map<String, Object> params) { |
|||
List<IcScheduleEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IcScheduleDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IcScheduleEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IcScheduleEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IcScheduleDTO get(String id) { |
|||
IcScheduleEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IcScheduleDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IcScheduleDTO dto) { |
|||
IcScheduleEntity entity = ConvertUtils.sourceToTarget(dto, IcScheduleEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(IcScheduleDTO dto) { |
|||
IcScheduleEntity entity = ConvertUtils.sourceToTarget(dto, IcScheduleEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,6 @@ |
|||
<?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.partyOrg.dao.IcPartyActDao"> |
|||
|
|||
</mapper> |
@ -0,0 +1,6 @@ |
|||
<?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.partyOrg.dao.IcPartyActOrgDao"> |
|||
|
|||
</mapper> |
@ -0,0 +1,6 @@ |
|||
<?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.partyOrg.dao.IcPartyActSignInRecordDao"> |
|||
|
|||
</mapper> |
@ -0,0 +1,6 @@ |
|||
<?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.partyOrg.dao.IcScheduleDao"> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue