25 changed files with 919 additions and 156 deletions
@ -0,0 +1,16 @@ |
|||||
|
package com.qs.serve.common.model.dto; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2023/4/7 |
||||
|
*/ |
||||
|
@Data |
||||
|
@AllArgsConstructor |
||||
|
public class TargetDTO { |
||||
|
String targetId; |
||||
|
String targetCode; |
||||
|
String targetName; |
||||
|
} |
@ -0,0 +1,126 @@ |
|||||
|
package com.qs.serve.modules.baz.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.baz.entity.so.BazVisitInstanceFlowSo; |
||||
|
import com.qs.serve.modules.baz.entity.bo.BazVisitInstanceFlowBo; |
||||
|
import com.qs.serve.modules.baz.entity.BazVisitInstanceFlow; |
||||
|
import com.qs.serve.modules.baz.service.BazVisitInstanceFlowService; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 拜访模块 拜访实例流程 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-07 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@AllArgsConstructor |
||||
|
//@RestController
|
||||
|
//@RequestMapping("baz/visitInstanceFlow")
|
||||
|
public class BazVisitInstanceFlowController { |
||||
|
|
||||
|
private BazVisitInstanceFlowService bazVisitInstanceFlowService; |
||||
|
|
||||
|
/** |
||||
|
* 列表 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
//@GetMapping("/list")
|
||||
|
@PreAuthorize("hasRole('baz:visitInstanceFlow:query')") |
||||
|
public R<List<BazVisitInstanceFlow>> getList(BazVisitInstanceFlowSo param){ |
||||
|
BazVisitInstanceFlow entity = CopierUtil.copy(param,new BazVisitInstanceFlow()); |
||||
|
LambdaQueryWrapper<BazVisitInstanceFlow> lqw = new LambdaQueryWrapper<>(entity); |
||||
|
PageUtil.startPage(); |
||||
|
List<BazVisitInstanceFlow> list = bazVisitInstanceFlowService.list(lqw); |
||||
|
return R.ok(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 翻页 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
//@GetMapping("/page")
|
||||
|
@PreAuthorize("hasRole('baz:visitInstanceFlow:query')") |
||||
|
public R<PageVo<BazVisitInstanceFlow>> getPage(BazVisitInstanceFlowSo param){ |
||||
|
BazVisitInstanceFlow entity = CopierUtil.copy(param,new BazVisitInstanceFlow()); |
||||
|
LambdaQueryWrapper<BazVisitInstanceFlow> lqw = new LambdaQueryWrapper<>(entity); |
||||
|
PageUtil.startPage(); |
||||
|
List<BazVisitInstanceFlow> list = bazVisitInstanceFlowService.list(lqw); |
||||
|
return R.byPageHelperList(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* ID查询 |
||||
|
* @param id |
||||
|
* @return |
||||
|
*/ |
||||
|
//@GetMapping("/getById/{id}")
|
||||
|
@SysLog(module = SystemModule.BAZ, title = "拜访实例流程", biz = BizType.QUERY) |
||||
|
@PreAuthorize("hasRole('baz:visitInstanceFlow:query')") |
||||
|
public R<BazVisitInstanceFlow> getById(@PathVariable("id") String id){ |
||||
|
BazVisitInstanceFlow bazVisitInstanceFlow = bazVisitInstanceFlowService.getById(id); |
||||
|
return R.ok(bazVisitInstanceFlow); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 更新 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
//@PostMapping("/updateById")
|
||||
|
@SysLog(module = SystemModule.BAZ, title = "拜访实例流程", biz = BizType.UPDATE) |
||||
|
@PreAuthorize("hasRole('baz:visitInstanceFlow:update')") |
||||
|
public R<?> updateById(@RequestBody @Valid BazVisitInstanceFlowBo param){ |
||||
|
BazVisitInstanceFlow entity = CopierUtil.copy(param,new BazVisitInstanceFlow()); |
||||
|
boolean result = bazVisitInstanceFlowService.updateById(entity); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
//@PostMapping("/save")
|
||||
|
@SysLog(module = SystemModule.BAZ, title = "拜访实例流程", biz = BizType.INSERT) |
||||
|
@PreAuthorize("hasRole('baz:visitInstanceFlow:insert')") |
||||
|
public R<?> save(@RequestBody @Valid BazVisitInstanceFlowBo param){ |
||||
|
BazVisitInstanceFlow entity = CopierUtil.copy(param,new BazVisitInstanceFlow()); |
||||
|
boolean result = bazVisitInstanceFlowService.save(entity); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除 |
||||
|
* @param ids |
||||
|
* @return |
||||
|
*/ |
||||
|
@DeleteMapping("/deleteById/{ids}") |
||||
|
@SysLog(module = SystemModule.BAZ, title = "拜访实例流程", biz = BizType.DELETE) |
||||
|
@PreAuthorize("hasRole('baz:visitInstanceFlow:delete')") |
||||
|
public R<?> deleteById(@PathVariable("ids") String ids){ |
||||
|
List<Long> idsLong = StringUtils.splitIdLong(ids); |
||||
|
boolean result = bazVisitInstanceFlowService.removeByIds(idsLong); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,95 @@ |
|||||
|
package com.qs.serve.modules.baz.controller.my; |
||||
|
|
||||
|
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.AuthContextUtils; |
||||
|
import com.qs.serve.common.util.CopierUtil; |
||||
|
import com.qs.serve.common.util.PageUtil; |
||||
|
import com.qs.serve.common.util.StringUtils; |
||||
|
import com.qs.serve.modules.baz.entity.BazVisitInstance; |
||||
|
import com.qs.serve.modules.baz.entity.bo.BazCreateVisitInstanceBo; |
||||
|
import com.qs.serve.modules.baz.entity.bo.BazVisitInstanceFlowBo; |
||||
|
import com.qs.serve.modules.baz.entity.so.BazVisitInstanceSo; |
||||
|
import com.qs.serve.modules.baz.service.BazVisitInstanceService; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 拜访模块 拜访实例(我的) |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-07 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@AllArgsConstructor |
||||
|
@RestController |
||||
|
@RequestMapping("baz/myVisitInstance") |
||||
|
public class BazMyVisitInstanceController { |
||||
|
|
||||
|
private BazVisitInstanceService bazVisitInstanceService; |
||||
|
|
||||
|
/** |
||||
|
* 翻页 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@GetMapping("/page") |
||||
|
public R<PageVo<BazVisitInstance>> getPage(BazVisitInstanceSo param){ |
||||
|
BazVisitInstance entity = CopierUtil.copy(param,new BazVisitInstance()); |
||||
|
LambdaQueryWrapper<BazVisitInstance> lqw = new LambdaQueryWrapper<>(entity); |
||||
|
PageUtil.startPage(); |
||||
|
lqw.eq(BazVisitInstance::getVisitorId, AuthContextUtils.getSysUserId()); |
||||
|
lqw.orderByDesc(BazVisitInstance::getCreateTime); |
||||
|
List<BazVisitInstance> list = bazVisitInstanceService.list(lqw); |
||||
|
return R.byPageHelperList(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 创建流程 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("/create") |
||||
|
@SysLog(module = SystemModule.BAZ, title = "拜访实例", biz = BizType.INSERT) |
||||
|
public R<BazVisitInstance> save(@RequestBody @Valid BazCreateVisitInstanceBo param){ |
||||
|
BazVisitInstance result = bazVisitInstanceService.create(param); |
||||
|
return R.ok(result); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 提交流程 |
||||
|
* @param param |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("/submitFlow") |
||||
|
@SysLog(module = SystemModule.BAZ, title = "拜访实例", biz = BizType.INSERT) |
||||
|
public R<BazVisitInstance> save(@RequestBody @Valid BazVisitInstanceFlowBo param){ |
||||
|
bazVisitInstanceService.submit(param); |
||||
|
return R.ok(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除 |
||||
|
* @param ids |
||||
|
* @return |
||||
|
*/ |
||||
|
@DeleteMapping("/deleteById/{ids}") |
||||
|
@SysLog(module = SystemModule.BAZ, title = "拜访实例", biz = BizType.DELETE) |
||||
|
public R<?> deleteById(@PathVariable("ids") String ids){ |
||||
|
List<Long> idsLong = StringUtils.splitIdLong(ids); |
||||
|
LambdaQueryWrapper<BazVisitInstance> lqw = new LambdaQueryWrapper<>(); |
||||
|
lqw.in(BazVisitInstance::getId,idsLong); |
||||
|
lqw.eq(BazVisitInstance::getVisitorId, AuthContextUtils.getSysUserId()); |
||||
|
boolean result = bazVisitInstanceService.remove(lqw); |
||||
|
return R.isTrue(result); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,197 @@ |
|||||
|
package com.qs.serve.modules.baz.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 com.qs.serve.common.model.dto.TargetDTO; |
||||
|
import com.qs.serve.modules.baz.entity.bo.BazVisitInstanceFlowBo; |
||||
|
import com.qs.serve.modules.sys.entity.SysUser; |
||||
|
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-07 |
||||
|
*/ |
||||
|
@Data |
||||
|
@TableName("baz_visit_instance_flow") |
||||
|
public class BazVisitInstanceFlow implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
@TableId(type = IdType.AUTO) |
||||
|
private Long id; |
||||
|
|
||||
|
/** 拜访实例id */ |
||||
|
@NotNull(message = "拜访实例id不能为空") |
||||
|
private Long visitInstanceId; |
||||
|
|
||||
|
/** 拜访id */ |
||||
|
@NotNull(message = "拜访id不能为空") |
||||
|
private Long visitId; |
||||
|
|
||||
|
/** 目标类型 */ |
||||
|
@NotBlank(message = "目标类型不能为空") |
||||
|
@Length(max = 255,message = "目标类型长度不能超过255字") |
||||
|
private String targetType; |
||||
|
|
||||
|
/** 目标id */ |
||||
|
@NotBlank(message = "目标id不能为空") |
||||
|
@Length(max = 255,message = "目标id长度不能超过255字") |
||||
|
private String targetId; |
||||
|
|
||||
|
/** 目标编码 */ |
||||
|
@Length(max = 255,message = "目标编码长度不能超过255字") |
||||
|
private String targetCode; |
||||
|
|
||||
|
/** 目标名称 */ |
||||
|
@NotBlank(message = "目标名称不能为空") |
||||
|
@Length(max = 255,message = "目标名称长度不能超过255字") |
||||
|
private String targetName; |
||||
|
|
||||
|
/** 目标地址id */ |
||||
|
@Length(max = 255,message = "目标地址id长度不能超过255字") |
||||
|
private String targetAddressId; |
||||
|
|
||||
|
/** 流程名称 */ |
||||
|
@NotBlank(message = "流程名称不能为空") |
||||
|
@Length(max = 255,message = "流程名称长度不能超过255字") |
||||
|
private String flowTitle; |
||||
|
|
||||
|
/** 排序 */ |
||||
|
private Integer flowSort; |
||||
|
|
||||
|
/** 是否可忽略当前流程 */ |
||||
|
private Integer ignoreFlag; |
||||
|
|
||||
|
/** 是否定位 */ |
||||
|
private Integer positionState; |
||||
|
|
||||
|
/** 是否拍照 */ |
||||
|
private Integer photoState; |
||||
|
|
||||
|
/** 表单id(0表示空值) */ |
||||
|
private Long formId; |
||||
|
|
||||
|
/** 表单Json */ |
||||
|
@Length(max = 0,message = "表单Json长度不能超过0字") |
||||
|
private String formJson; |
||||
|
|
||||
|
/** 输入值 */ |
||||
|
@Length(max = 255,message = "输入值长度不能超过255字") |
||||
|
private String valInputValue; |
||||
|
|
||||
|
/** 地图地址 */ |
||||
|
private String mapAddress; |
||||
|
|
||||
|
/** 纬度 */ |
||||
|
@Length(max = 255,message = "纬度长度不能超过255字") |
||||
|
private String valLocalX; |
||||
|
|
||||
|
/** 经度 */ |
||||
|
@Length(max = 255,message = "经度长度不能超过255字") |
||||
|
private String valLocalY; |
||||
|
|
||||
|
/** 拍照图片地址 */ |
||||
|
@Length(max = 4000,message = "拍照图片地址长度不能超过4000字") |
||||
|
private String valPhotoUrls; |
||||
|
|
||||
|
/** 表单填写json */ |
||||
|
@Length(max = 0,message = "表单填写json长度不能超过0字") |
||||
|
private String valFormValue; |
||||
|
|
||||
|
/** 拜访人id */ |
||||
|
@NotBlank(message = "拜访人id不能为空") |
||||
|
@Length(max = 255,message = "拜访人id长度不能超过255字") |
||||
|
private String visitorId; |
||||
|
|
||||
|
/** 拜访人编码 */ |
||||
|
@NotBlank(message = "拜访人编码不能为空") |
||||
|
@Length(max = 255,message = "拜访人编码长度不能超过255字") |
||||
|
private String visitorCode; |
||||
|
|
||||
|
/** 拜访人 */ |
||||
|
@NotBlank(message = "拜访人不能为空") |
||||
|
@Length(max = 255,message = "拜访人长度不能超过255字") |
||||
|
private String visitorName; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
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; |
||||
|
|
||||
|
/** 逻辑删除标记(0:显示;1:隐藏) */ |
||||
|
@JsonIgnore |
||||
|
@JsonProperty |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** 创建人 */ |
||||
|
@TableField(fill = FieldFill.INSERT) |
||||
|
private String createBy; |
||||
|
|
||||
|
/** 更新人 */ |
||||
|
@TableField(fill = FieldFill.UPDATE) |
||||
|
private String updateBy; |
||||
|
|
||||
|
|
||||
|
public static BazVisitInstanceFlow toNewObject(BazVisitFlow source, TargetDTO targetDTO, SysUser user){ |
||||
|
BazVisitInstanceFlow visitInstanceFlow = new BazVisitInstanceFlow(); |
||||
|
visitInstanceFlow.setVisitId(source.getVisitId()); |
||||
|
visitInstanceFlow.setTargetType(source.getTargetType()); |
||||
|
visitInstanceFlow.setTargetId(targetDTO.getTargetId()); |
||||
|
visitInstanceFlow.setTargetCode(targetDTO.getTargetCode()); |
||||
|
visitInstanceFlow.setTargetName(targetDTO.getTargetName()); |
||||
|
visitInstanceFlow.setFlowTitle(source.getFlowTitle()); |
||||
|
visitInstanceFlow.setFlowSort(source.getFlowSort()); |
||||
|
visitInstanceFlow.setIgnoreFlag(source.getIgnoreFlag()); |
||||
|
visitInstanceFlow.setPositionState(source.getPositionState()); |
||||
|
visitInstanceFlow.setPhotoState(source.getPhotoState()); |
||||
|
visitInstanceFlow.setFormId(source.getFormId()); |
||||
|
visitInstanceFlow.setVisitorId(user.getId()); |
||||
|
visitInstanceFlow.setVisitorCode(user.getCode()); |
||||
|
visitInstanceFlow.setVisitorName(user.getName()); |
||||
|
return visitInstanceFlow; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public void initInputValues(BazVisitInstanceFlowBo source){ |
||||
|
this.setTargetAddressId(source.getTargetAddressId()); |
||||
|
//this.setFormJson(source.getFormJson());
|
||||
|
this.setValInputValue(source.getValInputValue()); |
||||
|
this.setValLocalX(source.getValLocalX()); |
||||
|
this.setValLocalY(source.getValLocalY()); |
||||
|
this.setValPhotoUrls(source.getValPhotoUrls()); |
||||
|
this.setValFormValue(source.getValFormValue()); |
||||
|
this.setMapAddress(source.getMapAddress()); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,41 @@ |
|||||
|
package com.qs.serve.modules.baz.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-07 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BazCreateVisitInstanceBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 拜访类型id */ |
||||
|
@NotNull(message = "拜访类型id不能为空") |
||||
|
private Long visitId; |
||||
|
|
||||
|
/** 目标id */ |
||||
|
@NotBlank(message = "目标id不能为空") |
||||
|
@Length(max = 255,message = "目标id长度不能超过255字") |
||||
|
private String targetId; |
||||
|
|
||||
|
/** 首次提交信息对象 */ |
||||
|
private BazVisitInstanceFlowBo firstFlowSubmit; |
||||
|
|
||||
|
} |
||||
|
|
@ -1,107 +0,0 @@ |
|||||
package com.qs.serve.modules.baz.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-07 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class BazVisitInstanceBo implements Serializable { |
|
||||
|
|
||||
private static final long serialVersionUID = 1L; |
|
||||
|
|
||||
/** id */ |
|
||||
private Long id; |
|
||||
|
|
||||
/** 标题 */ |
|
||||
@NotBlank(message = "标题不能为空") |
|
||||
@Length(max = 255,message = "标题长度不能超过255字") |
|
||||
private String title; |
|
||||
|
|
||||
/** 拜访类型id */ |
|
||||
@NotNull(message = "拜访类型id不能为空") |
|
||||
private Long visitId; |
|
||||
|
|
||||
/** 目标类型 */ |
|
||||
@NotBlank(message = "目标类型不能为空") |
|
||||
@Length(max = 255,message = "目标类型长度不能超过255字") |
|
||||
private String targetType; |
|
||||
|
|
||||
/** 拜访状态:0-进行中;1-完成 */ |
|
||||
@NotNull(message = "拜访状态:0-进行中;1-完成不能为空") |
|
||||
private Integer visitState; |
|
||||
|
|
||||
/** 拜访人id */ |
|
||||
@NotBlank(message = "拜访人id不能为空") |
|
||||
@Length(max = 255,message = "拜访人id长度不能超过255字") |
|
||||
private String visitorId; |
|
||||
|
|
||||
/** 拜访人编码 */ |
|
||||
@NotBlank(message = "拜访人编码不能为空") |
|
||||
@Length(max = 255,message = "拜访人编码长度不能超过255字") |
|
||||
private String visitorCode; |
|
||||
|
|
||||
/** 拜访人 */ |
|
||||
@NotBlank(message = "拜访人不能为空") |
|
||||
@Length(max = 255,message = "拜访人长度不能超过255字") |
|
||||
private String visitorName; |
|
||||
|
|
||||
/** 目标id */ |
|
||||
@NotBlank(message = "目标id不能为空") |
|
||||
@Length(max = 255,message = "目标id长度不能超过255字") |
|
||||
private String targetId; |
|
||||
|
|
||||
/** 目标i编码 */ |
|
||||
@Length(max = 255,message = "目标i编码长度不能超过255字") |
|
||||
private String targetCode; |
|
||||
|
|
||||
/** 目标名称 */ |
|
||||
@NotBlank(message = "目标名称不能为空") |
|
||||
@Length(max = 255,message = "目标名称长度不能超过255字") |
|
||||
private String targetName; |
|
||||
|
|
||||
/** 备注 */ |
|
||||
@Length(max = 255,message = "备注长度不能超过255字") |
|
||||
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; |
|
||||
|
|
||||
/** 逻辑删除标记(0:显示;1:隐藏) */ |
|
||||
@JsonIgnore |
|
||||
@JsonProperty |
|
||||
private String delFlag; |
|
||||
|
|
||||
/** 创建人 */ |
|
||||
private String createBy; |
|
||||
|
|
||||
/** 更新人 */ |
|
||||
private String updateBy; |
|
||||
|
|
||||
} |
|
||||
|
|
@ -0,0 +1,63 @@ |
|||||
|
package com.qs.serve.modules.baz.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-07 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BazVisitInstanceFlowBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 实例的流程id(首次提交可忽略) */ |
||||
|
@NotNull(message = "拜访实例id不能为空") |
||||
|
private Long instanceFlowId; |
||||
|
|
||||
|
/** 目标地址id(用不上可忽略) */ |
||||
|
@Length(max = 255,message = "目标地址id长度不能超过255字") |
||||
|
private String targetAddressId; |
||||
|
|
||||
|
/** 输入值(用不上可忽略) */ |
||||
|
private String valInputValue; |
||||
|
|
||||
|
/** 地图地址 */ |
||||
|
private String mapAddress; |
||||
|
|
||||
|
/** 纬度 */ |
||||
|
@Length(max = 255,message = "纬度长度不能超过255字") |
||||
|
private String valLocalX; |
||||
|
|
||||
|
/** 经度 */ |
||||
|
@Length(max = 255,message = "经度长度不能超过255字") |
||||
|
private String valLocalY; |
||||
|
|
||||
|
/** 拍照图片地址 */ |
||||
|
@Length(max = 4000,message = "拍照图片地址长度不能超过4000字") |
||||
|
private String valPhotoUrls; |
||||
|
|
||||
|
/** 表单填写json */ |
||||
|
@Length(max = 0,message = "表单填写json长度不能超过0字") |
||||
|
private String valFormValue; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
private String remark; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,90 @@ |
|||||
|
package com.qs.serve.modules.baz.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-07 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BazVisitInstanceFlowSo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id */ |
||||
|
private Long id; |
||||
|
|
||||
|
/** 拜访实例id */ |
||||
|
private Long visitInstanceId; |
||||
|
|
||||
|
/** 拜访id */ |
||||
|
private Long visitId; |
||||
|
|
||||
|
/** 目标id */ |
||||
|
private String targetId; |
||||
|
|
||||
|
/** 目标编码 */ |
||||
|
private String targetCode; |
||||
|
|
||||
|
/** 目标名称 */ |
||||
|
private String targetName; |
||||
|
|
||||
|
/** 目标地址id */ |
||||
|
private String targetAddressId; |
||||
|
|
||||
|
/** 流程名称 */ |
||||
|
private String flowTitle; |
||||
|
|
||||
|
/** 排序 */ |
||||
|
private Integer flowSort; |
||||
|
|
||||
|
/** 是否可忽略当前流程 */ |
||||
|
private Integer ignoreFlag; |
||||
|
|
||||
|
/** 是否定位 */ |
||||
|
private Integer positionState; |
||||
|
|
||||
|
/** 是否拍照 */ |
||||
|
private Integer photoState; |
||||
|
|
||||
|
/** 表单id(0表示空值) */ |
||||
|
private Long formId; |
||||
|
|
||||
|
/** 表单Json */ |
||||
|
private String formJson; |
||||
|
|
||||
|
/** 输入值 */ |
||||
|
private String valInputValue; |
||||
|
|
||||
|
/** 纬度 */ |
||||
|
private String valLocalX; |
||||
|
|
||||
|
/** 经度 */ |
||||
|
private String valLocalY; |
||||
|
|
||||
|
/** 拍照图片地址 */ |
||||
|
private String valPhotoUrls; |
||||
|
|
||||
|
/** 表单填写json */ |
||||
|
private String valFormValue; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
private String remark; |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.baz.mapper; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.qs.serve.modules.baz.entity.BazVisitInstanceFlow; |
||||
|
|
||||
|
/** |
||||
|
* 拜访实例流程 Mapper |
||||
|
* @author YenHex |
||||
|
* @date 2023-04-07 |
||||
|
*/ |
||||
|
public interface BazVisitInstanceFlowMapper extends BaseMapper<BazVisitInstanceFlow> { |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.baz.service; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.qs.serve.modules.baz.entity.BazVisitInstanceFlow; |
||||
|
|
||||
|
/** |
||||
|
* 拜访实例流程 服务接口 |
||||
|
* @author YenHex |
||||
|
* @date 2023-04-07 |
||||
|
*/ |
||||
|
public interface BazVisitInstanceFlowService extends IService<BazVisitInstanceFlow> { |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,22 @@ |
|||||
|
package com.qs.serve.modules.baz.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.baz.entity.BazVisitInstanceFlow; |
||||
|
import com.qs.serve.modules.baz.service.BazVisitInstanceFlowService; |
||||
|
import com.qs.serve.modules.baz.mapper.BazVisitInstanceFlowMapper; |
||||
|
|
||||
|
/** |
||||
|
* 拜访实例流程 服务实现类 |
||||
|
* @author YenHex |
||||
|
* @since 2023-04-07 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
@AllArgsConstructor |
||||
|
public class BazVisitInstanceFlowServiceImpl extends ServiceImpl<BazVisitInstanceFlowMapper,BazVisitInstanceFlow> implements BazVisitInstanceFlowService { |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,35 @@ |
|||||
|
package com.qs.serve.modules.bms.entity.bo; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2022/11/7 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BmsChannelPointMapInfoBo { |
||||
|
|
||||
|
/** id */ |
||||
|
@TableId(type = IdType.AUTO) |
||||
|
private Long id; |
||||
|
|
||||
|
|
||||
|
/** 纬度 */ |
||||
|
@Length(max = 255,message = "纬度长度不能超过255字") |
||||
|
private String localX; |
||||
|
|
||||
|
/** 经度 */ |
||||
|
@Length(max = 255,message = "经度长度不能超过255字") |
||||
|
private String localY; |
||||
|
|
||||
|
/** 地图地址 */ |
||||
|
@Length(max = 255,message = "地图地址长度不能超过255字") |
||||
|
private String mapAddress; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue