Commit c24f33d5 authored by taabe's avatar taabe

Merge branch 'developer' of http://172.16.10.76/moa/amos-boot-biz into developer

# Conflicts: # amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/service/IPowerTransferService.java # amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertSubmittedController.java # amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
parents c3575f6c d2b16664
...@@ -17,12 +17,17 @@ import java.util.Date; ...@@ -17,12 +17,17 @@ import java.util.Date;
@Data @Data
public class BaseEntity implements Serializable{ public class BaseEntity implements Serializable{
@TableId(value = "SEQUENCE_NBR" , type = IdType.ID_WORKER) /**
*
*/
private static final long serialVersionUID = 1L;
@TableId(value = "sequence_nbr" , type = IdType.ID_WORKER)
protected Long sequenceNbr; protected Long sequenceNbr;
@TableField(value = "REC_DATE",fill=FieldFill.INSERT_UPDATE ) @TableField(value = "rec_data",fill=FieldFill.INSERT_UPDATE )
protected Date recDate; protected Date recDate;
@TableField(value = "REC_USER_ID",fill=FieldFill.INSERT_UPDATE ) @TableField(value = "rec_user_id",fill=FieldFill.INSERT_UPDATE )
protected String recUserId; protected String recUserId;
/** /**
* 是否删除 * 是否删除
......
package com.yeejoin.amos.boot.module.jcs.api.client;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jcs.api.dto.EquipSpecificDto;
import com.yeejoin.amos.boot.module.jcs.api.dto.EquipmentOnCarDto;
import com.yeejoin.amos.component.feign.config.InnerInvokException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import java.util.List;
import java.util.Map;
/**
* 装备服务feign
*
* @author Dell
*/
@FeignClient(name = "AMOS-EQUIPMANAGE", path = "equip", configuration = {MultipartSupportConfig.class})
public interface EquipFeignClient {
/**
* 获取未列装人员装备列表数据
*
* @return
*/
@RequestMapping(value = "/equipSpecific/getAirEquipSpecificPage", method = RequestMethod.POST)
ResponseModel<Page<EquipmentOnCarDto>> getAirEquipSpecificPage(@RequestBody EquipSpecificDto var1) throws InnerInvokException;
/**
* 人员装备列装
*
* @return
*/
@RequestMapping(value = "/stock-detail/airport/person/bind", method = RequestMethod.POST)
ResponseModel<List<Object>> stockBindEquip(@RequestBody List<Long> ids) throws InnerInvokException;
/**
* 人员装备退装
*
* @return
*/
@RequestMapping(value = "/scrap/airport/person", method = RequestMethod.POST)
ResponseModel<Object> scrapEquip(@RequestBody String id) throws InnerInvokException;
/**
* 人员装备回库
*
* @return
*/
@RequestMapping(value = "/stock-detail/airport/person", method = RequestMethod.POST)
ResponseModel<Object> stockEquip(@RequestBody Map<String, Object> map) throws InnerInvokException;
/**
* 装备详情
*
* @return
*/
@RequestMapping(value = "/equipSpecific/getAirEquipSpecificDetail", method = RequestMethod.GET)
ResponseModel<Object> getAirEquipSpecificDetail(@RequestParam Long stockDetailId) throws InnerInvokException;
}
package com.yeejoin.amos.boot.module.jcs.api.client;
import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.cloud.openfeign.support.SpringEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Author: xl
* @Description:
* @Date: 2020/3/30 16:26
*/
@Configuration
public class MultipartSupportConfig {
@Autowired
private ObjectFactory<HttpMessageConverters> messageConverters;
@Bean
public Encoder feignFormEncoder() {
return new SpringFormEncoder(new SpringEncoder(messageConverters));
}
}
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AlertCalledDto", description="警情接警记录") @ApiModel(value="AlertCalledDto", description="警情接警记录")
public class AlertCalledDto extends BaseDto{ public class AlertCalledDto extends BaseDto{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 警情表单 * 警情表单
* *
...@@ -11,6 +12,7 @@ import lombok.Data; ...@@ -11,6 +12,7 @@ import lombok.Data;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AlertFromDto", description="警情表单") @ApiModel(value="AlertFromDto", description="警情表单")
public class AlertFromDto extends BaseDto{ public class AlertFromDto extends BaseDto{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 动态表单类型 * 动态表单类型
* *
...@@ -11,6 +12,7 @@ import lombok.Data; ...@@ -11,6 +12,7 @@ import lombok.Data;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AlertFromTypeDto", description="动态表单类型") @ApiModel(value="AlertFromTypeDto", description="动态表单类型")
public class AlertFromTypeDto extends BaseDto { public class AlertFromTypeDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* *
* *
...@@ -11,6 +12,7 @@ import lombok.Data; ...@@ -11,6 +12,7 @@ import lombok.Data;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AlertFromValueDto", description="") @ApiModel(value="AlertFromValueDto", description="")
public class AlertFromValueDto extends BaseDto { public class AlertFromValueDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List; import java.util.List;
...@@ -15,6 +16,7 @@ import java.util.List; ...@@ -15,6 +16,7 @@ import java.util.List;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AlertSubmittedDto", description="警情报送记录") @ApiModel(value="AlertSubmittedDto", description="警情报送记录")
public class AlertSubmittedDto extends BaseDto{ public class AlertSubmittedDto extends BaseDto{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 报送对象 * 报送对象
* *
...@@ -11,6 +12,7 @@ import lombok.Data; ...@@ -11,6 +12,7 @@ import lombok.Data;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AlertSubmittedObjectDto", description="报送对象") @ApiModel(value="AlertSubmittedObjectDto", description="报送对象")
public class AlertSubmittedObjectDto extends BaseDto { public class AlertSubmittedObjectDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 数据字典 * 数据字典
* *
...@@ -11,6 +12,7 @@ import lombok.Data; ...@@ -11,6 +12,7 @@ import lombok.Data;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="DataDictionaryDto", description="数据字典") @ApiModel(value="DataDictionaryDto", description="数据字典")
public class DataDictionaryDto extends BaseDto { public class DataDictionaryDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -2,10 +2,12 @@ package com.yeejoin.amos.boot.module.jcs.api.dto; ...@@ -2,10 +2,12 @@ package com.yeejoin.amos.boot.module.jcs.api.dto;
import java.util.Date; import java.util.Date;
import org.springframework.data.annotation.Id; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* *
...@@ -17,11 +19,14 @@ import lombok.Data; ...@@ -17,11 +19,14 @@ import lombok.Data;
* @version $Id: ESAlertCalledDto.java, v 0.1 2021年6月23日 下午1:52:07 gwb Exp $ * @version $Id: ESAlertCalledDto.java, v 0.1 2021年6月23日 下午1:52:07 gwb Exp $
*/ */
@Data @Data
public class ESAlertCalledDto { @EqualsAndHashCode(callSuper = true)
@ApiModel(value="ESAlertCalledDto", description="ES警情信息")
public class ESAlertCalledDto extends BaseDto {
/** 主键 */ /**
@Id *
private Long sequenceNbr; */
private static final long serialVersionUID = 1L;
/** /**
* 警情状态 * 警情状态
*/ */
......
package com.yeejoin.amos.boot.module.jcs.api.dto;
import com.yeejoin.amos.boot.module.jcs.api.vo.AlertCalledVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class ESAlertCalledRequestDto extends AlertCalledVo
{
@ApiModelProperty(value = "警情状态")
private String[] alertStatus;
}
package com.yeejoin.amos.boot.module.jcs.api.dto;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @Author: xl
* @Description: 装备分页查询
* @Date: 2021/6/23 11:29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class EquipSpecificDto extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 名称
*/
private String like;
/**
* 状态,默认查询未列装数据
*/
private Integer status = 1;
/**
* 装备分类code(人员装备【10000000】)
*/
private String categoryCode = "10000000";
/**
* 队伍ID
*/
private Long teamId;
/**
* 分页
*/
private Page<?> page;
}
package com.yeejoin.amos.boot.module.jcs.api.dto;
import lombok.Data;
import java.util.Date;
/**
* @Author: xl
* @Description: 装备返回实例
* @Date: 2021/6/23 11:29
*/
@Data
public class EquipmentOnCarDto {
/**
* 车辆ID
*/
private Long carId;
/**
* 设备模板ID
*/
private Long equipmentDetailId;
/**
* 库存详情id
*/
private Long stockDetailId;
/**
* 库存数量
*/
private Double amount;
/**
* 设备实例ID
*/
private Long equipmentSpecificId;
/**
* 设备名称
*/
private String equipmentSpecificName;
/**
* 设备编码
*/
private String equipmentSpecificCode;
/**
* 装备类型
*/
private String equipmentName;
/**
* 状态
*/
private String status;
private String area;
private Long warehouseId;
private Long warehouseStructureId;
private Long equipmentOnCarId;
/**
* 创建日期
*/
private Date createDate;
private String equipDefinitionName;
}
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FireExpertsDto", description="") @ApiModel(value="FireExpertsDto", description="")
public class FireExpertsDto extends BaseDto { public class FireExpertsDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FireTeamDto", description="消防队伍") @ApiModel(value="FireTeamDto", description="消防队伍")
public class FireTeamDto extends BaseDto { public class FireTeamDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersContactsDto", description="l联系人") @ApiModel(value="FirefightersContactsDto", description="l联系人")
public class FirefightersContactsDto extends BaseDto { public class FirefightersContactsDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersContractDto", description="消防员合同") @ApiModel(value="FirefightersContractDto", description="消防员合同")
public class FirefightersContractDto extends BaseDto { public class FirefightersContractDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersDto", description="消防队员") @ApiModel(value="FirefightersDto", description="消防队员")
public class FirefightersDto extends BaseDto { public class FirefightersDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersEducationDto", description="人员学历") @ApiModel(value="FirefightersEducationDto", description="人员学历")
public class FirefightersEducationDto extends BaseDto { public class FirefightersEducationDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersJacketDto", description="消防人员配装记录") @ApiModel(value="FirefightersJacketDto", description="消防人员配装记录")
public class FirefightersJacketDto extends BaseDto { public class FirefightersJacketDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersPostDto", description="岗位信息") @ApiModel(value="FirefightersPostDto", description="岗位信息")
public class FirefightersPostDto extends BaseDto { public class FirefightersPostDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersThoughtDto", description="消防员思想谈话记录") @ApiModel(value="FirefightersThoughtDto", description="消防员思想谈话记录")
public class FirefightersThoughtDto extends BaseDto { public class FirefightersThoughtDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date; import java.util.Date;
/** /**
...@@ -13,6 +14,7 @@ import java.util.Date; ...@@ -13,6 +14,7 @@ import java.util.Date;
* @date 2021-06-07 * @date 2021-06-07
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="FirefightersWorkexperienceDto", description="工作经历") @ApiModel(value="FirefightersWorkexperienceDto", description="工作经历")
public class FirefightersWorkexperienceDto extends BaseDto { public class FirefightersWorkexperienceDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -7,17 +7,24 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -7,17 +7,24 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* @author fengwang * @author fengwang
* @date 2021-06-18. * @date 2021-06-18.
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="OrgUsr对象", description="部门信息") @ApiModel(value="OrgUsr对象", description="部门信息")
public class OrgDepartmentDto extends BaseDto { public class OrgDepartmentDto extends BaseDto {
@ApiModelProperty(value = "部门名称") /**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "部门名称")
private String bizOrgName; private String bizOrgName;
@ApiModelProperty(value = "部门编码") @ApiModelProperty(value = "部门编码")
......
...@@ -7,17 +7,24 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -7,17 +7,24 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* @author fengwang * @author fengwang
* @date 2021-06-18. * @date 2021-06-18.
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="OrgUsr对象", description="人员信息") @ApiModel(value="OrgUsr对象", description="人员信息")
public class OrgPersonDto extends BaseDto { public class OrgPersonDto extends BaseDto {
@ApiModelProperty(value = "人员名称") /**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "人员名称")
private String bizOrgName; private String bizOrgName;
@ApiModelProperty(value = "人员编码") @ApiModelProperty(value = "人员编码")
......
...@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jcs.api.dto; ...@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jcs.api.dto;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* *
* *
...@@ -10,6 +11,7 @@ import lombok.Data; ...@@ -10,6 +11,7 @@ import lombok.Data;
* @date 2021-06-18 * @date 2021-06-18
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="OrgUsrAuthDto", description="") @ApiModel(value="OrgUsrAuthDto", description="")
public class OrgUsrAuthDto extends BaseDto { public class OrgUsrAuthDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 机构/部门/人员表 * 机构/部门/人员表
...@@ -14,6 +15,7 @@ import lombok.Data; ...@@ -14,6 +15,7 @@ import lombok.Data;
* @date 2021-06-18 * @date 2021-06-18
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="OrgUsrDto", description="机构/部门/人员表") @ApiModel(value="OrgUsrDto", description="机构/部门/人员表")
public class OrgUsrDto extends BaseDto { public class OrgUsrDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List; import java.util.List;
...@@ -14,6 +15,7 @@ import java.util.List; ...@@ -14,6 +15,7 @@ import java.util.List;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PowerTransferCompanyDto", description="调派单位") @ApiModel(value="PowerTransferCompanyDto", description="调派单位")
public class PowerTransferCompanyDto extends BaseDto { public class PowerTransferCompanyDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 调派单位资源 * 调派单位资源
* *
...@@ -11,6 +12,7 @@ import lombok.Data; ...@@ -11,6 +12,7 @@ import lombok.Data;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PowerTransferCompanyResourcesDto", description="调派单位资源") @ApiModel(value="PowerTransferCompanyResourcesDto", description="调派单位资源")
public class PowerTransferCompanyResourcesDto extends BaseDto { public class PowerTransferCompanyResourcesDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List; import java.util.List;
...@@ -14,6 +15,7 @@ import java.util.List; ...@@ -14,6 +15,7 @@ import java.util.List;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PowerTransferDto", description="力量调派") @ApiModel(value="PowerTransferDto", description="力量调派")
public class PowerTransferDto extends BaseDto { public class PowerTransferDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jcs.api.dto; ...@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jcs.api.dto;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List; import java.util.List;
...@@ -10,6 +11,7 @@ import java.util.List; ...@@ -10,6 +11,7 @@ import java.util.List;
* @author DELL * @author DELL
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
public class SubmitTargetCompanyDto extends BaseDto { public class SubmitTargetCompanyDto extends BaseDto {
/** /**
......
...@@ -2,12 +2,14 @@ package com.yeejoin.amos.boot.module.jcs.api.dto; ...@@ -2,12 +2,14 @@ package com.yeejoin.amos.boot.module.jcs.api.dto;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 警情报送目标人员dto * 警情报送目标人员dto
* @author DELL * @author DELL
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
public class SubmitTargetPersonDto extends BaseDto{ public class SubmitTargetPersonDto extends BaseDto{
/** /**
......
...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto; ...@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 模板表 * 模板表
...@@ -12,6 +13,7 @@ import lombok.Data; ...@@ -12,6 +13,7 @@ import lombok.Data;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TemplateDto", description = "模板表") @ApiModel(value = "TemplateDto", description = "模板表")
public class TemplateDto extends BaseDto { public class TemplateDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
package com.yeejoin.amos.boot.module.jcs.api.dto; package com.yeejoin.amos.boot.module.jcs.api.dto;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
/** /**
* 模板表扩展dto * 模板表扩展dto
...@@ -12,6 +12,7 @@ import lombok.Data; ...@@ -12,6 +12,7 @@ import lombok.Data;
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TemplateExtendDto", description = "模板表扩展dto") @ApiModel(value = "TemplateExtendDto", description = "模板表扩展dto")
public class TemplateExtendDto extends TemplateDto { public class TemplateExtendDto extends TemplateDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -22,7 +22,12 @@ import java.util.Date; ...@@ -22,7 +22,12 @@ import java.util.Date;
@TableName("jc_alert_called") @TableName("jc_alert_called")
@ApiModel(value="AlertCalled对象", description="警情接警记录") @ApiModel(value="AlertCalled对象", description="警情接警记录")
public class AlertCalled extends BaseEntity { public class AlertCalled extends BaseEntity {
@ApiModelProperty(value = "警情状态") /**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "警情状态")
private Boolean alertStatus; private Boolean alertStatus;
@ApiModelProperty(value = "系统/人工") @ApiModelProperty(value = "系统/人工")
......
...@@ -20,7 +20,12 @@ import lombok.experimental.Accessors; ...@@ -20,7 +20,12 @@ import lombok.experimental.Accessors;
@ApiModel(value="AlertForm对象", description="警情表单") @ApiModel(value="AlertForm对象", description="警情表单")
public class AlertForm extends BaseEntity { public class AlertForm extends BaseEntity {
@ApiModelProperty(value = "警情类型") /**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "警情类型")
private String alertTypeCode; private String alertTypeCode;
@ApiModelProperty(value = "字段名称") @ApiModelProperty(value = "字段名称")
......
...@@ -19,11 +19,12 @@ import lombok.experimental.Accessors; ...@@ -19,11 +19,12 @@ import lombok.experimental.Accessors;
@TableName("jc_alert_form_type") @TableName("jc_alert_form_type")
@ApiModel(value="AlertFormType对象", description="动态表单类型") @ApiModel(value="AlertFormType对象", description="动态表单类型")
public class AlertFormType extends BaseEntity { public class AlertFormType extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "表单类型code")
@ApiModelProperty(value = "表单类型code")
private String alertTypeCode; private String alertTypeCode;
@ApiModelProperty(value = "类型名称") @ApiModelProperty(value = "类型名称")
......
...@@ -19,7 +19,12 @@ import lombok.experimental.Accessors; ...@@ -19,7 +19,12 @@ import lombok.experimental.Accessors;
@TableName("jc_alert_form_value") @TableName("jc_alert_form_value")
@ApiModel(value="AlertFormValue对象", description="") @ApiModel(value="AlertFormValue对象", description="")
public class AlertFormValue extends BaseEntity { public class AlertFormValue extends BaseEntity {
@ApiModelProperty(value = "表单id") /**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "表单id")
private Long alertFormId; private Long alertFormId;
@ApiModelProperty(value = "警情id") @ApiModelProperty(value = "警情id")
......
...@@ -21,11 +21,12 @@ import java.util.Date; ...@@ -21,11 +21,12 @@ import java.util.Date;
@TableName("jc_alert_submitted") @TableName("jc_alert_submitted")
@ApiModel(value="AlertSubmitted对象", description="警情报送记录") @ApiModel(value="AlertSubmitted对象", description="警情报送记录")
public class AlertSubmitted extends BaseEntity { public class AlertSubmitted extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "警情id")
@ApiModelProperty(value = "警情id")
private Long alertCalledId; private Long alertCalledId;
@ApiModelProperty(value = "业务类型(警情续报、非警情确认、警情结案)") @ApiModelProperty(value = "业务类型(警情续报、非警情确认、警情结案)")
......
...@@ -19,11 +19,12 @@ import lombok.experimental.Accessors; ...@@ -19,11 +19,12 @@ import lombok.experimental.Accessors;
@TableName("jc_alert_submitted_object") @TableName("jc_alert_submitted_object")
@ApiModel(value="AlertSubmittedObject对象", description="报送对象") @ApiModel(value="AlertSubmittedObject对象", description="报送对象")
public class AlertSubmittedObject extends BaseEntity { public class AlertSubmittedObject extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "报送单据id")
@ApiModelProperty(value = "报送单据id")
private Long alertSubmittedId; private Long alertSubmittedId;
@ApiModelProperty(value = "0人员1队伍") @ApiModelProperty(value = "0人员1队伍")
......
...@@ -19,7 +19,12 @@ import lombok.experimental.Accessors; ...@@ -19,7 +19,12 @@ import lombok.experimental.Accessors;
@TableName("cb_data_dictionary") @TableName("cb_data_dictionary")
@ApiModel(value="DataDictionary对象", description="数据字典") @ApiModel(value="DataDictionary对象", description="数据字典")
public class DataDictionary extends BaseEntity { public class DataDictionary extends BaseEntity {
@ApiModelProperty(value = "code") /**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "code")
private String code; private String code;
@ApiModelProperty(value = "名称") @ApiModelProperty(value = "名称")
......
...@@ -31,9 +31,14 @@ public class ESAlertCalled { ...@@ -31,9 +31,14 @@ public class ESAlertCalled {
/** /**
* 警情状态 * 警情状态
*/ */
@Field(type = FieldType.Text) @Field(type = FieldType.Boolean, index = false)
private Boolean alertStatus; private Boolean alertStatus;
/** /**
* 警情状态
*/
@Field(type = FieldType.Text)
private String alertStatusStr;
/**
* 响应级别字典code 为了过滤用(只有航空器故障有) * 响应级别字典code 为了过滤用(只有航空器故障有)
*/ */
@Field(type = FieldType.Text, index = false) @Field(type = FieldType.Text, index = false)
......
...@@ -23,11 +23,12 @@ import java.util.Date; ...@@ -23,11 +23,12 @@ import java.util.Date;
@TableName("cb_fire_experts") @TableName("cb_fire_experts")
@ApiModel(value="FireExperts对象", description="") @ApiModel(value="FireExperts对象", description="")
public class FireExperts extends BaseEntity { public class FireExperts extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "姓名")
@ApiModelProperty(value = "姓名")
private String name; private String name;
@ApiModelProperty(value = "证件类型") @ApiModelProperty(value = "证件类型")
......
...@@ -23,11 +23,12 @@ import java.util.Date; ...@@ -23,11 +23,12 @@ import java.util.Date;
@TableName("cb_fire_team") @TableName("cb_fire_team")
@ApiModel(value="FireTeam对象", description="消防队伍") @ApiModel(value="FireTeam对象", description="消防队伍")
public class FireTeam extends BaseEntity { public class FireTeam extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "消防队伍图片")
@ApiModelProperty(value = "消防队伍图片")
private String img; private String img;
@ApiModelProperty(value = "单位名称") @ApiModelProperty(value = "单位名称")
......
...@@ -23,10 +23,12 @@ import java.util.Date; ...@@ -23,10 +23,12 @@ import java.util.Date;
@TableName("cb_firefighters") @TableName("cb_firefighters")
@ApiModel(value="Firefighters对象", description="消防队员") @ApiModel(value="Firefighters对象", description="消防队员")
public class Firefighters extends BaseEntity { public class Firefighters extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "系统账号")
@ApiModelProperty(value = "系统账号")
private String systemAccount; private String systemAccount;
@ApiModelProperty(value = "员工编码") @ApiModelProperty(value = "员工编码")
......
...@@ -23,11 +23,12 @@ import java.util.Date; ...@@ -23,11 +23,12 @@ import java.util.Date;
@TableName("cb_firefighters_contacts") @TableName("cb_firefighters_contacts")
@ApiModel(value="FirefightersContacts对象", description="联系人") @ApiModel(value="FirefightersContacts对象", description="联系人")
public class FirefightersContacts extends BaseEntity { public class FirefightersContacts extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "人员id")
@ApiModelProperty(value = "人员id")
private Long firefightersId; private Long firefightersId;
@ApiModelProperty(value = "紧急联系人姓名") @ApiModelProperty(value = "紧急联系人姓名")
......
...@@ -24,11 +24,12 @@ import java.util.Date; ...@@ -24,11 +24,12 @@ import java.util.Date;
@TableName("cb_firefighters_contract") @TableName("cb_firefighters_contract")
@ApiModel(value="FirefightersContract对象", description="消防员合同") @ApiModel(value="FirefightersContract对象", description="消防员合同")
public class FirefightersContract extends BaseEntity { public class FirefightersContract extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "合同名称")
@ApiModelProperty(value = "合同名称")
private String name; private String name;
@ApiModelProperty(value = "甲方") @ApiModelProperty(value = "甲方")
......
...@@ -23,11 +23,12 @@ import java.util.Date; ...@@ -23,11 +23,12 @@ import java.util.Date;
@TableName("cb_firefighters_education") @TableName("cb_firefighters_education")
@ApiModel(value="FirefightersEducation对象", description="人员学历") @ApiModel(value="FirefightersEducation对象", description="人员学历")
public class FirefightersEducation extends BaseEntity { public class FirefightersEducation extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "人员id")
@ApiModelProperty(value = "人员id")
private Long firefightersId; private Long firefightersId;
@ApiModelProperty(value = "第一学历") @ApiModelProperty(value = "第一学历")
......
...@@ -24,11 +24,12 @@ import java.util.Date; ...@@ -24,11 +24,12 @@ import java.util.Date;
@TableName("jc_firefighters_jacket") @TableName("jc_firefighters_jacket")
@ApiModel(value="FirefightersJacket对象", description="消防人员配装记录") @ApiModel(value="FirefightersJacket对象", description="消防人员配装记录")
public class FirefightersJacket extends BaseEntity { public class FirefightersJacket extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "消防队员")
@ApiModelProperty(value = "消防队员")
private Long firefightersId; private Long firefightersId;
@ApiModelProperty(value = "装备id") @ApiModelProperty(value = "装备id")
......
...@@ -23,11 +23,12 @@ import java.util.Date; ...@@ -23,11 +23,12 @@ import java.util.Date;
@TableName("cb_firefighters_post") @TableName("cb_firefighters_post")
@ApiModel(value="FirefightersPost对象", description="岗位信息") @ApiModel(value="FirefightersPost对象", description="岗位信息")
public class FirefightersPost extends BaseEntity { public class FirefightersPost extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "人员id")
@ApiModelProperty(value = "人员id")
private Long firefightersId; private Long firefightersId;
@ApiModelProperty(value = "员工层级") @ApiModelProperty(value = "员工层级")
......
...@@ -24,11 +24,11 @@ import java.util.Date; ...@@ -24,11 +24,11 @@ import java.util.Date;
@TableName("cb_firefighters_thought") @TableName("cb_firefighters_thought")
@ApiModel(value="FirefightersThought对象", description="消防员思想谈话记录") @ApiModel(value="FirefightersThought对象", description="消防员思想谈话记录")
public class FirefightersThought extends BaseEntity { public class FirefightersThought extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "消防救援人员") @ApiModelProperty(value = "消防救援人员")
private Long firefightersId; private Long firefightersId;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "谈话时间") @ApiModelProperty(value = "谈话时间")
......
...@@ -23,11 +23,12 @@ import java.util.Date; ...@@ -23,11 +23,12 @@ import java.util.Date;
@TableName("cb_firefighters_workexperience") @TableName("cb_firefighters_workexperience")
@ApiModel(value="FirefightersWorkexperience对象", description="工作经历") @ApiModel(value="FirefightersWorkexperience对象", description="工作经历")
public class FirefightersWorkexperience extends BaseEntity { public class FirefightersWorkexperience extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "参加工作时间")
@ApiModelProperty(value = "参加工作时间")
private Date workingHours; private Date workingHours;
@ApiModelProperty(value = "参加消防部门工作时间") @ApiModelProperty(value = "参加消防部门工作时间")
......
...@@ -4,14 +4,13 @@ import com.baomidou.mybatisplus.annotation.FieldFill; ...@@ -4,14 +4,13 @@ import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity; import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable;
/** /**
* 机构/部门/人员表 * 机构/部门/人员表
* *
...@@ -23,9 +22,13 @@ import java.io.Serializable; ...@@ -23,9 +22,13 @@ import java.io.Serializable;
@Accessors(chain = true) @Accessors(chain = true)
@TableName("cb_org_usr") @TableName("cb_org_usr")
@ApiModel(value="OrgUsr对象", description="部门信息") @ApiModel(value="OrgUsr对象", description="部门信息")
public class OrgUsr extends BaseEntity implements Serializable { public class OrgUsr extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "机构/部门名称") @ApiModelProperty(value = "机构/部门名称")
private String bizOrgName; private String bizOrgName;
@ApiModelProperty(value = "机构编码") @ApiModelProperty(value = "机构编码")
......
...@@ -18,11 +18,12 @@ import lombok.experimental.Accessors; ...@@ -18,11 +18,12 @@ import lombok.experimental.Accessors;
@TableName("cb_org_usr_auth") @TableName("cb_org_usr_auth")
@ApiModel(value="OrgUsrAuth对象", description="") @ApiModel(value="OrgUsrAuth对象", description="")
public class OrgUsrAuth extends BaseEntity { public class OrgUsrAuth extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
private String recUserName;
private String recUserName;
private String sourceId; private String sourceId;
......
...@@ -22,11 +22,12 @@ import lombok.experimental.Accessors; ...@@ -22,11 +22,12 @@ import lombok.experimental.Accessors;
@TableName("jc_power_transfer") @TableName("jc_power_transfer")
@ApiModel(value="PowerTransfer对象", description="力量调派") @ApiModel(value="PowerTransfer对象", description="力量调派")
public class PowerTransfer extends BaseEntity { public class PowerTransfer extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "警情id")
@ApiModelProperty(value = "警情id")
private Long alertCalledId; private Long alertCalledId;
@ApiModelProperty(value = "调派单号") @ApiModelProperty(value = "调派单号")
......
...@@ -21,11 +21,12 @@ import lombok.experimental.Accessors; ...@@ -21,11 +21,12 @@ import lombok.experimental.Accessors;
@TableName("jc_power_transfer_company") @TableName("jc_power_transfer_company")
@ApiModel(value="PowerTransferCompany对象", description="调派单位") @ApiModel(value="PowerTransferCompany对象", description="调派单位")
public class PowerTransferCompany extends BaseEntity { public class PowerTransferCompany extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "调派单据id")
@ApiModelProperty(value = "调派单据id")
private Long powerTransferId; private Long powerTransferId;
@ApiModelProperty(value = "是否只派发机构") @ApiModelProperty(value = "是否只派发机构")
......
...@@ -21,11 +21,12 @@ import lombok.experimental.Accessors; ...@@ -21,11 +21,12 @@ import lombok.experimental.Accessors;
@TableName("jc_power_transfer_company_resources") @TableName("jc_power_transfer_company_resources")
@ApiModel(value="PowerTransferCompanyResources对象", description="调派单位资源") @ApiModel(value="PowerTransferCompanyResources对象", description="调派单位资源")
public class PowerTransferCompanyResources extends BaseEntity { public class PowerTransferCompanyResources extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "资源类型")
@ApiModelProperty(value = "资源类型")
private String type; private String type;
@ApiModelProperty(value = "资源id") @ApiModelProperty(value = "资源id")
......
...@@ -19,8 +19,12 @@ import lombok.experimental.Accessors; ...@@ -19,8 +19,12 @@ import lombok.experimental.Accessors;
@TableName("jc_template") @TableName("jc_template")
@ApiModel(value="Template对象", description="模板表") @ApiModel(value="Template对象", description="模板表")
public class Template extends BaseEntity { public class Template extends BaseEntity {
/**
*
*/
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "模板类型code") @ApiModelProperty(value = "模板类型code")
private String typeCode; private String typeCode;
@ApiModelProperty(value = "模板类型") @ApiModelProperty(value = "模板类型")
......
package com.yeejoin.amos.boot.module.jcs.api.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
*
* <pre>
* 警情状态枚举
* </pre>
*
* @author gwb
* @version $Id: AlertStatusEnum.java, v 0.1 2021年6月23日 下午5:11:18 gwb Exp $
*/
@Getter
@AllArgsConstructor
public enum AlertStatusEnum {
UNCLOSED("unclosed", "未结案"),
CLOSED("closed", "已结案");
private String code;
private String name;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static AlertStatusEnum getEnum(String code)
{
for (AlertStatusEnum status : AlertStatusEnum.values())
{
if (status.getCode().equals(code))
{
return status;
}
}
return null;
}
}
package com.yeejoin.amos.boot.module.jcs.api.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 装备操作枚举
*
* @author DELL
*/
@Getter
@AllArgsConstructor
public enum EquipTypeEnum {
/**
* 退库,回库
*/
退装("scrap", "退装"),
回库("stock", "回库");
private String key;
private String name;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto; import com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted;
import com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedExtVo; import com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedExtVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedSMSVo;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
...@@ -30,4 +31,13 @@ public interface AlertSubmittedMapper extends BaseMapper<AlertSubmitted> { ...@@ -30,4 +31,13 @@ public interface AlertSubmittedMapper extends BaseMapper<AlertSubmitted> {
* @return * @return
*/ */
List<AlertSubmittedExtVo> listReportingByParam(@Param("alertSubmittedDto") AlertSubmittedDto alertSubmittedDto); List<AlertSubmittedExtVo> listReportingByParam(@Param("alertSubmittedDto") AlertSubmittedDto alertSubmittedDto);
/**
* 获取融合调度短信内容
* @param id id
* @return 返回结果
*/
AlertSubmittedSMSVo getSchedulingContent(@Param("id") Long id);
} }
...@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jcs.api.mapper; ...@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jcs.api.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer; import com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer;
import com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyResourcesVo; import com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyResourcesVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyVo;
import java.util.List; import java.util.List;
...@@ -14,4 +15,6 @@ import java.util.List; ...@@ -14,4 +15,6 @@ import java.util.List;
*/ */
public interface PowerTransferMapper extends BaseMapper<PowerTransfer> { public interface PowerTransferMapper extends BaseMapper<PowerTransfer> {
List<PowerTransferCompanyResourcesVo> getPowerTransferList(Long alertCalledId); List<PowerTransferCompanyResourcesVo> getPowerTransferList(Long alertCalledId);
List<PowerTransferCompanyVo> getLastPowerTransferCompany(Long alertCalledId);
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled;
import com.yeejoin.amos.boot.module.jcs.api.mapper.AlertCalledMapper;
/** /**
* 警情接警记录 服务类 * 警情接警记录 服务类
...@@ -9,6 +13,6 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled; ...@@ -9,6 +13,6 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled;
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface IAlertCalledService extends IService<AlertCalled> { public interface IAlertCalledService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertForm;
/** /**
* 警情表单 服务类 * 警情表单 服务类
* *
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface IAlertFormService extends IService<AlertForm> { public interface IAlertFormService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormType;
/** /**
* 动态表单类型 服务类 * 动态表单类型 服务类
* *
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface IAlertFormTypeService extends IService<AlertFormType> { public interface IAlertFormTypeService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue;
/** /**
* 服务类 * 服务类
* *
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface IAlertFormValueService extends IService<AlertFormValue> { public interface IAlertFormValueService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmittedObject;
/** /**
* 报送对象 服务类 * 报送对象 服务类
* *
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface IAlertSubmittedObjectService extends IService<AlertSubmittedObject> { public interface IAlertSubmittedObjectService {
} }
...@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jcs.api.service; ...@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto; import com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted;
import com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedSMSVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.SchedulingReportingVo; import com.yeejoin.amos.boot.module.jcs.api.vo.SchedulingReportingVo;
/** /**
...@@ -36,4 +37,6 @@ public interface IAlertSubmittedService extends IService<AlertSubmitted> { ...@@ -36,4 +37,6 @@ public interface IAlertSubmittedService extends IService<AlertSubmitted> {
* @return * @return
*/ */
Boolean save(AlertSubmittedDto alertSubmittedDto); Boolean save(AlertSubmittedDto alertSubmittedDto);
AlertSubmittedSMSVo getSchedulingContent(Long id);
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.DataDictionary;
/** /**
* 数据字典 服务类 * 数据字典 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IDataDictionaryService extends IService<DataDictionary> { public interface IDataDictionaryService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FireExperts;
/** /**
* 服务类 * 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFireExpertsService extends IService<FireExperts> { public interface IFireExpertsService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FireTeam;
import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamListVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamVo;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamListVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamVo;
/** /**
* 消防队伍 服务类 * 消防队伍 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFireTeamService extends IService<FireTeam> { public interface IFireTeamService {
List<FireTeamVo>getFireTeam(int pageNum,int pageSize,FireTeamListVo par);
Map<String, Long>getFireTeamCount(int pageNum,int pageSize,FireTeamListVo par); List<FireTeamVo> getFireTeam(int pageNum, int pageSize, FireTeamListVo par);
Map<String, Long> getFireTeamCount(int pageNum, int pageSize, FireTeamListVo par);
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersContacts;
/** /**
* l联系人 服务类 * l联系人 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersContactsService extends IService<FirefightersContacts> { public interface IFirefightersContactsService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersContract;
/** /**
* 消防员合同 服务类 * 消防员合同 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersContractService extends IService<FirefightersContract> { public interface IFirefightersContractService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersEducation;
/** /**
* 人员学历 服务类 * 人员学历 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersEducationService extends IService<FirefightersEducation> { public interface IFirefightersEducationService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService; import java.util.List;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jcs.api.dto.EquipSpecificDto;
import com.yeejoin.amos.boot.module.jcs.api.dto.EquipmentOnCarDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersJacket; import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersJacket;
/** /**
...@@ -9,6 +15,13 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersJacket; ...@@ -9,6 +15,13 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersJacket;
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersJacketService extends IService<FirefightersJacket> { public interface IFirefightersJacketService {
ResponseModel<Page<EquipmentOnCarDto>> getAirEquipSpecificPage(EquipSpecificDto equipSpecificDto, int current, int size);
boolean saveOrUpdateBatch(Long firefightersId, List<EquipmentOnCarDto> equipmentOnCarDtos);
boolean update(String type, FirefightersJacket firefightersJacket);
ResponseModel<Object> getEquipByStockDetailId(Long stockDetailId);
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersPost;
/** /**
* 岗位信息 服务类 * 岗位信息 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersPostService extends IService<FirefightersPost> { public interface IFirefightersPostService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.Firefighters;
import com.yeejoin.amos.boot.module.jcs.api.vo.FirefightersListVo;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import com.yeejoin.amos.boot.module.jcs.api.entity.Firefighters;
import com.yeejoin.amos.boot.module.jcs.api.vo.FirefightersListVo;
/** /**
* 消防队员 服务类 * 消防队员 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersService extends IService<Firefighters> { public interface IFirefightersService {
List<Firefighters>getFirefighters(int pageNum,int pageSize,FirefightersListVo par); List<Firefighters>getFirefighters(int pageNum,int pageSize,FirefightersListVo par);
Map<String, Long>getFirefightersCount(int pageNum,int pageSize,FirefightersListVo par); Map<String, Long>getFirefightersCount(int pageNum,int pageSize,FirefightersListVo par);
......
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersThought;
/** /**
* 消防员思想谈话记录 服务类 * 消防员思想谈话记录 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersThoughtService extends IService<FirefightersThought> { public interface IFirefightersThoughtService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersWorkexperience;
/** /**
* 工作经历 服务类 * 工作经历 服务类
* *
* @author tb * @author tb
* @date 2021-06-07 * @date 2021-06-07
*/ */
public interface IFirefightersWorkexperienceService extends IService<FirefightersWorkexperience> { public interface IFirefightersWorkexperienceService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.OrgUsrAuth;
/** /**
* 服务类 * 服务类
* *
* @author tb * @author tb
* @date 2021-06-18 * @date 2021-06-18
*/ */
public interface IOrgUsrAuthService extends IService<OrgUsrAuth> { public interface IOrgUsrAuthService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.OrgMenu;
import com.yeejoin.amos.boot.module.jcs.api.entity.OrgUsr;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import com.yeejoin.amos.boot.module.jcs.api.entity.OrgMenu;
/** /**
* 机构/部门/人员表 服务类 * 机构/部门/人员表 服务类
* *
* @author tb * @author tb
* @date 2021-06-18 * @date 2021-06-18
*/ */
public interface IOrgUsrService extends IService<OrgUsr> { public interface IOrgUsrService {
List<OrgMenu> getTree(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy, String NAMEMethodName, String PARENTIDMethodName, String OrgTypeMethodName) throws Exception; List<OrgMenu> getTree(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy,
List<OrgMenu> getSub(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy, String NAMEMethodName, String PARENTIDMethodName,String OrgTypeMethodName) throws Exception; String NAMEMethodName, String PARENTIDMethodName, String OrgTypeMethodName) throws Exception;
List<OrgMenu> getSub(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy,
String NAMEMethodName, String PARENTIDMethodName, String OrgTypeMethodName) throws Exception;
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompanyResources;
/** /**
* 调派单位资源 服务类 * 调派单位资源 服务类
* *
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface IPowerTransferCompanyResourcesService extends IService<PowerTransferCompanyResources> { public interface IPowerTransferCompanyResourcesService {
} }
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompany;
/** /**
* 调派单位 服务类 * 调派单位 服务类
* *
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface IPowerTransferCompanyService extends IService<PowerTransferCompany> { public interface IPowerTransferCompanyService {
} }
...@@ -3,8 +3,11 @@ package com.yeejoin.amos.boot.module.jcs.api.service; ...@@ -3,8 +3,11 @@ package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto; import com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer; import com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer;
import com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferVo; import com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferVo;
import java.util.List;
/** /**
* 力量调派 服务类 * 力量调派 服务类
* *
...@@ -17,6 +20,8 @@ public interface IPowerTransferService extends IService<PowerTransfer> { ...@@ -17,6 +20,8 @@ public interface IPowerTransferService extends IService<PowerTransfer> {
boolean createPowerTransfer(PowerTransferDto powerTransferDto); boolean createPowerTransfer(PowerTransferDto powerTransferDto);
List<PowerTransferCompanyVo> getLastPowerTransferCompany(Long alertCalledId);
/** /**
* 获取力量调派资源树 * 获取力量调派资源树
*/ */
......
package com.yeejoin.amos.boot.module.jcs.api.service; package com.yeejoin.amos.boot.module.jcs.api.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.module.jcs.api.dto.TemplateExtendDto; import com.yeejoin.amos.boot.module.jcs.api.dto.TemplateExtendDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.Template; import com.yeejoin.amos.boot.module.jcs.api.entity.Template;
...@@ -10,7 +9,7 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.Template; ...@@ -10,7 +9,7 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.Template;
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
public interface ITemplateService extends IService<Template> { public interface ITemplateService {
/** /**
* 根据模板类型及模板格式类型获取模板信息 * 根据模板类型及模板格式类型获取模板信息
......
package com.yeejoin.amos.boot.module.jcs.api.vo;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 警情报送记录
*
* @author tb
* @date 2021-06-17
*/
@Data
@Accessors(chain = true)
@ApiModel(value = "AlertSubmittedSMSVo", description = "融合调度记录短信详情")
public class AlertSubmittedSMSVo {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "短信记录id")
private Long sequenceNbr;
@ApiModelProperty(value = "电话时间")
private Date submissionTime;
@ApiModelProperty(value = "联系电话")
private String userPhone;
@ApiModelProperty(value = "协调单位")
private String companyName;
@ApiModelProperty(value = "联系人")
private String userName;
@ApiModelProperty(value = "值班员")
private String sender;
@ApiModelProperty(value = "报送内容")
private String submissionContent;
@ApiModelProperty(value = "报送模板")
private String submissionTemplate;
}
...@@ -15,40 +15,40 @@ public class FormList { ...@@ -15,40 +15,40 @@ public class FormList {
* 数据字典 * 数据字典
* *
*/ */
@Autowired // @Autowired
IDataDictionaryService iDataDictionaryService; // DataDictionaryServiceImpl iDataDictionaryService;
public List<AlertFormVo> getFormlist(List<AlertForm> list) { // public List<AlertFormVo> getFormlist(List<AlertForm> list) {
//
List<AlertFormVo> listfrom = new ArrayList<AlertFormVo>(); // List<AlertFormVo> listfrom = new ArrayList<AlertFormVo>();
// 组装数据 // // 组装数据
for (AlertForm alertFrom : list) { // for (AlertForm alertFrom : list) {
if(alertFrom.getFieldType().equals("string")||alertFrom.getFieldType().equals("date")||alertFrom.getFieldType().equals("textarea")) { // if(alertFrom.getFieldType().equals("string")||alertFrom.getFieldType().equals("date")||alertFrom.getFieldType().equals("textarea")) {
AlertFormVo vo = new AlertFormVo(alertFrom.getFieldCode(), alertFrom.getFieldName(), alertFrom.getFieldType(), null, // AlertFormVo vo = new AlertFormVo(alertFrom.getFieldCode(), alertFrom.getFieldName(), alertFrom.getFieldType(), null,
new AlertFormValue(alertFrom.getSequenceNbr(),alertFrom.getFieldName(), alertFrom.getFieldCode(),alertFrom.isBlock())); // new AlertFormValue(alertFrom.getSequenceNbr(),alertFrom.getFieldName(), alertFrom.getFieldCode(),alertFrom.isBlock()));
listfrom.add(vo); // listfrom.add(vo);
}else { // }else {
// 查询数据项 // // 查询数据项
Map<String, Object> columnMap = new HashMap<>(); // Map<String, Object> columnMap = new HashMap<>();
columnMap.put("type", alertFrom.getFieldValueCode()); // columnMap.put("type", alertFrom.getFieldValueCode());
Collection<DataDictionary> listDataDictionary = iDataDictionaryService.listByMap(columnMap); // Collection<DataDictionary> listDataDictionary = iDataDictionaryService.listByMap(columnMap);
AlertFormVo vo = new AlertFormVo(alertFrom.getFieldCode(), alertFrom.getFieldName(), alertFrom.getFieldType(), // AlertFormVo vo = new AlertFormVo(alertFrom.getFieldCode(), alertFrom.getFieldName(), alertFrom.getFieldType(),
new Items(getdata(listDataDictionary)), new AlertFormValue(alertFrom.getSequenceNbr(),alertFrom.getFieldName(), alertFrom.getFieldCode(),alertFrom.isBlock())); // new Items(getdata(listDataDictionary)), new AlertFormValue(alertFrom.getSequenceNbr(),alertFrom.getFieldName(), alertFrom.getFieldCode(),alertFrom.isBlock()));
listfrom.add(vo); // listfrom.add(vo);
} // }
} // }
//
return listfrom; // return listfrom;
} // }
//
public List<AlertListvalue> getdata(Collection<DataDictionary> list) { // public List<AlertListvalue> getdata(Collection<DataDictionary> list) {
List<AlertListvalue> listAlertListvalue = new ArrayList<AlertListvalue>(); // List<AlertListvalue> listAlertListvalue = new ArrayList<AlertListvalue>();
for (DataDictionary dataDictionary : list) { // for (DataDictionary dataDictionary : list) {
//
listAlertListvalue.add(new AlertListvalue(dataDictionary.getSequenceNbr().toString(), // listAlertListvalue.add(new AlertListvalue(dataDictionary.getSequenceNbr().toString(),
dataDictionary.getName(),dataDictionary.getCode())); // dataDictionary.getName(),dataDictionary.getCode()));
} // }
return listAlertListvalue; // return listAlertListvalue;
} // }
} }
...@@ -5,37 +5,33 @@ import io.swagger.annotations.ApiModel; ...@@ -5,37 +5,33 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.util.Date;
/** /**
* 调派单位 * 调派单位
* *
* @author tb * @author tb
* @date 2021-06-17 * @date 2021-06-17
*/ */
@Data @Data
@Accessors(chain = true) @Accessors(chain = true)
@TableName("jc_power_transfer_company") @TableName("jc_power_transfer_company")
@ApiModel(value="PowerTransferCompanyVo", description="调派单位") @ApiModel(value = "PowerTransferCompanyVo", description = "调派单位")
public class PowerTransferCompanyVo{ public class PowerTransferCompanyVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "调派单据id")
private Long powerTransferId;
@ApiModelProperty(value = "是否只派发机构")
private Boolean isDistributionAgencies;
@ApiModelProperty(value = " 单位id")
private Long companyId;
@ApiModelProperty(value = " 单位名称") @ApiModelProperty(value = " 单位名称")
private String companyName; private String companyName;
@ApiModelProperty(value = "任务信息") @ApiModelProperty(value = "资源类型")
private String taskInformation; private String type;
@ApiModelProperty(value = "资源数量")
private Integer resourcesCount;
@ApiModelProperty(value = "操作人名称") @ApiModelProperty(value = "时间")
private String recUserName; private Date recDate;
} }
...@@ -62,4 +62,19 @@ ...@@ -62,4 +62,19 @@
</if> </if>
group by jaso.alert_submitted_id group by jaso.alert_submitted_id
</select> </select>
<select id="getSchedulingContent" resultType="com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedSMSVo">
select s.sequence_nbr,
submission_time,
user_phone,
company_name,
user_name,
s.sender,
submission_content,
content submission_template
from jc_alert_submitted_object o
left join jc_alert_submitted s on o.alert_submitted_id = s.sequence_nbr
left join jc_template t on s.business_type = t.type
where o.sequence_nbr = ${id}
</select>
</mapper> </mapper>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="com.yeejoin.amos.boot.module.jcs.api.mapper.PowerTransferMapper"> <mapper namespace="com.yeejoin.amos.boot.module.jcs.api.mapper.PowerTransferMapper">
<select id="getPowerTransferList" <select id="getPowerTransferList"
resultType="com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyResourcesVo"> resultType="com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyResourcesVo">
select sequence_nbr,company_name, type, resources_num select sequence_nbr, company_name, type, resources_num
from ( from (
select ptcr.sequence_nbr, ptc.company_name, ptcr.type, ptcr.resources_num, ptcr.rec_date select ptcr.sequence_nbr, ptc.company_name, ptcr.type, ptcr.resources_num, ptcr.rec_date
from jc_power_transfer_company ptc from jc_power_transfer_company ptc
...@@ -21,4 +21,18 @@ ...@@ -21,4 +21,18 @@
) jcpt ) jcpt
order by rec_date desc order by rec_date desc
</select> </select>
<select id="getLastPowerTransferCompany"
resultType="com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyVo">
select company_name, type, count(resources_num) resourcesCount, rec_date
from (select ptcr.sequence_nbr, ptc.company_name, ptcr.type, ptcr.resources_num, ptcr.rec_date
from jc_power_transfer_company ptc
left join jc_power_transfer pt on ptc.power_transfer_id = pt.sequence_nbr
right join jc_power_transfer_company_resources ptcr
on ptcr.power_transfer_company_id = ptc.sequence_nbr
where pt.alert_called_id = '63453543'
and ptc.is_distribution_agencies = 0) r
group by company_name, type, rec_date
having rec_date = (select rec_date from jc_power_transfer_company_resources order by rec_date desc limit 1)
</select>
</mapper> </mapper>
...@@ -35,13 +35,14 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils; ...@@ -35,13 +35,14 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.biz.common.utils.RedisKey; import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import com.yeejoin.amos.boot.biz.common.utils.RedisUtils; import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledDto; import com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledDto;
import com.yeejoin.amos.boot.module.jcs.api.dto.ESAlertCalledRequestDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue;
import com.yeejoin.amos.boot.module.jcs.api.service.IAlertCalledService;
import com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormValueService;
import com.yeejoin.amos.boot.module.jcs.api.vo.AlertCalledFormVo; import com.yeejoin.amos.boot.module.jcs.api.vo.AlertCalledFormVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.AlertCalledVo; import com.yeejoin.amos.boot.module.jcs.api.vo.AlertCalledVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.FormValue; import com.yeejoin.amos.boot.module.jcs.api.vo.FormValue;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertCalledServiceImpl;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormValueServiceImpl;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.ESAlertCalledService; import com.yeejoin.amos.boot.module.jcs.biz.service.impl.ESAlertCalledService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -59,9 +60,9 @@ import io.swagger.annotations.ApiOperation; ...@@ -59,9 +60,9 @@ import io.swagger.annotations.ApiOperation;
public class AlertCalledController extends BaseController { public class AlertCalledController extends BaseController {
@Autowired @Autowired
IAlertCalledService iAlertCalledService; AlertCalledServiceImpl iAlertCalledService;
@Autowired @Autowired
IAlertFormValueService iAlertFormValueService; AlertFormValueServiceImpl iAlertFormValueService;
@Autowired @Autowired
private ESAlertCalledService eSAlertCalledService; private ESAlertCalledService eSAlertCalledService;
@Autowired @Autowired
...@@ -203,17 +204,32 @@ public class AlertCalledController extends BaseController { ...@@ -203,17 +204,32 @@ public class AlertCalledController extends BaseController {
* @return * @return
* @throws Exception * @throws Exception
*/ */
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "相似警情分页查询") @ApiOperation(value = "相似警情分页查询")
@RequestMapping(value = "/page/similar", method = RequestMethod.POST) @RequestMapping(value = "/page/similar", method = RequestMethod.POST)
public ResponseModel<Page<ESAlertCalledDto>> pageBySimilar( public ResponseModel<Page<ESAlertCalledDto>> pageBySimilar(
@RequestBody AlertCalledVo alertCalledVo, @RequestBody ESAlertCalledRequestDto alertCalledVo,
@RequestParam(value = "current") int current, @RequestParam(value = "current") int current,
@RequestParam(value = "size") int size) throws Exception { @RequestParam(value = "size") int size) throws Exception {
return ResponseHelper.buildResponse(eSAlertCalledService.queryByKeys(alertCalledVo, current, size)); return ResponseHelper.buildResponse(eSAlertCalledService.queryByKeys(alertCalledVo, current, size));
} }
/** /**
*
* <pre>
* 初始化ES
* </pre>
*
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "初始化ES")
@RequestMapping(value = "/es/init", method = RequestMethod.PUT)
public ResponseModel<Boolean> initEs() {
return ResponseHelper.buildResponse(eSAlertCalledService.initEs());
}
/**
* 列表无分页查询 * 列表无分页查询
* *
* @return * @return
...@@ -274,6 +290,9 @@ public class AlertCalledController extends BaseController { ...@@ -274,6 +290,9 @@ public class AlertCalledController extends BaseController {
} else if (type.equals(Boolean.class)) { } else if (type.equals(Boolean.class)) {
Boolean fileValue = (Boolean) field.get(alertCalled); Boolean fileValue = (Boolean) field.get(alertCalled);
queryWrapper.eq(name, fileValue); queryWrapper.eq(name, fileValue);
}else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(alertCalled);
queryWrapper.eq(name, fileValue);
} }
} }
} catch (Exception e) { } catch (Exception e) {
......
package com.yeejoin.amos.boot.module.jcs.biz.controller; package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
...@@ -9,24 +28,11 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils; ...@@ -9,24 +28,11 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.biz.common.utils.RedisKey; import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import com.yeejoin.amos.boot.biz.common.utils.RedisUtils; import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertForm; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertForm;
import com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormService;
import com.yeejoin.amos.boot.module.jcs.api.vo.AlertFormVo; import com.yeejoin.amos.boot.module.jcs.api.vo.AlertFormVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.FormList; import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/** /**
...@@ -41,9 +47,8 @@ import java.util.List; ...@@ -41,9 +47,8 @@ import java.util.List;
public class AlertFormController extends BaseController { public class AlertFormController extends BaseController {
@Autowired @Autowired
IAlertFormService iAlertFormService; AlertFormServiceImpl iAlertFormService;
@Autowired
FormList FormList;
@Autowired @Autowired
RedisUtils redisUtils; RedisUtils redisUtils;
@Value("${redis.cache.failure.time}") @Value("${redis.cache.failure.time}")
...@@ -117,11 +122,7 @@ public class AlertFormController extends BaseController { ...@@ -117,11 +122,7 @@ public class AlertFormController extends BaseController {
Object obj= redisUtils.get(RedisKey.FORM_CODE+code); Object obj= redisUtils.get(RedisKey.FORM_CODE+code);
return ResponseHelper.buildResponse(obj); return ResponseHelper.buildResponse(obj);
}else{ }else{
QueryWrapper<AlertForm> queryWrapper = new QueryWrapper<>(); list= iAlertFormService.getFormlist(code);
queryWrapper.eq("alert_type_code", code);
//警情动态表单数据
List<AlertForm> alertFormValue = iAlertFormService.list(queryWrapper);
list= FormList.getFormlist(alertFormValue);
redisUtils.set(RedisKey.FORM_CODE+code,JSON.toJSON(list),time); redisUtils.set(RedisKey.FORM_CODE+code,JSON.toJSON(list),time);
return ResponseHelper.buildResponse(list); return ResponseHelper.buildResponse(list);
} }
......
package com.yeejoin.amos.boot.module.jcs.biz.controller; package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.controller.BaseController; import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils; import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormType; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormType;
import com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormTypeService; import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormTypeServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
/** /**
...@@ -31,7 +38,7 @@ import java.util.Arrays; ...@@ -31,7 +38,7 @@ import java.util.Arrays;
public class AlertFormTypeController extends BaseController { public class AlertFormTypeController extends BaseController {
@Autowired @Autowired
IAlertFormTypeService iAlertFormTypeService; AlertFormTypeServiceImpl iAlertFormTypeService;
/** /**
* 新增动态表单类型 * 新增动态表单类型
......
package com.yeejoin.amos.boot.module.jcs.biz.controller; package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.controller.BaseController; import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils; import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue;
import com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormValueService; import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormValueServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
/** /**
...@@ -31,7 +38,7 @@ import java.util.Arrays; ...@@ -31,7 +38,7 @@ import java.util.Arrays;
public class AlertFormValueController extends BaseController { public class AlertFormValueController extends BaseController {
@Autowired @Autowired
IAlertFormValueService iAlertFormValueService; AlertFormValueServiceImpl iAlertFormValueService;
/** /**
* 新增 * 新增
......
package com.yeejoin.amos.boot.module.jcs.biz.controller; package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.controller.BaseController; import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils; import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmittedObject; import com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmittedObject;
import com.yeejoin.amos.boot.module.jcs.api.service.IAlertSubmittedObjectService; import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedObjectServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
/** /**
...@@ -31,7 +38,7 @@ import java.util.Arrays; ...@@ -31,7 +38,7 @@ import java.util.Arrays;
public class AlertSubmittedObjectController extends BaseController { public class AlertSubmittedObjectController extends BaseController {
@Autowired @Autowired
IAlertSubmittedObjectService iAlertSubmittedObjectService; AlertSubmittedObjectServiceImpl iAlertSubmittedObjectService;
/** /**
* 新增报送对象 * 新增报送对象
......
package com.yeejoin.amos.boot.module.jcs.biz.controller; package com.yeejoin.amos.boot.module.jcs.biz.controller;
import com.alibaba.fastjson.JSON; import java.util.Arrays;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import java.util.Collection;
import com.baomidou.mybatisplus.core.metadata.IPage; import java.util.List;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.controller.BaseController; import javax.servlet.http.HttpServletRequest;
import com.yeejoin.amos.boot.biz.common.utils.*;
import com.yeejoin.amos.boot.module.jcs.api.entity.DataDictionary;
import com.yeejoin.amos.boot.module.jcs.api.service.IDataDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType; import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation; import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper; import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletRequest; import com.alibaba.fastjson.JSON;
import java.util.Arrays; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.Collection; import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.biz.common.utils.Menu;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import com.yeejoin.amos.boot.biz.common.utils.TreeParser;
import com.yeejoin.amos.boot.module.jcs.api.entity.DataDictionary;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.DataDictionaryServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/** /**
...@@ -37,7 +48,7 @@ import java.util.List; ...@@ -37,7 +48,7 @@ import java.util.List;
public class DataDictionaryController extends BaseController { public class DataDictionaryController extends BaseController {
@Autowired @Autowired
IDataDictionaryService iDataDictionaryService; DataDictionaryServiceImpl iDataDictionaryService;
@Autowired @Autowired
RedisUtils redisUtils; RedisUtils redisUtils;
......
package com.yeejoin.amos.boot.module.jcs.biz.controller; package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.controller.BaseController; import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils; import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.module.jcs.api.entity.FireExperts; import com.yeejoin.amos.boot.module.jcs.api.entity.FireExperts;
import com.yeejoin.amos.boot.module.jcs.api.service.IFireExpertsService; import com.yeejoin.amos.boot.module.jcs.biz.service.impl.FireExpertsServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
/** /**
...@@ -31,7 +38,7 @@ import java.util.Arrays; ...@@ -31,7 +38,7 @@ import java.util.Arrays;
public class FireExpertsController extends BaseController { public class FireExpertsController extends BaseController {
@Autowired @Autowired
IFireExpertsService iFireExpertsService; FireExpertsServiceImpl iFireExpertsService;
/** /**
* 新增 * 新增
......
package com.yeejoin.amos.boot.module.jcs.biz.controller; package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
...@@ -9,21 +29,12 @@ import com.yeejoin.amos.boot.biz.common.utils.Menu; ...@@ -9,21 +29,12 @@ import com.yeejoin.amos.boot.biz.common.utils.Menu;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils; import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import com.yeejoin.amos.boot.biz.common.utils.TreeParser; import com.yeejoin.amos.boot.biz.common.utils.TreeParser;
import com.yeejoin.amos.boot.module.jcs.api.entity.FireTeam; import com.yeejoin.amos.boot.module.jcs.api.entity.FireTeam;
import com.yeejoin.amos.boot.module.jcs.api.service.IFireTeamService;
import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamListVo; import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamListVo;
import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamVo; import com.yeejoin.amos.boot.module.jcs.api.vo.FireTeamVo;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.FireTeamServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.servlet.http.HttpServletRequest;
import java.util.*;
/** /**
...@@ -38,7 +49,7 @@ import java.util.*; ...@@ -38,7 +49,7 @@ import java.util.*;
public class FireTeamController extends BaseController { public class FireTeamController extends BaseController {
@Autowired @Autowired
IFireTeamService iFireTeamService; FireTeamServiceImpl iFireTeamService;
/** /**
* 新增消防队伍 * 新增消防队伍
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment