31 changed files with 995 additions and 109 deletions
@ -0,0 +1,17 @@ |
|||||
|
package com.qs.serve.common.model.dto; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2023/4/7 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TargetObjectDTO { |
||||
|
String targetType; |
||||
|
String targetId; |
||||
|
|
||||
|
String targetCode; |
||||
|
String targetName; |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.tag; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2023/4/24 |
||||
|
*/ |
||||
|
public interface TagTypeConst { |
||||
|
|
||||
|
String Customer = "customer"; |
||||
|
String Point = "point"; |
||||
|
String Channel = "channel"; |
||||
|
String Salesman = "salesman"; |
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.qs.serve.modules.tag.entity.bo; |
||||
|
|
||||
|
import com.qs.serve.common.model.dto.TargetObjectDTO; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 标签信息 Bo |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-23 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TagInfoBindBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 标签地址 */ |
||||
|
private List<Long> tagIds; |
||||
|
|
||||
|
/** 目标数据。目标类型:customer、point、channel、salesman */ |
||||
|
private List<TargetObjectDTO> targetList; |
||||
|
|
||||
|
/** |
||||
|
* 0:添加不进行删除 |
||||
|
* 1:以`标签`为参照物,删除历史`目标数据`,并重新添加新的`目标数据` |
||||
|
* 2:以`目标数据`为参照物,删除历史`标签`,并重新添加新的`标签` |
||||
|
*/ |
||||
|
private Integer saveType; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,123 @@ |
|||||
|
package com.qs.serve.modules.wx.controller; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
|
import com.qs.serve.common.model.annotation.SysLog; |
||||
|
import com.qs.serve.common.model.dto.PageVo; |
||||
|
import com.qs.serve.common.model.dto.R; |
||||
|
import com.qs.serve.common.model.enums.BizType; |
||||
|
import com.qs.serve.common.model.enums.SystemModule; |
||||
|
import com.qs.serve.common.util.PageUtil; |
||||
|
import com.qs.serve.common.util.CopierUtil; |
||||
|
import com.qs.serve.common.util.StringUtils; |
||||
|
import com.qs.serve.modules.wx.entity.WxFormPush; |
||||
|
import com.qs.serve.modules.wx.service.WxFormPushService; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.security.access.prepost.PreAuthorize; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import com.qs.serve.modules.wx.entity.so.WxFormPushTypeSo; |
||||
|
import com.qs.serve.modules.wx.entity.bo.WxFormPushTypeBo; |
||||
|
import com.qs.serve.modules.wx.entity.WxFormPushType; |
||||
|
import com.qs.serve.modules.wx.service.WxFormPushTypeService; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 微信 表单类型 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@AllArgsConstructor |
||||
|
@RestController |
||||
|
@RequestMapping("wx/formPushType") |
||||
|
public class WxFormPushTypeController { |
||||
|
|
||||
|
private WxFormPushTypeService wxFormPushTypeService; |
||||
|
private WxFormPushService wxFormPushService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 列表 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@GetMapping("/list") |
||||
|
public R<List<WxFormPushType>> getList(WxFormPushTypeSo param){ |
||||
|
WxFormPushType entity = CopierUtil.copy(param,new WxFormPushType()); |
||||
|
LambdaQueryWrapper<WxFormPushType> lqw = new LambdaQueryWrapper<>(entity); |
||||
|
List<WxFormPushType> list = wxFormPushTypeService.list(lqw); |
||||
|
return R.ok(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 翻页 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@GetMapping("/page") |
||||
|
public R<PageVo<WxFormPushType>> getPage(WxFormPushTypeSo param){ |
||||
|
WxFormPushType entity = CopierUtil.copy(param,new WxFormPushType()); |
||||
|
LambdaQueryWrapper<WxFormPushType> lqw = new LambdaQueryWrapper<>(entity); |
||||
|
PageUtil.startPage(); |
||||
|
List<WxFormPushType> list = wxFormPushTypeService.list(lqw); |
||||
|
return R.byPageHelperList(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* ID查询 |
||||
|
* @param id |
||||
|
* @return |
||||
|
*/ |
||||
|
@GetMapping("/getById/{id}") |
||||
|
@SysLog(module = SystemModule.Verification, title = "表单类型", biz = BizType.QUERY) |
||||
|
public R<WxFormPushType> getById(@PathVariable("id") String id){ |
||||
|
WxFormPushType wxFormPushType = wxFormPushTypeService.getById(id); |
||||
|
return R.ok(wxFormPushType); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 更新 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("/updateById") |
||||
|
@SysLog(module = SystemModule.Verification, title = "表单类型", biz = BizType.UPDATE) |
||||
|
public R<?> updateById(@RequestBody @Valid WxFormPushTypeBo param){ |
||||
|
WxFormPushType entity = CopierUtil.copy(param,new WxFormPushType()); |
||||
|
boolean result = wxFormPushTypeService.updateById(entity); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("/save") |
||||
|
@SysLog(module = SystemModule.Verification, title = "表单类型", biz = BizType.INSERT) |
||||
|
public R<?> save(@RequestBody @Valid WxFormPushTypeBo param){ |
||||
|
WxFormPushType entity = CopierUtil.copy(param,new WxFormPushType()); |
||||
|
boolean result = wxFormPushTypeService.save(entity); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除 |
||||
|
* @param ids |
||||
|
* @return |
||||
|
*/ |
||||
|
@DeleteMapping("/deleteById/{ids}") |
||||
|
@SysLog(module = SystemModule.Verification, title = "表单类型", biz = BizType.DELETE) |
||||
|
public R<?> deleteById(@PathVariable("ids") String ids){ |
||||
|
List<String> idsString = StringUtils.splitIdString(ids); |
||||
|
boolean result = wxFormPushTypeService.removeByIds(idsString); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,120 @@ |
|||||
|
package com.qs.serve.modules.wx.controller; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
|
import com.qs.serve.common.model.annotation.SysLog; |
||||
|
import com.qs.serve.common.model.dto.PageVo; |
||||
|
import com.qs.serve.common.model.dto.R; |
||||
|
import com.qs.serve.common.model.enums.BizType; |
||||
|
import com.qs.serve.common.model.enums.SystemModule; |
||||
|
import com.qs.serve.common.util.PageUtil; |
||||
|
import com.qs.serve.common.util.CopierUtil; |
||||
|
import com.qs.serve.common.util.StringUtils; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.security.access.prepost.PreAuthorize; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import com.qs.serve.modules.wx.entity.so.WxFormPushUserSo; |
||||
|
import com.qs.serve.modules.wx.entity.bo.WxFormPushUserBo; |
||||
|
import com.qs.serve.modules.wx.entity.WxFormPushUser; |
||||
|
import com.qs.serve.modules.wx.service.WxFormPushUserService; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 微信 表单推送用户 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@AllArgsConstructor |
||||
|
@RestController |
||||
|
@RequestMapping("wx/formPushUser") |
||||
|
public class WxFormPushUserController { |
||||
|
|
||||
|
private WxFormPushUserService wxFormPushUserService; |
||||
|
|
||||
|
/** |
||||
|
* 列表 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
//@GetMapping("/list")
|
||||
|
public R<List<WxFormPushUser>> getList(WxFormPushUserSo param){ |
||||
|
WxFormPushUser entity = CopierUtil.copy(param,new WxFormPushUser()); |
||||
|
LambdaQueryWrapper<WxFormPushUser> lqw = new LambdaQueryWrapper<>(entity); |
||||
|
PageUtil.startPage(); |
||||
|
List<WxFormPushUser> list = wxFormPushUserService.list(lqw); |
||||
|
return R.ok(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 翻页 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@GetMapping("/page") |
||||
|
public R<PageVo<WxFormPushUser>> getPage(WxFormPushUserSo param){ |
||||
|
WxFormPushUser entity = CopierUtil.copy(param,new WxFormPushUser()); |
||||
|
LambdaQueryWrapper<WxFormPushUser> lqw = new LambdaQueryWrapper<>(entity); |
||||
|
PageUtil.startPage(); |
||||
|
List<WxFormPushUser> list = wxFormPushUserService.list(lqw); |
||||
|
return R.byPageHelperList(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* ID查询 |
||||
|
* @param id |
||||
|
* @return |
||||
|
*/ |
||||
|
//@GetMapping("/getById/{id}")
|
||||
|
@SysLog(module = SystemModule.Verification, title = "表单推送用户", biz = BizType.QUERY) |
||||
|
public R<WxFormPushUser> getById(@PathVariable("id") String id){ |
||||
|
WxFormPushUser wxFormPushUser = wxFormPushUserService.getById(id); |
||||
|
return R.ok(wxFormPushUser); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 更新 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
//@PostMapping("/updateById")
|
||||
|
@SysLog(module = SystemModule.Verification, title = "表单推送用户", biz = BizType.UPDATE) |
||||
|
public R<?> updateById(@RequestBody @Valid WxFormPushUserBo param){ |
||||
|
WxFormPushUser entity = CopierUtil.copy(param,new WxFormPushUser()); |
||||
|
boolean result = wxFormPushUserService.updateById(entity); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
//@PostMapping("/save")
|
||||
|
@SysLog(module = SystemModule.Verification, title = "表单推送用户", biz = BizType.INSERT) |
||||
|
public R<?> save(@RequestBody @Valid WxFormPushUserBo param){ |
||||
|
WxFormPushUser entity = CopierUtil.copy(param,new WxFormPushUser()); |
||||
|
boolean result = wxFormPushUserService.save(entity); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除 |
||||
|
* @param ids |
||||
|
* @return |
||||
|
*/ |
||||
|
@DeleteMapping("/deleteById/{ids}") |
||||
|
@SysLog(module = SystemModule.Verification, title = "表单推送用户", biz = BizType.DELETE) |
||||
|
public R<?> deleteById(@PathVariable("ids") String ids){ |
||||
|
List<Long> idsLong = StringUtils.splitIdLong(ids); |
||||
|
boolean result = wxFormPushUserService.removeByIds(idsLong); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,93 @@ |
|||||
|
package com.qs.serve.modules.wx.entity; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 表单类型 实体类 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Data |
||||
|
@TableName("wx_form_push_type") |
||||
|
public class WxFormPushType implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
@TableId(type = IdType.ASSIGN_UUID) |
||||
|
private String id; |
||||
|
|
||||
|
/** 编码 */ |
||||
|
@Length(max = 255,message = "编码长度不能超过255字") |
||||
|
private String code; |
||||
|
|
||||
|
/** 标题 */ |
||||
|
@Length(max = 255,message = "标题长度不能超过255字") |
||||
|
private String title; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 600,message = "备注长度不能超过600字") |
||||
|
private String remark; |
||||
|
|
||||
|
/** 创建时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@TableField(fill = FieldFill.INSERT) |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
/** 最后更新时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@TableField(fill = FieldFill.UPDATE) |
||||
|
private LocalDateTime updateTime; |
||||
|
|
||||
|
/** 所属租户 */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String tenantId; |
||||
|
|
||||
|
/** 创建人 */ |
||||
|
@TableField(fill = FieldFill.INSERT) |
||||
|
private String createBy; |
||||
|
|
||||
|
/** 更新人 */ |
||||
|
@TableField(fill = FieldFill.UPDATE) |
||||
|
private String updateBy; |
||||
|
|
||||
|
/** 逻辑删除标记(0:显示;1:隐藏) */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String delFlag; |
||||
|
|
||||
|
|
||||
|
public static WxFormPushType toNewObject(WxFormPushType source){ |
||||
|
WxFormPushType formPushType = new WxFormPushType(); |
||||
|
formPushType.setId(source.getId()); |
||||
|
formPushType.setCode(source.getCode()); |
||||
|
formPushType.setTitle(source.getTitle()); |
||||
|
formPushType.setRemark(source.getRemark()); |
||||
|
formPushType.setCreateTime(source.getCreateTime()); |
||||
|
formPushType.setUpdateTime(source.getUpdateTime()); |
||||
|
formPushType.setTenantId(source.getTenantId()); |
||||
|
formPushType.setCreateBy(source.getCreateBy()); |
||||
|
formPushType.setUpdateBy(source.getUpdateBy()); |
||||
|
formPushType.setDelFlag(source.getDelFlag()); |
||||
|
return formPushType; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,44 @@ |
|||||
|
package com.qs.serve.modules.wx.entity.bo; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 表单类型 Bo |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WxFormPushTypeBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
private String id; |
||||
|
|
||||
|
/** 编码 */ |
||||
|
@Length(max = 255,message = "编码长度不能超过255字") |
||||
|
private String code; |
||||
|
|
||||
|
/** 标题 */ |
||||
|
@Length(max = 255,message = "标题长度不能超过255字") |
||||
|
private String title; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 600,message = "备注长度不能超过600字") |
||||
|
private String remark; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,91 @@ |
|||||
|
package com.qs.serve.modules.wx.entity.bo; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 表单推送用户 Bo |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WxFormPushUserBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
private Long id; |
||||
|
|
||||
|
/** 推送id */ |
||||
|
@Length(max = 36,message = "推送id长度不能超过36字") |
||||
|
private String formPushId; |
||||
|
|
||||
|
/** 用户id */ |
||||
|
@Length(max = 64,message = "用户id长度不能超过64字") |
||||
|
private String userId; |
||||
|
|
||||
|
/** 用户编码 */ |
||||
|
@Length(max = 255,message = "用户编码长度不能超过255字") |
||||
|
private String userCode; |
||||
|
|
||||
|
/** 用户名称 */ |
||||
|
@Length(max = 255,message = "用户名称长度不能超过255字") |
||||
|
private String userName; |
||||
|
|
||||
|
/** 是否已读 */ |
||||
|
private Integer readFlag; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 600,message = "备注长度不能超过600字") |
||||
|
private String remark; |
||||
|
|
||||
|
/** 创建时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
/** 最后更新时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime updateTime; |
||||
|
|
||||
|
/** 所属租户 */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String tenantId; |
||||
|
|
||||
|
/** 创建人 */ |
||||
|
private String createBy; |
||||
|
|
||||
|
/** 更新人 */ |
||||
|
private String updateBy; |
||||
|
|
||||
|
/** 逻辑删除标记(0:显示;1:隐藏) */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** 分类id */ |
||||
|
@Length(max = 36,message = "分类id长度不能超过36字") |
||||
|
private String typeId; |
||||
|
|
||||
|
/** 分类编码 */ |
||||
|
@Length(max = 255,message = "分类编码长度不能超过255字") |
||||
|
private String typeCode; |
||||
|
|
||||
|
/** 分类 */ |
||||
|
@Length(max = 255,message = "分类长度不能超过255字") |
||||
|
private String typeName; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,36 @@ |
|||||
|
package com.qs.serve.modules.wx.entity.so; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 表单类型 查询参数 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WxFormPushTypeSo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
|
||||
|
/** 编码 */ |
||||
|
private String code; |
||||
|
|
||||
|
/** 标题 */ |
||||
|
private String title; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,83 @@ |
|||||
|
package com.qs.serve.modules.wx.entity.so; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 表单推送用户 查询参数 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WxFormPushUserSo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
private Long id; |
||||
|
|
||||
|
/** 推送id */ |
||||
|
private String formPushId; |
||||
|
|
||||
|
/** 用户id */ |
||||
|
private String userId; |
||||
|
|
||||
|
/** 用户编码 */ |
||||
|
private String userCode; |
||||
|
|
||||
|
/** 用户名称 */ |
||||
|
private String userName; |
||||
|
|
||||
|
/** 是否已读 */ |
||||
|
private Integer readFlag; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
private String remark; |
||||
|
|
||||
|
/** 创建时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
/** 最后更新时间 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime updateTime; |
||||
|
|
||||
|
/** 所属租户 */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String tenantId; |
||||
|
|
||||
|
/** 创建人 */ |
||||
|
private String createBy; |
||||
|
|
||||
|
/** 更新人 */ |
||||
|
private String updateBy; |
||||
|
|
||||
|
/** 逻辑删除标记(0:显示;1:隐藏) */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** 分类id */ |
||||
|
private String typeId; |
||||
|
|
||||
|
/** 分类编码 */ |
||||
|
private String typeCode; |
||||
|
|
||||
|
/** 分类 */ |
||||
|
private String typeName; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.wx.mapper; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.qs.serve.modules.wx.entity.WxFormPushType; |
||||
|
|
||||
|
/** |
||||
|
* 表单类型 Mapper |
||||
|
* @author YenHex |
||||
|
* @date 2023-04-24 |
||||
|
*/ |
||||
|
public interface WxFormPushTypeMapper extends BaseMapper<WxFormPushType> { |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.wx.service; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.qs.serve.modules.wx.entity.WxFormPushType; |
||||
|
|
||||
|
/** |
||||
|
* 表单类型 服务接口 |
||||
|
* @author YenHex |
||||
|
* @date 2023-04-24 |
||||
|
*/ |
||||
|
public interface WxFormPushTypeService extends IService<WxFormPushType> { |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,22 @@ |
|||||
|
package com.qs.serve.modules.wx.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.qs.serve.modules.wx.entity.WxFormPushType; |
||||
|
import com.qs.serve.modules.wx.service.WxFormPushTypeService; |
||||
|
import com.qs.serve.modules.wx.mapper.WxFormPushTypeMapper; |
||||
|
|
||||
|
/** |
||||
|
* 表单类型 服务实现类 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-24 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
@AllArgsConstructor |
||||
|
public class WxFormPushTypeServiceImpl extends ServiceImpl<WxFormPushTypeMapper,WxFormPushType> implements WxFormPushTypeService { |
||||
|
|
||||
|
} |
||||
|
|
Loading…
Reference in new issue