实现序列化接口

This commit is contained in:
wenc000 2020-08-12 22:50:06 +08:00
parent bb3707467e
commit e6d2d02cff
20 changed files with 67 additions and 23 deletions

View File

@ -20,6 +20,7 @@ import java.util.List;
@ApiModel @ApiModel
public class CheckDTO implements Serializable { public class CheckDTO implements Serializable {
private static final long serialVersionUID = 1066469161696590595L;
@ApiModelProperty(name = "checkId", value = "主键") @ApiModelProperty(name = "checkId", value = "主键")
private String checkId; private String checkId;
@ApiModelProperty(name = "enterpriseId", value = "企业ID") @ApiModelProperty(name = "enterpriseId", value = "企业ID")

View File

@ -5,6 +5,7 @@ import com.cm.inspection.pojo.dtos.hiddendangerreport.HiddenDangerReportDTO;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -16,8 +17,9 @@ import java.util.List;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class CheckItemDTO { public class CheckItemDTO implements Serializable {
private static final long serialVersionUID = -2818176047255545522L;
@ApiModelProperty(name = "checkItemId", value = "主键") @ApiModelProperty(name = "checkItemId", value = "主键")
private String checkItemId; private String checkItemId;
@ApiModelProperty(name = "name", value = "名称") @ApiModelProperty(name = "name", value = "名称")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.checkitemoption;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* *
* @ClassName: CheckItemOptionDTO * @ClassName: CheckItemOptionDTO
@ -12,8 +14,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class CheckItemOptionDTO { public class CheckItemOptionDTO implements Serializable {
private static final long serialVersionUID = 6722694872952713985L;
@ApiModelProperty(name = "checkItemOptionId", value = "主键") @ApiModelProperty(name = "checkItemOptionId", value = "主键")
private String checkItemOptionId; private String checkItemOptionId;
@ApiModelProperty(name = "checkItemId", value = "检查项ID") @ApiModelProperty(name = "checkItemId", value = "检查项ID")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.checkplan;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: CheckPlanDTO * @ClassName: CheckPlanDTO
* @Description: 检查计划 * @Description: 检查计划
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class CheckPlanDTO { public class CheckPlanDTO implements Serializable {
private static final long serialVersionUID = -4109435023338377658L;
@ApiModelProperty(name = "checkPlanId", value = "主键") @ApiModelProperty(name = "checkPlanId", value = "主键")
private String checkPlanId; private String checkPlanId;
@ApiModelProperty(name = "checkPlanType", value = "计划类型") @ApiModelProperty(name = "checkPlanType", value = "计划类型")

View File

@ -1,5 +1,7 @@
package com.cm.inspection.pojo.dtos.data; package com.cm.inspection.pojo.dtos.data;
import java.io.Serializable;
/** /**
* When you feel like quitting. Think about why you started * When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始 * 当你想要放弃的时候想想当初你为何开始
@ -10,8 +12,9 @@ package com.cm.inspection.pojo.dtos.data;
* @Date: 2020/5/1 16:21 * @Date: 2020/5/1 16:21
* @Version: 1.0 * @Version: 1.0
**/ **/
public class DepartmentDTO { public class DepartmentDTO implements Serializable {
private static final long serialVersionUID = -2584371772709371489L;
private String departmentId; private String departmentId;
private String departmentParentId; private String departmentParentId;
private String departmentName; private String departmentName;

View File

@ -1,8 +1,11 @@
package com.cm.inspection.pojo.dtos.data; package com.cm.inspection.pojo.dtos.data;
public class UserDTO { import java.io.Serializable;
public class UserDTO implements Serializable {
private static final long serialVersionUID = -2271176624984243101L;
private String userId; private String userId;
private String userUsername; private String userUsername;
private String userName; private String userName;

View File

@ -15,6 +15,7 @@ import java.io.Serializable;
@ApiModel @ApiModel
public class EnterpriseDTO implements Serializable { public class EnterpriseDTO implements Serializable {
private static final long serialVersionUID = 8606689847116445169L;
@ApiModelProperty(name = "enterpriseId", value = "主键") @ApiModelProperty(name = "enterpriseId", value = "主键")
private String enterpriseId; private String enterpriseId;
@ApiModelProperty(name = "name", value = "名称") @ApiModelProperty(name = "name", value = "名称")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.enterpriseofgridoperator;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: EnterpriseOfGridOperatorDTO * @ClassName: EnterpriseOfGridOperatorDTO
* @Description: 网格员的企业 * @Description: 网格员的企业
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class EnterpriseOfGridOperatorDTO { public class EnterpriseOfGridOperatorDTO implements Serializable {
private static final long serialVersionUID = 2171747540468363785L;
@ApiModelProperty(name = "enterpriseOfGridOperatorId", value = "主键") @ApiModelProperty(name = "enterpriseOfGridOperatorId", value = "主键")
private String enterpriseOfGridOperatorId; private String enterpriseOfGridOperatorId;
@ApiModelProperty(name = "userId", value = "用户ID") @ApiModelProperty(name = "userId", value = "用户ID")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.gridpersonnel;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: GridPersonnelDTO * @ClassName: GridPersonnelDTO
* @Description: 网格人员 * @Description: 网格人员
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class GridPersonnelDTO { public class GridPersonnelDTO implements Serializable {
private static final long serialVersionUID = 1690871409983368941L;
@ApiModelProperty(name = "gridPersonnelId", value = "主键") @ApiModelProperty(name = "gridPersonnelId", value = "主键")
private String gridPersonnelId; private String gridPersonnelId;
@ApiModelProperty(name = "userId", value = "用户ID") @ApiModelProperty(name = "userId", value = "用户ID")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.hiddendangerreport;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: HiddenDangerReportDTO * @ClassName: HiddenDangerReportDTO
* @Description: 隐患上报 * @Description: 隐患上报
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class HiddenDangerReportDTO { public class HiddenDangerReportDTO implements Serializable {
private static final long serialVersionUID = 5888237908484934679L;
@ApiModelProperty(name = "hiddenDangerReportId", value = "主键") @ApiModelProperty(name = "hiddenDangerReportId", value = "主键")
private String hiddenDangerReportId; private String hiddenDangerReportId;
@ApiModelProperty(name = "checkId", value = "检查ID") @ApiModelProperty(name = "checkId", value = "检查ID")

View File

@ -4,6 +4,7 @@ import com.cm.inspection.pojo.dtos.checkitemoption.CheckItemOptionDTO;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -15,8 +16,9 @@ import java.util.List;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class IndustryCheckItemDTO { public class IndustryCheckItemDTO implements Serializable {
private static final long serialVersionUID = -3848466845851514488L;
@ApiModelProperty(name = "industryCheckItemId", value = "主键") @ApiModelProperty(name = "industryCheckItemId", value = "主键")
private String industryCheckItemId; private String industryCheckItemId;
@ApiModelProperty(name = "natureId", value = "场所性质ID") @ApiModelProperty(name = "natureId", value = "场所性质ID")

View File

@ -4,6 +4,7 @@ import com.cm.inspection.pojo.dtos.checkitemoption.CheckItemOptionDTO;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -15,8 +16,9 @@ import java.util.List;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class IndustryUserDTO { public class IndustryUserDTO implements Serializable {
private static final long serialVersionUID = -1864003607245277977L;
@ApiModelProperty(name = "industryUserId", value = "行业用户ID") @ApiModelProperty(name = "industryUserId", value = "行业用户ID")
private String industryUserId; private String industryUserId;
@ApiModelProperty(name = "industryId", value = "行业性质ID") @ApiModelProperty(name = "industryId", value = "行业性质ID")

View File

@ -4,6 +4,8 @@ import com.cm.common.annotation.CheckEmptyAnnotation;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: PublicAreaReportDTO * @ClassName: PublicAreaReportDTO
* @Description: 公共区域上报 * @Description: 公共区域上报
@ -12,8 +14,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class PublicAreaReportDTO { public class PublicAreaReportDTO implements Serializable {
private static final long serialVersionUID = 5778361878252344868L;
@ApiModelProperty(name = "publicAreaReportId", value = "主键") @ApiModelProperty(name = "publicAreaReportId", value = "主键")
private String publicAreaReportId; private String publicAreaReportId;
@ApiModelProperty(name = "area1Id", value = "区域1") @ApiModelProperty(name = "area1Id", value = "区域1")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.publicleaderhandle;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: PublicLeaderHandleDTO * @ClassName: PublicLeaderHandleDTO
* @Description: 公共领导处理 * @Description: 公共领导处理
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class PublicLeaderHandleDTO { public class PublicLeaderHandleDTO implements Serializable {
private static final long serialVersionUID = 7297647684251077228L;
@ApiModelProperty(name = "publicLeaderHandleId", value = "主键") @ApiModelProperty(name = "publicLeaderHandleId", value = "主键")
private String publicLeaderHandleId; private String publicLeaderHandleId;
@ApiModelProperty(name = "publicAreaReportId", value = "区域上报") @ApiModelProperty(name = "publicAreaReportId", value = "区域上报")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.publiclog;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: PublicLogDTO * @ClassName: PublicLogDTO
* @Description: 公共日志 * @Description: 公共日志
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class PublicLogDTO { public class PublicLogDTO implements Serializable {
private static final long serialVersionUID = 4648058413644251606L;
@ApiModelProperty(name = "publicLogId", value = "主键") @ApiModelProperty(name = "publicLogId", value = "主键")
private String publicLogId; private String publicLogId;
@ApiModelProperty(name = "publicAreaReportId", value = "上报ID") @ApiModelProperty(name = "publicAreaReportId", value = "上报ID")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.reviewitemofenterprise;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: ReviewItemOfEnterpriseDTO * @ClassName: ReviewItemOfEnterpriseDTO
* @Description: 企业复查项 * @Description: 企业复查项
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class ReviewItemOfEnterpriseDTO { public class ReviewItemOfEnterpriseDTO implements Serializable {
private static final long serialVersionUID = 9059581871746031155L;
@ApiModelProperty(name = "reviewItemOfEnterpriseId", value = "主键") @ApiModelProperty(name = "reviewItemOfEnterpriseId", value = "主键")
private String reviewItemOfEnterpriseId; private String reviewItemOfEnterpriseId;
@ApiModelProperty(name = "enterpriseId", value = "企业ID") @ApiModelProperty(name = "enterpriseId", value = "企业ID")

View File

@ -3,6 +3,8 @@ package com.cm.inspection.pojo.dtos.taskcheck;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/** /**
* @ClassName: TaskCheckDTO * @ClassName: TaskCheckDTO
* @Description: 检查任务 * @Description: 检查任务
@ -11,8 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0 * @Version: 1.0
**/ **/
@ApiModel @ApiModel
public class TaskCheckDTO { public class TaskCheckDTO implements Serializable {
private static final long serialVersionUID = 1947138427504518969L;
@ApiModelProperty(name = "taskCheckId", value = "主键") @ApiModelProperty(name = "taskCheckId", value = "主键")
private String taskCheckId; private String taskCheckId;
@ApiModelProperty(name = "enterpriseId", value = "企业ID") @ApiModelProperty(name = "enterpriseId", value = "企业ID")

View File

@ -686,7 +686,7 @@ public class CountServiceImpl extends BaseService implements ICountService {
return new ArrayList<>(); return new ArrayList<>();
} }
Map<String, Object> params = getHashMap(4); Map<String, Object> params = getHashMap(4);
params.put("checkIds", checkIdList); params.put("checkIdList", checkIdList);
params.put("year", year); params.put("year", year);
return checkService.listCheckSimple(params); return checkService.listCheckSimple(params);
} }

View File

@ -83,16 +83,16 @@ security:
client: client:
client-id: 32ec344a5fd04fd9911586df5d1dc36b client-id: 32ec344a5fd04fd9911586df5d1dc36b
client-secret: a2NORTAyZmthdTNtVHNwLytGVVo0ckFhNktHQU9JWVFmUks0TGw5L2hQRW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg== client-secret: a2NORTAyZmthdTNtVHNwLytGVVo0ckFhNktHQU9JWVFmUks0TGw5L2hQRW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
user-authorization-uri: ${security.oauth2.oauth-server}/oauth/authorize user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize
access-token-uri: ${security.oauth2.oauth-server}/oauth/token access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token
grant-type: authorization_code grant-type: authorization_code
resource: resource:
jwt: jwt:
key-uri: ${security.oauth2.oauth-server}/oauth/token_key key-uri: ${security.oauth2.oauth-server}/oauth_client/token_key
token-info-uri: ${security.oauth2.oauth-server}/oauth/check_token token-info-uri: ${security.oauth2.oauth-server}/oauth_client/check_token
user-info-uri: ${security.oauth2.oauth-server}/user user-info-uri: ${security.oauth2.oauth-server}/user
authorization: authorization:
check-token-access: ${security.oauth2.oauth-server}/oauth/token_key check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
api-path: api-path:
user-center: ${security.oauth2.oauth-server} user-center: ${security.oauth2.oauth-server}
@ -129,4 +129,4 @@ access-control:
logging: logging:
level: level:
root: error root: error
com.cm: debug com.cm: debug

View File

@ -413,7 +413,7 @@
AND AND
check_id IN check_id IN
<foreach collection="checkIdList" index="index" open="(" separator="," close=")"> <foreach collection="checkIdList" index="index" open="(" separator="," close=")">
#{checkIds[${index}]} #{checkIdList[${index}]}
</foreach> </foreach>
</if> </if>
<if test="userIdList != null and userIdList.size > 0"> <if test="userIdList != null and userIdList.size > 0">