diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/SafetyToolTypeEntity.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/SafetyToolTypeEntity.java index 0d689b2..b3113bc 100644 --- a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/SafetyToolTypeEntity.java +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/SafetyToolTypeEntity.java @@ -51,7 +51,7 @@ public class SafetyToolTypeEntity extends TenantEntity { private Date sendTime; @ApiModelProperty(value = "机构id") - private Long deptId; + private String deptId; @ApiModelProperty(value = "机构名称") private String deptName; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafetyToolTypeServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafetyToolTypeServiceImpl.java index 94ff245..39bc18d 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafetyToolTypeServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafetyToolTypeServiceImpl.java @@ -137,6 +137,9 @@ public class SafetyToolTypeServiceImpl extends ServiceImpl safetyToolTypePages = super.page(Condition.getPage(query), queryWrapper); IPage pages = new Page<>(); @@ -171,6 +174,9 @@ public class SafetyToolTypeServiceImpl extends ServiceImpl types = this.list(queryWrapper); if(CollectionUtil.isEmpty(types)){ diff --git a/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql b/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql index ac9d443..a090039 100644 --- a/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql +++ b/hzims-service/safeproduct/src/main/resources/db/3.0.0.sql @@ -10,5 +10,5 @@ ALTER TABLE `hzims_risk_hazard_task` ADD COLUMN `remark` text NULL ; ALTER TABLE `hzims_safe_safety_tool_type` - ADD COLUMN `dept_id` bigint(20) DEFAULT NULL COMMENT '机构id', - ADD COLUMN `dept_name` varchar(20) DEFAULT NULL COMMENT '机构名称'; \ No newline at end of file + ADD COLUMN `dept_id` varchar(50) DEFAULT NULL COMMENT '机构id', + ADD COLUMN `dept_name` varchar(50) DEFAULT NULL COMMENT '机构名称'; \ No newline at end of file