diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/AssetsApplication.java b/hzims-service/assets/src/main/java/com/hnac/hzims/AssetsApplication.java index 8643ca0..c3b096d 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/AssetsApplication.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/AssetsApplication.java @@ -17,11 +17,9 @@ package com.hnac.hzims; import org.mybatis.spring.annotation.MapperScan; -import org.springblade.core.cloud.feign.EnableBladeFeign; import org.springblade.core.launch.BladeApplication; -import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; -import org.springframework.cloud.client.SpringCloudApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; import org.springframework.scheduling.annotation.EnableScheduling; @@ -30,22 +28,15 @@ import org.springframework.scheduling.annotation.EnableScheduling; * * @author Chill */ -@EnableBladeFeign(basePackages = {"org.springblade","com.hnac"}) -@SpringCloudApplication +@SpringBootApplication(scanBasePackages = {"org.springblade", "com.hnac.hzinfo"}) +@MapperScan(basePackages = {"com.hnac.hzinfo.**.mapper"}) +@EnableFeignClients(basePackages = {"org.springblade", "com.hnac.hzinfo"}) @MapperScan("com.hnac.hzims.**.mapper.**") @EnableScheduling @ComponentScan(basePackages = {"com.hnac.hzims.*"}) -public class AssetsApplication extends SpringBootServletInitializer { +public class AssetsApplication { public static void main(String[] args) { -// System.setProperty("nacos.standalone", "true"); BladeApplication.run(AssetsConstants.APP_NAME, AssetsApplication.class, args); } - - @Override - protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { - return BladeApplication.createSpringApplicationBuilder(builder, AssetsConstants.APP_NAME, AssetsApplication.class); - } - } - diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/SafeproductApplication.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/SafeproductApplication.java index fd3af8b..cbe8cd6 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/SafeproductApplication.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/SafeproductApplication.java @@ -17,9 +17,9 @@ package com.hnac.hzims.safeproduct; import org.mybatis.spring.annotation.MapperScan; -import org.springblade.core.cloud.feign.EnableBladeFeign; import org.springblade.core.launch.BladeApplication; -import org.springframework.cloud.client.SpringCloudApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; import org.springframework.scheduling.annotation.EnableScheduling; @@ -28,17 +28,15 @@ import org.springframework.scheduling.annotation.EnableScheduling; * * @author Chill */ -@EnableBladeFeign -@SpringCloudApplication +@SpringBootApplication(scanBasePackages = {"org.springblade", "com.hnac.hzinfo"}) +@MapperScan(basePackages = {"com.hnac.hzims.*.**.mapper.**"}) +@EnableFeignClients(basePackages = {"org.springblade", "com.hnac.hzinfo"}) @EnableScheduling -@MapperScan("com.hnac.hzims.*.**.mapper.**") @ComponentScan(basePackages = {"com.hnac.*"}) public class SafeproductApplication { - public static void main(String[] args) { BladeApplication.run(Constants.APP_NAME, SafeproductApplication.class, args); } - } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/feign/DangerSourceClient.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/feign/DangerSourceClient.java index 76f1389..35e26dd 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/feign/DangerSourceClient.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/feign/DangerSourceClient.java @@ -4,7 +4,7 @@ import com.hnac.hzims.safeproduct.entity.DangerSourceEntity; import com.hnac.hzims.safeproduct.hazard.service.IDangerSourceService; import com.hnac.hzims.safeproduct.vo.SourceVO; import lombok.AllArgsConstructor; -import org.apache.commons.lang.ArrayUtils; +import org.apache.commons.lang3.ArrayUtils; import org.springblade.system.vo.CreateTableVO; import org.springframework.util.CollectionUtils; import org.springframework.web.bind.annotation.GetMapping; @@ -33,7 +33,6 @@ public class DangerSourceClient implements IDangerSourceClient { @GetMapping(DETAILS) public List details(@RequestParam String[] ids) { List resp = service.listByIds(Arrays.asList(ids)); - //未查到数据返回空集合 if (CollectionUtils.isEmpty(resp)) { return new ArrayList<>(); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarAnnualInspectionMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarAnnualInspectionMapper.java index bda2cc6..211028e 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarAnnualInspectionMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarAnnualInspectionMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.CarAnnualInspectionEntity; import com.hnac.hzims.safeproduct.vo.CarAnnualInspectionPageVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -26,12 +27,13 @@ public interface CarAnnualInspectionMapper extends UserDataScopeBaseMapper getCarAnnualInspectionPage(IPage page, Map param); + IPage getCarAnnualInspectionPage(@Param("page") IPage page, + @Param("param") Map param); /** * 查询当月年检记录 * @param month 当月 * @return 当月年检记录数据表 */ - List selectCarAnnualInspectionByMonth(String month); + List selectCarAnnualInspectionByMonth(@Param("month")String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckRecordMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckRecordMapper.java index 537352f..8e0cd72 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckRecordMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckRecordMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.CarCheckRecordEntity; import com.hnac.hzims.safeproduct.vo.CarCheckRecordPageVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -26,12 +27,12 @@ public interface CarCheckRecordMapper extends UserDataScopeBaseMapper getCarCheckRecordPage(IPage page, Map param); + IPage getCarCheckRecordPage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月车检记录 * @param month 当月 * @return 当月车检记录数据表 */ - List selectCarCheckRecordByMonth(String month); + List selectCarCheckRecordByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckTemplateMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckTemplateMapper.java index ccf72f9..ff288b1 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckTemplateMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarCheckTemplateMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.CarCheckTemplateEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import java.util.Map; @@ -16,5 +17,5 @@ public interface CarCheckTemplateMapper extends BaseMapper getCarCheckTemplatePage(IPage page, Map param); + IPage getCarCheckTemplatePage(@Param("page") IPage page, @Param("param") Map param); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarInsuranceMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarInsuranceMapper.java index 89b8ef8..7725eee 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarInsuranceMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarInsuranceMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.CarInsuranceEntity; import com.hnac.hzims.safeproduct.vo.CarInsurancePageVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -26,12 +27,12 @@ public interface CarInsuranceMapper extends UserDataScopeBaseMapper getCarInsurancePage(IPage page, Map param); + IPage getCarInsurancePage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月年保记录 * @param month 当月 * @return 当月年保记录数据表 */ - List selectCarInsuranceByMonth(String month); + List selectCarInsuranceByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMaintenanceMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMaintenanceMapper.java index 754e390..5e16054 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMaintenanceMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMaintenanceMapper.java @@ -5,6 +5,7 @@ import com.hnac.hzims.safeproduct.entity.CarMaintenanceEntity; import com.hnac.hzims.safeproduct.vo.CarMaintenanceDetailVO; import com.hnac.hzims.safeproduct.vo.CarMaintenancePageVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,7 +26,7 @@ public interface CarMaintenanceMapper extends UserDataScopeBaseMapper getCarMaintenancePage(IPage page, Map param); + IPage getCarMaintenancePage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月车辆维保记录 * @param month 当月 * @return 当月车辆维保数据表 */ - List selectCarMaintenanceByMonth(String month); + List selectCarMaintenanceByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMapper.java index 52f2e84..8e75230 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarMapper.java @@ -5,6 +5,7 @@ import com.hnac.hzims.safeproduct.dto.CarMilesYearDTO; import com.hnac.hzims.safeproduct.entity.CarEntity; import com.hnac.hzims.safeproduct.vo.CarMilesYearVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -28,7 +29,7 @@ public interface CarMapper extends UserDataScopeBaseMapper { * @return 分页车辆数据 */ @UserDataAuth - IPage selectCarByYear(IPage page, String year, String unit); + IPage selectCarByYear(@Param("page") IPage page, @Param("year") String year, @Param("unit") String unit); /** * 查询车辆当年的月度里程数 @@ -37,12 +38,12 @@ public interface CarMapper extends UserDataScopeBaseMapper { * @return 里程数列表 */ @UserDataAuth - List selectMilesByCar(List carList, String year); + List selectMilesByCar(@Param("carList") List carList, @Param("year") String year); /** * 查询车辆的里程数 * @param plateNumber 车牌号 * @return 里程数 */ - BigDecimal selectMilesByPlateNumber(String plateNumber); + BigDecimal selectMilesByPlateNumber(@Param("plateNumber") String plateNumber); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarUsedRecordMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarUsedRecordMapper.java index 0f3490b..db9b200 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarUsedRecordMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CarUsedRecordMapper.java @@ -5,6 +5,7 @@ import com.hnac.hzims.safeproduct.entity.CarUsedRecordEntity; import com.hnac.hzims.safeproduct.vo.CarUsedRecordDetailVO; import com.hnac.hzims.safeproduct.vo.CarUsedRecordPageVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,7 +26,7 @@ public interface CarUsedRecordMapper extends UserDataScopeBaseMapper getCarUsedRecordPage(IPage page, Map param); + IPage getCarUsedRecordPage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月用车记录 * @param month 当月 * @return 当月用车记录数据表 */ - List selectCarUsedRecordByMonth(String month); + List selectCarUsedRecordByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckMonthMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckMonthMapper.java index 137cd31..49d28f8 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckMonthMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckMonthMapper.java @@ -15,7 +15,7 @@ public interface CheckMonthMapper extends UserDataScopeBaseMapper pageNotDataScope(IPage page, @Param("req") CheckMonthEntity req); + IPage pageNotDataScope(@Param("page") IPage page, @Param("req") CheckMonthEntity req); /** * 分页查询安全生产会议次数 @@ -23,5 +23,5 @@ public interface CheckMonthMapper extends UserDataScopeBaseMapper listconferenceScope(IPage objectPage, @Param("req") CheckMonthEntity req); + IPage listconferenceScope(@Param("objectPage") IPage objectPage, @Param("req") CheckMonthEntity req); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckQuarterMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckQuarterMapper.java index bcbd196..572711b 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckQuarterMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/CheckQuarterMapper.java @@ -15,6 +15,6 @@ public interface CheckQuarterMapper extends UserDataScopeBaseMapper pageNotDataScope(IPage page, @Param("req") CheckQuarterEntity req); + IPage pageNotDataScope(@Param("page") IPage page, @Param("req") CheckQuarterEntity req); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferencePlanMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferencePlanMapper.java index 549e430..483490d 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferencePlanMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferencePlanMapper.java @@ -3,6 +3,7 @@ package com.hnac.hzims.safeproduct.mapper; import com.hnac.hzims.safeproduct.dto.ConferenceExportDTO; import com.hnac.hzims.safeproduct.entity.ConferencePlanEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,5 +26,6 @@ public interface ConferencePlanMapper extends UserDataScopeBaseMapper getConferenceByUnitAndDate(String unit, String startTime, String endTime); + List getConferenceByUnitAndDate(@Param("unit") String unit, @Param("startTime") String startTime, + @Param("endTime") String endTime); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferenceRecordMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferenceRecordMapper.java index 61c55af..f8e08fe 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferenceRecordMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ConferenceRecordMapper.java @@ -5,6 +5,7 @@ import com.hnac.hzims.safeproduct.entity.ConferenceRecordEntity; import com.hnac.hzims.safeproduct.vo.ConferenceRecordDetailVO; import com.hnac.hzims.safeproduct.vo.ConferenceRecordVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,7 +26,7 @@ public interface ConferenceRecordMapper extends UserDataScopeBaseMapper getConferenceRecordPage(IPage page, Map param); + IPage getConferenceRecordPage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月会议记录 * @param month 当月 * @return 当月会议数据表 */ - List selectConferenceByMonth(String month); + List selectConferenceByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourceLevelRecordMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourceLevelRecordMapper.java index e864f98..32e56e3 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourceLevelRecordMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourceLevelRecordMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.DangerSourceLevelRecordEntity; import com.hnac.hzims.safeproduct.vo.DangerSourceLevelRecordVO; @@ -14,6 +13,6 @@ import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; */ public interface DangerSourceLevelRecordMapper extends UserDataScopeBaseMapper { - IPage pageCondition(@Param("page") DangerSourceLevelRecordEntity page, IPage query); + IPage pageCondition(@Param("page") DangerSourceLevelRecordEntity page, @Param("query") IPage query); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourcePositionMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourcePositionMapper.java index ce5ce56..d41f4ce 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourcePositionMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/DangerSourcePositionMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.safeproduct.entity.DangerSourcePositionEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanMapper.java index bbde49b..4da245f 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.safeproduct.entity.EmergencyPlanEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanTypeMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanTypeMapper.java index 2f9930a..bceb192 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanTypeMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/EmergencyPlanTypeMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.dto.EmergencyPlanTypeListDTO; import com.hnac.hzims.safeproduct.entity.EmergencyPlanTypeEntity; @@ -14,6 +13,6 @@ import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; **/ public interface EmergencyPlanTypeMapper extends UserDataScopeBaseMapper { - IPage pageCondition(@Param("page") EmergencyPlanTypeListDTO req, IPage query); + IPage pageCondition(@Param("page") EmergencyPlanTypeListDTO req, @Param("query") IPage query); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygienePlanMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygienePlanMapper.java index 8170e95..4014f5f 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygienePlanMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygienePlanMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.HygienePlanEntity; import com.hnac.hzims.safeproduct.vo.HygieneMonthVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -24,7 +25,7 @@ public interface HygienePlanMapper extends UserDataScopeBaseMapper selectByMonth(IPage page, String unit, String month); + IPage selectByMonth(@Param("page") IPage page, @Param("unit") String unit, @Param("month") String month); /** * 查询当月各单位已完成的卫生自查数据 @@ -34,5 +35,6 @@ public interface HygienePlanMapper extends UserDataScopeBaseMapper selectFinishedDataByMonth(IPage page, String unit, String month); + IPage selectFinishedDataByMonth(@Param("page") IPage page, @Param("unit") String unit, + @Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneRecordMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneRecordMapper.java index d8095f6..b364016 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneRecordMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneRecordMapper.java @@ -5,6 +5,7 @@ import com.hnac.hzims.safeproduct.entity.HygieneRecordEntity; import com.hnac.hzims.safeproduct.vo.HygieneRecordDetailVO; import com.hnac.hzims.safeproduct.vo.HygieneRecordPageVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,7 +26,7 @@ public interface HygieneRecordMapper extends UserDataScopeBaseMapper recordPage(IPage page, Map param); + IPage recordPage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月卫生自查记录 * @param month 当月 * @return 当月卫生自查数据表 */ - List selectHygieneByMonth(String month); + List selectHygieneByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneTemplateMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneTemplateMapper.java index d5bcf94..dbbbbb7 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneTemplateMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/HygieneTemplateMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.HygieneTemplateEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import java.util.Map; @@ -21,5 +22,5 @@ public interface HygieneTemplateMapper extends BaseMapper * @param page 分页类 * @return 页面 */ - IPage getHygieneTemplatePage(IPage page, Map param); + IPage getHygieneTemplatePage(@Param("page") IPage page, @Param("param") Map param); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonAlarmInfoMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonAlarmInfoMapper.java index fc21ce4..e66448c 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonAlarmInfoMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonAlarmInfoMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.safeproduct.entity.ImsMonAlarmInfoEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonCameraInfoMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonCameraInfoMapper.java index de2504e..020b230 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonCameraInfoMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/ImsMonCameraInfoMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.safeproduct.entity.ImsMonCameraInfoEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalPlanMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalPlanMapper.java index d8cb3ec..16424b9 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalPlanMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalPlanMapper.java @@ -30,7 +30,7 @@ public interface RehearsalPlanMapper extends UserDataScopeBaseMapper selectByMonth(IPage page, String unit, String month); + IPage selectByMonth(@Param("page") IPage page, @Param("unit") String unit, @Param("month") String month); /** * 查询当月各单位已完成的演练数据 @@ -40,7 +40,8 @@ public interface RehearsalPlanMapper extends UserDataScopeBaseMapper selectFinishedDataByMonth(IPage page, String unit, String month); + IPage selectFinishedDataByMonth(@Param("page") IPage page, @Param("unit") String unit, + @Param("month") String month); /** * 查询当年的所有单位 @@ -50,7 +51,7 @@ public interface RehearsalPlanMapper extends UserDataScopeBaseMapper selectUnitByYear(IPage page, String unit, @Param("year") String year); + IPage selectUnitByYear(@Param("page") IPage page, @Param("unit") String unit, @Param("year") String year); /** * 查询各单位全年已完成的演练数据 @@ -69,5 +70,6 @@ public interface RehearsalPlanMapper extends UserDataScopeBaseMapper getRehearsalByUnitAndDate(String unit, String startTime, String endTime); + List getRehearsalByUnitAndDate(@Param("unit") String unit, @Param("startTime") String startTime, + @Param("endTime") String endTime); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalRecordMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalRecordMapper.java index 5d6242d..02e6547 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalRecordMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/RehearsalRecordMapper.java @@ -5,6 +5,7 @@ import com.hnac.hzims.safeproduct.entity.RehearsalRecordEntity; import com.hnac.hzims.safeproduct.vo.RehearsalRecordDetailVO; import com.hnac.hzims.safeproduct.vo.RehearsalRecordlVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,7 +26,7 @@ public interface RehearsalRecordMapper extends UserDataScopeBaseMapper getRehearsalRecordPage(IPage page, Map param); + IPage getRehearsalRecordPage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月演练记录 * @param month 当月 * @return 当月演练数据表 */ - List selectRehearsalByMonth(String month); + List selectRehearsalByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolMapper.java index c820272..76dc54e 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.safeproduct.entity.SafetyToolEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolRecheckMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolRecheckMapper.java index 40fcb36..54bb854 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolRecheckMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolRecheckMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.dto.SafetyToolRecheckListDTO; import com.hnac.hzims.safeproduct.entity.SafetyToolRecheckEntity; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolTypeMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolTypeMapper.java index 7ddc8ed..f756d7d 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolTypeMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SafetyToolTypeMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.safeproduct.entity.SafetyToolTypeEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SpecialDeviceInspectionMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SpecialDeviceInspectionMapper.java index 39132ff..48c00c2 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SpecialDeviceInspectionMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SpecialDeviceInspectionMapper.java @@ -3,6 +3,7 @@ package com.hnac.hzims.safeproduct.mapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.entity.SpecialDeviceInspectionEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,12 +26,13 @@ public interface SpecialDeviceInspectionMapper extends UserDataScopeBaseMapper getInspectionPage(IPage page, Map param); + IPage getInspectionPage(@Param("page") IPage page, + @Param("param") Map param); /** * 获取设备相关检验记录 * @param deviceId 设备id * @return 设备检验记录列表 */ - List getRefDeviceInspection(Long deviceId); + List getRefDeviceInspection(@Param("deviceId") Long deviceId); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileMapper.java index a110c93..c1af77e 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.hzims.safeproduct.entity.SystemFileEntity; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileTypeMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileTypeMapper.java index fa8de66..723eb41 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileTypeMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/SystemFileTypeMapper.java @@ -1,6 +1,5 @@ package com.hnac.hzims.safeproduct.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.dto.SystemFileTypeListDTO; import com.hnac.hzims.safeproduct.entity.SystemFileTypeEntity; @@ -14,6 +13,6 @@ import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; **/ public interface SystemFileTypeMapper extends UserDataScopeBaseMapper { - IPage pageCondition(@Param("page") SystemFileTypeListDTO page, IPage query); + IPage pageCondition(@Param("page") SystemFileTypeListDTO page, @Param("query") IPage query); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestMapper.java index 0817af7..c75a43c 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.hnac.hzims.safeproduct.dto.TestDTO; import com.hnac.hzims.safeproduct.entity.TestEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -25,7 +26,7 @@ public interface TestMapper extends UserDataScopeBaseMapper { * @return 考试记录名称列表 */ @UserDataAuth - List getTestNameList(String trainPlanId); + List getTestNameList(@Param("trainPlanId") String trainPlanId); /** * 考试记录分页 @@ -34,12 +35,12 @@ public interface TestMapper extends UserDataScopeBaseMapper { * @return 考试记录数据 */ @UserDataAuth - IPage testPage(IPage page, Map param); + IPage testPage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月考试记录 * @param month 当月 * @return 当月考试记录 */ - List selectTestByMonth(String month); + List selectTestByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestScoreMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestScoreMapper.java index 061d4a5..976e60c 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestScoreMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestScoreMapper.java @@ -3,6 +3,7 @@ package com.hnac.hzims.safeproduct.mapper; import com.hnac.hzims.safeproduct.entity.TestScoreEntity; import com.hnac.hzims.safeproduct.vo.TestScoreVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; import java.util.List; @@ -22,5 +23,5 @@ public interface TestScoreMapper extends UserDataScopeBaseMapper testScoreList(Long testId, String name); + List testScoreList(@Param("testId") Long testId, @Param("name") String name); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.java index bbb1960..71e2c46 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.java @@ -6,6 +6,7 @@ import com.hnac.hzims.safeproduct.entity.TrainPlanEntity; import com.hnac.hzims.safeproduct.vo.TrainMonthVO; import com.hnac.hzims.safeproduct.vo.TrainYearVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -29,7 +30,7 @@ public interface TrainPlanMapper extends UserDataScopeBaseMapper selectByMonth(IPage page, String unit, String month); + IPage selectByMonth(@Param("page") IPage page, @Param("unit") String unit, @Param("month") String month); /** * 查询当月各单位已完成的培训计划数据 @@ -39,7 +40,7 @@ public interface TrainPlanMapper extends UserDataScopeBaseMapper selectFinishedDataByMonth(IPage page1, String unit, String month); + IPage selectFinishedDataByMonth(@Param("page1") IPage page1, @Param("unit") String unit, @Param("month") String month); /** * 查询当年的所有单位 @@ -49,7 +50,7 @@ public interface TrainPlanMapper extends UserDataScopeBaseMapper selectUnitByYear(IPage page, String unit, String year); + IPage selectUnitByYear(@Param("page") IPage page, @Param("unit") String unit, @Param("year") String year); /** * 查询各单位全年已完成的培训计划数 @@ -58,7 +59,7 @@ public interface TrainPlanMapper extends UserDataScopeBaseMapper selectFinishedDataByUnit(List unitList, String year); + List selectFinishedDataByUnit(@Param("unitList") List unitList, @Param("year") String year); /** * 培训计划分页 @@ -67,7 +68,7 @@ public interface TrainPlanMapper extends UserDataScopeBaseMapper trainPlanPage(IPage page, Map param); + IPage trainPlanPage(@Param("page") IPage page, @Param("param") Map param); /** * 根据单位和计划时间查询培训计划数据 @@ -77,5 +78,6 @@ public interface TrainPlanMapper extends UserDataScopeBaseMapper selectListByUnitAndDate(String unit, String startTime, String endTime); + List selectListByUnitAndDate(@Param("unit") String unit, @Param("startTime") String startTime, + @Param("endTime") String endTime); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainRecordMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainRecordMapper.java index a7265c8..8ef5f1d 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainRecordMapper.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainRecordMapper.java @@ -6,6 +6,7 @@ import com.hnac.hzims.safeproduct.entity.TrainRecordEntity; import com.hnac.hzims.safeproduct.vo.TrainRecordDetailVO; import com.hnac.hzims.safeproduct.vo.TrainRecordVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; @@ -27,14 +28,14 @@ public interface TrainRecordMapper extends UserDataScopeBaseMapper getTrainRecordNameList(String trainPlanId); + List getTrainRecordNameList(@Param("trainPlanId") String trainPlanId); /** * 查询培训记录表详情 * @param id 培训记录id * @return 培训记录表VO类 */ - TrainRecordDetailVO getTrainRecordDetailById(Long id); + TrainRecordDetailVO getTrainRecordDetailById(@Param("id") Long id); /** * 培训记录分页 @@ -43,12 +44,12 @@ public interface TrainRecordMapper extends UserDataScopeBaseMapper trainRecordPage(IPage page, Map param); + IPage trainRecordPage(@Param("page") IPage page, @Param("param") Map param); /** * 查询当月培训记录 * @param month 当月 * @return 当月培训记录 */ - List selectTrainByMonth(String month); + List selectTrainByMonth(@Param("month") String month); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/service/impl/EstimateServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/service/impl/EstimateServiceImpl.java index 5494200..5d6759a 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/service/impl/EstimateServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/service/impl/EstimateServiceImpl.java @@ -48,7 +48,7 @@ public class EstimateServiceImpl extends BaseServiceImpllambdaQuery() + long count = this.count(Wrappers.lambdaQuery() .eq(RiskEstimate::getStationCode,entity.getStationCode()) .eq(RiskEstimate::getEstimateYear,entity.getEstimateYear())); if(count > 0){ diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/riskhazards/controller/RiskHazardsScreeningController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/riskhazards/controller/RiskHazardsScreeningController.java index 4cbf99a..59465e3 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/riskhazards/controller/RiskHazardsScreeningController.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/riskhazards/controller/RiskHazardsScreeningController.java @@ -7,9 +7,9 @@ import com.hnac.hzims.safeproduct.riskhazards.entity.RiskHazardsScreening; import com.hnac.hzims.safeproduct.riskhazards.service.IRiskHazardsScreeningService; import com.hnac.hzims.safeproduct.riskhazards.vo.RiskHazardsScreeningVo; import com.hnac.hzims.safeproduct.wrapper.RiskHazardsScreeningWrapper; +import com.hnac.hzinfo.cache.constant.CacheNames; import io.swagger.annotations.*; import lombok.AllArgsConstructor; -import org.springblade.common.cache.CacheNames; import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; @@ -136,7 +136,7 @@ public class RiskHazardsScreeningController extends BladeController implements C @ApiOperation(value = "详情", notes = "传入riskHazardsScreening") public R count() { LambdaQueryWrapper wrapper=new LambdaQueryWrapper<>(); - int counts=riskHazardsScreeningService.count(wrapper); + long counts=riskHazardsScreeningService.count(wrapper); return R.data(counts); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IAccidentService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IAccidentService.java index 54dd862..df9942d 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IAccidentService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IAccidentService.java @@ -1,15 +1,16 @@ package com.hnac.hzims.safeproduct.service; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.AccidentDTO; import com.hnac.hzims.safeproduct.entity.AccidentEntity; import com.hnac.hzims.safeproduct.statistic.vo.RiskDangerAccidentMonthCountVO; -import org.springblade.core.mp.base.BaseService; import java.util.List; /** * @author hx */ -public interface IAccidentService extends BaseService { +public interface IAccidentService extends IService { + List getAccidentMonthTrend(AccidentDTO req); } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckCompanyService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckCompanyService.java index 217a5dc..8586a4e 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckCompanyService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckCompanyService.java @@ -1,13 +1,9 @@ package com.hnac.hzims.safeproduct.service; -import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.CheckCompanyDTO; -import com.hnac.hzims.safeproduct.dto.CheckQuarterDTO; import com.hnac.hzims.safeproduct.entity.CheckCompanyEntity; -import com.hnac.hzims.safeproduct.entity.CheckQuarterEntity; import com.hnac.hzims.safeproduct.vo.CheckCompanyVo; -import com.hnac.hzims.safeproduct.vo.CheckQuarterVo; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.BladePage; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -15,7 +11,7 @@ import org.springblade.core.tool.api.R; /** * Created by Sam Huang 2022/5/6 8:28 */ -public interface ICheckCompanyService extends BaseService { +public interface ICheckCompanyService extends IService { boolean doSave(CheckCompanyDTO req); @@ -26,5 +22,4 @@ public interface ICheckCompanyService extends BaseService { R detail(Long id); R> pageCondition(CheckCompanyEntity req, Query query); - } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemInstanceService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemInstanceService.java index 73fe83c..a62afd0 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemInstanceService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemInstanceService.java @@ -1,18 +1,11 @@ package com.hnac.hzims.safeproduct.service; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.hnac.hzims.safeproduct.dto.CheckItemDTO; -import com.hnac.hzims.safeproduct.entity.CheckItemEntity; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.entity.CheckItemInstanceEntity; -import com.hnac.hzims.safeproduct.vo.CheckItemVo; -import org.springblade.core.mp.base.BaseService; -import org.springblade.core.mp.support.Query; -import org.springblade.core.tool.api.R; /** * Created by Sam Huang 2022/5/6 8:28 */ -public interface ICheckItemInstanceService extends BaseService { - +public interface ICheckItemInstanceService extends IService { } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemService.java index f4f310c..9f8a6bf 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckItemService.java @@ -1,24 +1,22 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.CheckItemDTO; -import com.hnac.hzims.safeproduct.dto.CheckMonthDTO; import com.hnac.hzims.safeproduct.dto.CheckQueryItemDTO; import com.hnac.hzims.safeproduct.entity.CheckItemEntity; import com.hnac.hzims.safeproduct.entity.CheckItemInstanceEntity; import com.hnac.hzims.safeproduct.vo.CheckItemVo; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; import java.util.List; import java.util.Map; -import java.util.concurrent.ExecutionException; /** * Created by Sam Huang 2022/5/6 8:28 */ -public interface ICheckItemService extends BaseService { +public interface ICheckItemService extends IService { boolean doSave(CheckItemDTO req); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckMonthService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckMonthService.java index d71a996..a1f1f11 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckMonthService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckMonthService.java @@ -2,17 +2,17 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.CheckMonthDTO; import com.hnac.hzims.safeproduct.entity.CheckMonthEntity; import com.hnac.hzims.safeproduct.vo.CheckMonthVo; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; /** * Created by Sam Huang 2022/5/6 8:28 */ -public interface ICheckMonthService extends BaseService { +public interface ICheckMonthService extends IService { R doSave(CheckMonthDTO req); @@ -26,7 +26,6 @@ public interface ICheckMonthService extends BaseService { R> pageNotDataScope(CheckMonthEntity req, Query query); - /** * 分页查询安全生产会议次数 * @param req diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckNoticeService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckNoticeService.java index 126d4e2..3566783 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckNoticeService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckNoticeService.java @@ -1,20 +1,17 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; -import com.hnac.hzims.safeproduct.dto.CheckItemDTO; -import com.hnac.hzims.safeproduct.dto.CheckMonthDTO; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.CheckNoticeDTO; -import com.hnac.hzims.safeproduct.dto.CheckQuarterDTO; import com.hnac.hzims.safeproduct.entity.CheckNoticeEntity; import com.hnac.hzims.safeproduct.vo.CheckNoticeVo; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; /** * Created by Sam Huang 2022/5/6 8:28 */ -public interface ICheckNoticeService extends BaseService { +public interface ICheckNoticeService extends IService { boolean doSave(CheckNoticeDTO req); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckQuarterService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckQuarterService.java index 0bf8eff..4f826c0 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckQuarterService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ICheckQuarterService.java @@ -1,17 +1,17 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.CheckQuarterDTO; import com.hnac.hzims.safeproduct.entity.CheckQuarterEntity; import com.hnac.hzims.safeproduct.vo.CheckQuarterVo; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; /** * Created by Sam Huang 2022/5/6 8:28 */ -public interface ICheckQuarterService extends BaseService { +public interface ICheckQuarterService extends IService { R doSave(CheckQuarterDTO req); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanService.java index 697a773..f9e2344 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanService.java @@ -1,10 +1,10 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.EmergencyPlanListDTO; import com.hnac.hzims.safeproduct.entity.EmergencyPlanEntity; import com.hnac.hzims.safeproduct.vo.EmergencyPlanVO; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -12,7 +12,7 @@ import org.springblade.core.tool.api.R; * @author xiashandong * @created 2020/9/9 14:39 **/ -public interface IEmergencyPlanService extends BaseService { +public interface IEmergencyPlanService extends IService { R detail(Long id); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanTypeService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanTypeService.java index 189e02d..df3e42a 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanTypeService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IEmergencyPlanTypeService.java @@ -1,21 +1,20 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.EmergencyPlanTypeDTO; import com.hnac.hzims.safeproduct.dto.EmergencyPlanTypeListDTO; import com.hnac.hzims.safeproduct.entity.EmergencyPlanTypeEntity; import com.hnac.hzims.safeproduct.vo.EmergencyPlanTypeTreeVO; import com.hnac.hzims.safeproduct.vo.EmergencyPlanTypeVO; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; - /** * @author xiashandong * @created 2020/9/9 14:39 **/ -public interface IEmergencyPlanTypeService extends BaseService { +public interface IEmergencyPlanTypeService extends IService { boolean remove(Long id); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonAlarmInfoService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonAlarmInfoService.java index b9ed546..e4b432b 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonAlarmInfoService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonAlarmInfoService.java @@ -1,13 +1,13 @@ package com.hnac.hzims.safeproduct.service; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.entity.ImsMonAlarmInfoEntity; -import org.springblade.core.mp.base.BaseService; /** * 服务类 * * @author Chill */ -public interface IImsMonAlarmInfoService extends BaseService { +public interface IImsMonAlarmInfoService extends IService { } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonCameraInfoService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonCameraInfoService.java index 0c370a5..3880838 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonCameraInfoService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IImsMonCameraInfoService.java @@ -1,13 +1,13 @@ package com.hnac.hzims.safeproduct.service; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.entity.ImsMonCameraInfoEntity; -import org.springblade.core.mp.base.BaseService; /** * 服务类 * * @author Chill */ -public interface IImsMonCameraInfoService extends BaseService { +public interface IImsMonCameraInfoService extends IService { } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewService.java index a1e2ba2..28ed7d8 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewService.java @@ -1,10 +1,11 @@ package com.hnac.hzims.safeproduct.service; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.entity.ReviewEntity; import org.springblade.core.mp.base.BaseService; /** * @author hx */ -public interface IReviewService extends BaseService { +public interface IReviewService extends IService { } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewStandardService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewStandardService.java index 8069491..0dd48d9 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewStandardService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/IReviewStandardService.java @@ -1,11 +1,10 @@ package com.hnac.hzims.safeproduct.service; -import com.hnac.hzims.safeproduct.entity.ReviewEntity; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.entity.ReviewStandardEntity; -import org.springblade.core.mp.base.BaseService; /** * @author hx */ -public interface IReviewStandardService extends BaseService { +public interface IReviewStandardService extends IService { } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolService.java index b515ede..7731e49 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolService.java @@ -1,11 +1,11 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.SafetyToolBatchRecheckDTO; import com.hnac.hzims.safeproduct.dto.SafetyToolDTO; import com.hnac.hzims.safeproduct.entity.SafetyToolEntity; import com.hnac.hzims.safeproduct.vo.SafetyToolVO; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; import org.springframework.web.multipart.MultipartFile; @@ -16,7 +16,7 @@ import java.util.List; * @author xiashandong * @created 2020/8/27 17:19 **/ -public interface ISafetyToolService extends BaseService { +public interface ISafetyToolService extends IService { R doSave(SafetyToolEntity req); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolTypeService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolTypeService.java index 827478a..e996646 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolTypeService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISafetyToolTypeService.java @@ -1,12 +1,12 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.SafetyToolTypeBatchConfigDTO; import com.hnac.hzims.safeproduct.dto.SafetyToolTypeDTO; import com.hnac.hzims.safeproduct.dto.SafetyToolTypeListDTO; import com.hnac.hzims.safeproduct.entity.SafetyToolTypeEntity; import com.hnac.hzims.safeproduct.vo.SafetyToolTypeVO; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import java.util.Map; @@ -16,7 +16,7 @@ import java.util.Map; * * @author Chill */ -public interface ISafetyToolTypeService extends BaseService { +public interface ISafetyToolTypeService extends IService { long doSave(SafetyToolTypeDTO req); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileService.java index 11bdd11..e0f73a1 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileService.java @@ -1,10 +1,10 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.SystemFileListDTO; import com.hnac.hzims.safeproduct.entity.SystemFileEntity; import com.hnac.hzims.safeproduct.vo.SystemFileVO; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -12,7 +12,7 @@ import org.springblade.core.tool.api.R; * @author xiashandong * @created 2020/9/8 15:12 **/ -public interface ISystemFileService extends BaseService { +public interface ISystemFileService extends IService { R detail(Long id); @@ -24,5 +24,4 @@ public interface ISystemFileService extends BaseService { * @return */ R submitApproved(SystemFileListDTO req); - } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileTypeService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileTypeService.java index b4240ff..8d43470 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileTypeService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/ISystemFileTypeService.java @@ -1,11 +1,11 @@ package com.hnac.hzims.safeproduct.service; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.SystemFileTypeListDTO; import com.hnac.hzims.safeproduct.entity.SystemFileTypeEntity; import com.hnac.hzims.safeproduct.vo.SystemFileTypeTreeVO; import com.hnac.hzims.safeproduct.vo.SystemFileTypeVO; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -13,7 +13,7 @@ import org.springblade.core.tool.api.R; * @author xiashandong * @created 2020/9/7 16:21 **/ -public interface ISystemFileTypeService extends BaseService { +public interface ISystemFileTypeService extends IService { boolean remove(Long id); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/SafeEquipmentTrialService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/SafeEquipmentTrialService.java index 33fad1b..bc58f4f 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/SafeEquipmentTrialService.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/SafeEquipmentTrialService.java @@ -1,11 +1,10 @@ package com.hnac.hzims.safeproduct.service; -import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; import com.hnac.hzims.safeproduct.dto.SafeEquipmentDTO; import com.hnac.hzims.safeproduct.dto.SafeEquipmentTrialDTO; import com.hnac.hzims.safeproduct.entity.SafeEquipmentTrialEntity; import com.hnac.hzims.safeproduct.vo.SafeEquipmentTrialVO; -import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.support.BladePage; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -15,7 +14,7 @@ import java.util.List; /** * 设备试验接口 */ -public interface SafeEquipmentTrialService extends BaseService { +public interface SafeEquipmentTrialService extends IService { R> pageCondition(SafeEquipmentTrialDTO safeEquipmentTrialDTO, Query query); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/AccidentServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/AccidentServiceImpl.java index a0ef96e..ea97f59 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/AccidentServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/AccidentServiceImpl.java @@ -2,6 +2,7 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.operational.station.entity.StationEntity; import com.hnac.hzims.operational.station.feign.IStationClient; import com.hnac.hzims.safeproduct.dto.AccidentDTO; @@ -11,7 +12,6 @@ import com.hnac.hzims.safeproduct.service.IAccidentService; import com.hnac.hzims.safeproduct.statistic.vo.RiskDangerAccidentMonthCountVO; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.Func; import org.springblade.core.tool.utils.ObjectUtil; @@ -26,7 +26,7 @@ import java.util.Optional; @Service @AllArgsConstructor @Slf4j -public class AccidentServiceImpl extends BaseServiceImpl implements IAccidentService { +public class AccidentServiceImpl extends ServiceImpl implements IAccidentService { private final IStationClient stationClient; @Override diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarAnnualInspectionServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarAnnualInspectionServiceImpl.java index cdf25f0..df1e142 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarAnnualInspectionServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarAnnualInspectionServiceImpl.java @@ -1,7 +1,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -18,6 +17,7 @@ import org.springblade.core.mp.support.Query; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import java.util.Date; import java.util.List; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckItemServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckItemServiceImpl.java index 17da3e5..cfef5bf 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckItemServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckItemServiceImpl.java @@ -1,12 +1,12 @@ package com.hnac.hzims.safeproduct.service.impl; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.entity.CarCheckItemEntity; import com.hnac.hzims.safeproduct.mapper.CarCheckItemMapper; import com.hnac.hzims.safeproduct.service.ICarCheckItemService; import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; import java.util.List; import java.util.stream.Collectors; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckRecordServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckRecordServiceImpl.java index 2ddad1b..bf9f384 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckRecordServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarCheckRecordServiceImpl.java @@ -1,7 +1,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -25,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarInsuranceServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarInsuranceServiceImpl.java index f1777a4..01dc3fe 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarInsuranceServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarInsuranceServiceImpl.java @@ -1,7 +1,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -17,6 +16,7 @@ import com.hnac.hzims.safeproduct.vo.CarInsurancePageVO; import org.springblade.core.mp.support.Query; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; import java.util.Date; import java.util.List; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarMaintenanceServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarMaintenanceServiceImpl.java index ecbf44b..b6d0f88 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarMaintenanceServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarMaintenanceServiceImpl.java @@ -2,7 +2,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.afterturn.easypoi.entity.ImageEntity; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -27,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import javax.servlet.http.HttpServletResponse; import java.util.ArrayList; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarUsedRecordServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarUsedRecordServiceImpl.java index 4f6a904..386e7c5 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarUsedRecordServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CarUsedRecordServiceImpl.java @@ -2,7 +2,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.afterturn.easypoi.entity.ImageEntity; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -22,6 +21,7 @@ import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.DateUtil; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; import javax.servlet.http.HttpServletResponse; import java.math.BigDecimal; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckCompanyServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckCompanyServiceImpl.java index becd6c8..3caad46 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckCompanyServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckCompanyServiceImpl.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.StringUtils; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.dto.CheckCompanyDTO; import com.hnac.hzims.safeproduct.entity.CheckCompanyEntity; import com.hnac.hzims.safeproduct.entity.CheckItemEntity; @@ -17,7 +18,6 @@ import com.hnac.hzims.safeproduct.wrapper.CheckCompanyWrapper; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springblade.core.mp.base.BaseEntity; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.BladePage; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; @@ -31,14 +31,13 @@ import org.springframework.stereotype.Service; import java.util.*; import java.util.stream.Collectors; - /** * Created by Sam Huang 2022/5/6 8:23 */ @Service @AllArgsConstructor @Slf4j -public class CheckCompanyServiceImpl extends BaseServiceImpl implements ICheckCompanyService { +public class CheckCompanyServiceImpl extends ServiceImpl implements ICheckCompanyService { private final CheckCompanyMapper CheckCompanyMapper; @@ -119,7 +118,7 @@ public class CheckCompanyServiceImpl extends BaseServiceImpl list = Func.toLongList(ids); - boolean result = deleteLogic(list); + boolean result = removeByIds(list); if (result) { list.forEach(id -> { QueryWrapper queryMapper = new QueryWrapper<>(); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemInstanceServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemInstanceServiceImpl.java index 42cbf45..ea0a369 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemInstanceServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemInstanceServiceImpl.java @@ -1,20 +1,19 @@ package com.hnac.hzims.safeproduct.service.impl; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.entity.CheckItemInstanceEntity; import com.hnac.hzims.safeproduct.mapper.CheckItemInstanceMapper; import com.hnac.hzims.safeproduct.service.ICheckItemInstanceService; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springframework.stereotype.Service; - /** * Created by Sam Huang 2022/5/6 8:23 */ @Service @AllArgsConstructor @Slf4j -public class CheckItemInstanceServiceImpl extends BaseServiceImpl implements ICheckItemInstanceService { +public class CheckItemInstanceServiceImpl extends ServiceImpl implements ICheckItemInstanceService { } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemServiceImpl.java index b80c3d7..44378b6 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckItemServiceImpl.java @@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.common.logs.utils.StringUtils; import com.hnac.hzims.operational.duty.dto.ChangeShiftsReqDTO; import com.hnac.hzims.operational.duty.dto.ChangeShiftsRspDTO; import com.hnac.hzims.operational.duty.feign.IDutyRecClient; @@ -28,9 +30,7 @@ import com.hnac.hzims.vo.SafeCheckStatisticVO; import com.hnac.hzinfo.inspect.task.feign.IInspectTaskClient; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang.StringUtils; import org.springblade.core.log.exception.ServiceException; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; import org.springblade.core.secure.utils.AuthUtil; @@ -53,14 +53,13 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.stream.Collectors; - /** * Created by Sam Huang 2022/5/6 8:23 */ @Service @AllArgsConstructor @Slf4j -public class CheckItemServiceImpl extends BaseServiceImpl implements ICheckItemService { +public class CheckItemServiceImpl extends ServiceImpl implements ICheckItemService { private final CheckItemMapper checkItemMapper; @@ -176,7 +175,7 @@ public class CheckItemServiceImpl extends BaseServiceImpl implements ICheckMonthService { +public class CheckMonthServiceImpl extends ServiceImpl implements ICheckMonthService { private final CheckMonthMapper checkMonthMapper; @@ -104,7 +104,7 @@ public class CheckMonthServiceImpl extends BaseServiceImpl list = Func.toLongList(ids); - boolean result = deleteLogic(list); + boolean result = removeByIds(list); if (result) { list.forEach(id -> { QueryWrapper queryMapper = new QueryWrapper<>(); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckNoticeServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckNoticeServiceImpl.java index 9d6bc94..f61cd79 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckNoticeServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckNoticeServiceImpl.java @@ -3,6 +3,8 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.common.logs.utils.StringUtils; import com.hnac.hzims.message.MessageConstants; import com.hnac.hzims.message.dto.AppPushDto; import com.hnac.hzims.message.dto.WsPushDto; @@ -16,7 +18,6 @@ import com.hnac.hzims.safeproduct.wrapper.CheckNoticeWrapper; import com.hnac.hzinfo.core.push.enums.PushAudienceType; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang.StringUtils; import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; @@ -33,14 +34,13 @@ import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; - /** * Created by Sam Huang 2022/5/6 8:23 */ @Service @AllArgsConstructor @Slf4j -public class CheckNoticeServiceImpl extends BaseServiceImpl implements ICheckNoticeService { +public class CheckNoticeServiceImpl extends ServiceImpl implements ICheckNoticeService { private final CheckNoticeMapper CheckNoticeMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckQuarterServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckQuarterServiceImpl.java index 789146a..1b206d7 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckQuarterServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/CheckQuarterServiceImpl.java @@ -4,10 +4,10 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.dto.CheckQuarterDTO; import com.hnac.hzims.safeproduct.entity.CheckItemEntity; import com.hnac.hzims.safeproduct.entity.CheckItemInstanceEntity; -import com.hnac.hzims.safeproduct.entity.CheckMonthEntity; import com.hnac.hzims.safeproduct.entity.CheckQuarterEntity; import com.hnac.hzims.safeproduct.mapper.CheckQuarterMapper; import com.hnac.hzims.safeproduct.service.ICheckItemInstanceService; @@ -16,7 +16,6 @@ import com.hnac.hzims.safeproduct.vo.CheckQuarterVo; import com.hnac.hzims.safeproduct.wrapper.CheckQuarterWrapper; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -28,14 +27,13 @@ import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; - /** * Created by Sam Huang 2022/5/6 8:23 */ @Service @AllArgsConstructor @Slf4j -public class CheckQuarterServiceImpl extends BaseServiceImpl implements ICheckQuarterService { +public class CheckQuarterServiceImpl extends ServiceImpl implements ICheckQuarterService { private final CheckQuarterMapper CheckQuarterMapper; @@ -101,7 +99,7 @@ public class CheckQuarterServiceImpl extends BaseServiceImpl list = Func.toLongList(ids); - boolean result = deleteLogic(list); + boolean result = removeByIds(list); if (result) { list.forEach(id -> { QueryWrapper queryMapper = new QueryWrapper<>(); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ConferenceRecordServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ConferenceRecordServiceImpl.java index b2f88f4..b8b4ed6 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ConferenceRecordServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ConferenceRecordServiceImpl.java @@ -2,7 +2,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.afterturn.easypoi.entity.ImageEntity; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -24,6 +23,7 @@ import org.springblade.core.mp.support.Query; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanServiceImpl.java index a6c80bd..4f53ac0 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanServiceImpl.java @@ -2,13 +2,13 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.dto.EmergencyPlanListDTO; import com.hnac.hzims.safeproduct.entity.EmergencyPlanEntity; import com.hnac.hzims.safeproduct.mapper.EmergencyPlanMapper; import com.hnac.hzims.safeproduct.service.IEmergencyPlanService; import com.hnac.hzims.safeproduct.vo.EmergencyPlanVO; import com.hnac.hzims.safeproduct.wrapper.EmergencyPlanWrapper; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -23,7 +23,7 @@ import java.util.List; * @created 2020/9/9 14:40 **/ @Service -public class EmergencyPlanServiceImpl extends BaseServiceImpl implements IEmergencyPlanService { +public class EmergencyPlanServiceImpl extends ServiceImpl implements IEmergencyPlanService { @Autowired private EmergencyPlanMapper emergencyPlanMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanTypeServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanTypeServiceImpl.java index 18bd456..28811ab 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanTypeServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanTypeServiceImpl.java @@ -2,17 +2,16 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.common.utils.TreeUtil; import com.hnac.hzims.safeproduct.dto.EmergencyPlanTypeDTO; import com.hnac.hzims.safeproduct.dto.EmergencyPlanTypeListDTO; -import com.hnac.hzims.safeproduct.entity.DangerSourceEntity; import com.hnac.hzims.safeproduct.entity.EmergencyPlanTypeEntity; import com.hnac.hzims.safeproduct.mapper.EmergencyPlanTypeMapper; import com.hnac.hzims.safeproduct.service.IEmergencyPlanTypeService; import com.hnac.hzims.safeproduct.vo.EmergencyPlanTypeTreeVO; import com.hnac.hzims.safeproduct.vo.EmergencyPlanTypeVO; import com.hnac.hzims.safeproduct.wrapper.EmergencyPlanTypeWrapper; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -28,7 +27,7 @@ import java.util.stream.Collectors; * @created 2020/9/9 14:40 **/ @Service -public class EmergencyPlanTypeServiceImpl extends BaseServiceImpl implements IEmergencyPlanTypeService { +public class EmergencyPlanTypeServiceImpl extends ServiceImpl implements IEmergencyPlanTypeService { @Autowired private EmergencyPlanTypeMapper emergencyPlanTypeMapper; @@ -38,7 +37,7 @@ public class EmergencyPlanTypeServiceImpl extends BaseServiceImpl entities = emergencyPlanTypeMapper.selectList(new QueryWrapper()); List list = entities.stream().map(o -> BeanUtil.copy(o, EmergencyPlanTypeTreeVO.class)).collect(Collectors.toList()); List ids = TreeUtil.builder().build().getChildIds(id, list); - return super.deleteLogic(ids); + return super.removeByIds(ids); } @Override diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneRecordServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneRecordServiceImpl.java index 5392c0a..61b6449 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneRecordServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneRecordServiceImpl.java @@ -1,7 +1,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -28,6 +27,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneZoneServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneZoneServiceImpl.java index a0f42cb..26a8dfe 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneZoneServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/HygieneZoneServiceImpl.java @@ -1,12 +1,12 @@ package com.hnac.hzims.safeproduct.service.impl; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.entity.HygieneZoneEntity; import com.hnac.hzims.safeproduct.mapper.HygieneZoneMapper; import com.hnac.hzims.safeproduct.service.IHygieneZoneService; import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; import java.util.List; import java.util.stream.Collectors; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonAlarmInfoServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonAlarmInfoServiceImpl.java index ecce072..be2fb54 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonAlarmInfoServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonAlarmInfoServiceImpl.java @@ -1,18 +1,16 @@ package com.hnac.hzims.safeproduct.service.impl; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.operational.duty.entity.ImsDutyMainEntity; import com.hnac.hzims.operational.duty.enume.JoinStatus; import com.hnac.hzims.operational.duty.feign.IDutyMainClient; import com.hnac.hzims.safeproduct.entity.ImsMonAlarmInfoEntity; import com.hnac.hzims.safeproduct.mapper.ImsMonAlarmInfoMapper; import com.hnac.hzims.safeproduct.service.IImsMonAlarmInfoService; -//import com.hnac.hzims.webnotify.dto.ImsNotifyDTO; -//import com.hnac.hzims.webnotify.feign.INotifyClient; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springblade.core.log.exception.ServiceException; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.tool.utils.BeanUtil; import org.springblade.core.tool.utils.DateUtil; import org.springblade.core.tool.utils.Func; @@ -29,7 +27,7 @@ import java.util.*; @Slf4j @Service @AllArgsConstructor -public class ImsMonAlarmInfoServiceImpl extends BaseServiceImpl implements IImsMonAlarmInfoService { +public class ImsMonAlarmInfoServiceImpl extends ServiceImpl implements IImsMonAlarmInfoService { private final IDutyMainClient dutyMainClient; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonCameraInfoServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonCameraInfoServiceImpl.java index 9c150dd..ff46e8e 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonCameraInfoServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ImsMonCameraInfoServiceImpl.java @@ -1,10 +1,10 @@ package com.hnac.hzims.safeproduct.service.impl; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.entity.ImsMonCameraInfoEntity; import com.hnac.hzims.safeproduct.mapper.ImsMonCameraInfoMapper; import com.hnac.hzims.safeproduct.service.IImsMonCameraInfoService; import org.springblade.core.log.exception.ServiceException; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.tool.utils.Func; import org.springframework.stereotype.Service; @@ -14,7 +14,7 @@ import org.springframework.stereotype.Service; * @author Chill */ @Service -public class ImsMonCameraInfoServiceImpl extends BaseServiceImpl implements IImsMonCameraInfoService { +public class ImsMonCameraInfoServiceImpl extends ServiceImpl implements IImsMonCameraInfoService { @Override public boolean save(ImsMonCameraInfoEntity entity) { diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalRecordServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalRecordServiceImpl.java index 4018a62..47b7a0a 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalRecordServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalRecordServiceImpl.java @@ -2,7 +2,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.afterturn.easypoi.entity.ImageEntity; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -30,6 +29,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewServiceImpl.java index f6ba84f..ad17b08 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewServiceImpl.java @@ -1,11 +1,11 @@ package com.hnac.hzims.safeproduct.service.impl; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.entity.ReviewEntity; import com.hnac.hzims.safeproduct.mapper.ReviewMapper; import com.hnac.hzims.safeproduct.service.IReviewService; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springframework.stereotype.Service; /** @@ -14,5 +14,6 @@ import org.springframework.stereotype.Service; @Service @Slf4j @AllArgsConstructor -public class ReviewServiceImpl extends BaseServiceImpl implements IReviewService { +public class ReviewServiceImpl extends ServiceImpl implements IReviewService { + } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewStandardServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewStandardServiceImpl.java index 9bc4052..c03b01b 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewStandardServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ReviewStandardServiceImpl.java @@ -1,16 +1,15 @@ package com.hnac.hzims.safeproduct.service.impl; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.entity.ReviewStandardEntity; import com.hnac.hzims.safeproduct.mapper.ReviewStandardMapper; import com.hnac.hzims.safeproduct.service.IReviewStandardService; -import org.springblade.core.mp.base.BaseService; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springframework.stereotype.Service; /** * @author 86187 */ @Service -public class ReviewStandardServiceImpl extends BaseServiceImpl implements IReviewStandardService { +public class ReviewStandardServiceImpl extends ServiceImpl implements IReviewStandardService { } diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafeEquipmentTrialServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafeEquipmentTrialServiceImpl.java index 7c9f4a9..b09f491 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafeEquipmentTrialServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SafeEquipmentTrialServiceImpl.java @@ -3,6 +3,7 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.StringUtils; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.dto.SafeEquipmentDTO; import com.hnac.hzims.safeproduct.dto.SafeEquipmentTrialDTO; import com.hnac.hzims.safeproduct.entity.SafeEquipmentTrialEntity; @@ -11,7 +12,6 @@ import com.hnac.hzims.safeproduct.service.SafeEquipmentTrialService; import com.hnac.hzims.safeproduct.vo.SafeEquipmentTrialVO; import com.hnac.hzims.safeproduct.wrapper.SafeEquipmentTrialWrapper; import lombok.RequiredArgsConstructor; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.BladePage; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; @@ -23,10 +23,9 @@ import org.springframework.stereotype.Service; import java.util.List; import java.util.Optional; - @Service @RequiredArgsConstructor -public class SafeEquipmentTrialServiceImpl extends BaseServiceImpl implements SafeEquipmentTrialService { +public class SafeEquipmentTrialServiceImpl extends ServiceImpl implements SafeEquipmentTrialService { /** * 分页查询 @@ -89,7 +88,7 @@ public class SafeEquipmentTrialServiceImpl extends BaseServiceImpl implements ISafetyToolService { +public class SafetyToolServiceImpl extends ServiceImpl implements ISafetyToolService { private final HttpServletResponse httpServletResponse; private final ISysClient sysClient; private final SafetyToolTypeServiceImpl safetyToolTypeService; @@ -276,7 +272,7 @@ public class SafetyToolServiceImpl extends BaseServiceImpl implements ISafetyToolTypeService { +public class SafetyToolTypeServiceImpl extends ServiceImpl implements ISafetyToolTypeService { private final SafetyToolTypeMapper safetyToolTypeMapper; private final SafetyToolTypeUserMapper safetyToolTypeUserMapper; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileServiceImpl.java index 6245f4a..d77581c 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileServiceImpl.java @@ -3,6 +3,7 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.safeproduct.Constants; import com.hnac.hzims.safeproduct.dto.SystemFileListDTO; import com.hnac.hzims.safeproduct.entity.SystemFileEntity; @@ -12,7 +13,6 @@ import com.hnac.hzims.safeproduct.service.ISystemFileService; import com.hnac.hzims.safeproduct.service.ISystemFileTypeService; import com.hnac.hzims.safeproduct.vo.SystemFileVO; import com.hnac.hzims.safeproduct.wrapper.SystemFileWrapper; -import lombok.AllArgsConstructor; import lombok.RequiredArgsConstructor; import org.springblade.core.log.exception.ServiceException; import org.springblade.core.mp.base.BaseServiceImpl; @@ -25,7 +25,6 @@ import org.springblade.flow.core.entity.BladeFlow; import org.springblade.flow.core.feign.IFlowClient; import org.springblade.flow.core.utils.FlowUtil; import org.springblade.flow.core.vo.ComleteTask; -import org.springblade.system.feign.ISysClient; import org.springblade.system.user.entity.User; import org.springblade.system.user.feign.IUserClient; import org.springframework.beans.factory.annotation.Value; @@ -43,7 +42,7 @@ import java.util.stream.Collectors; **/ @Service @RequiredArgsConstructor -public class SystemFileServiceImpl extends BaseServiceImpl implements ISystemFileService { +public class SystemFileServiceImpl extends ServiceImpl implements ISystemFileService { private final IFlowClient flowClient; private final IUserClient userClient; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileTypeServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileTypeServiceImpl.java index 93f14ef..26afc0a 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileTypeServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileTypeServiceImpl.java @@ -2,6 +2,7 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.common.utils.TreeUtil; import com.hnac.hzims.safeproduct.dto.SystemFileTypeListDTO; import com.hnac.hzims.safeproduct.entity.SystemFileTypeEntity; @@ -10,7 +11,6 @@ import com.hnac.hzims.safeproduct.service.ISystemFileTypeService; import com.hnac.hzims.safeproduct.vo.SystemFileTypeTreeVO; import com.hnac.hzims.safeproduct.vo.SystemFileTypeVO; import com.hnac.hzims.safeproduct.wrapper.SystemFileTypeWrapper; -import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; @@ -26,7 +26,7 @@ import java.util.stream.Collectors; * @created 2020/9/7 16:21 **/ @Service -public class SystemFileTypeServiceImpl extends BaseServiceImpl implements ISystemFileTypeService { +public class SystemFileTypeServiceImpl extends ServiceImpl implements ISystemFileTypeService { @Autowired private SystemFileTypeMapper systemFileTypeMapper; @@ -36,7 +36,7 @@ public class SystemFileTypeServiceImpl extends BaseServiceImpl fileTypes = systemFileTypeMapper.selectList(new QueryWrapper()); List list = fileTypes.stream().map(o -> BeanUtil.copy(o, SystemFileTypeTreeVO.class)).collect(Collectors.toList()); List ids = TreeUtil.builder().build().getChildIds(id, list); - return super.deleteLogic(ids); + return super.removeByIds(ids); } @Override diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java index ca24f67..84a7a7f 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java @@ -3,6 +3,7 @@ package com.hnac.hzims.safeproduct.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.common.logs.utils.StringUtils; import com.hnac.hzims.safeproduct.dto.TestScoreDTO; import com.hnac.hzims.safeproduct.entity.TestEntity; import com.hnac.hzims.safeproduct.entity.TestScoreEntity; @@ -13,7 +14,6 @@ import com.hnac.hzims.safeproduct.vo.TestScoreSumVO; import com.hnac.hzims.safeproduct.vo.TestScoreVO; import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang.StringUtils; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.ObjectUtil; import org.springblade.system.entity.Dept; @@ -67,7 +67,7 @@ public class TestScoreServiceImpl extends ServiceImpl scoreList = testScoreDTO.getScoreList(); List testScoreEntities = new ArrayList<>(); R> deptListR = sysClient.getDeptList(); - if (!deptListR.isSuccess()&&CollectionUtils.isEmpty(deptListR.getData())){ + if (!deptListR.isSuccess()&&CollectionUtils.isEmpty(deptListR.getData())) { log.error("获取所有机构数据失败"); } List deptList = deptListR.getData(); @@ -75,16 +75,16 @@ public class TestScoreServiceImpl extends ServiceImpl depts = deptList.stream().filter(s -> Long.valueOf(user.getDeptId()).equals(s.getId())).collect(Collectors.toList()); if (CollectionUtils.isNotEmpty(depts)) { testScoreEntity.setDeptName(depts.get(0).getDeptName()); } } - }else { + } else { testScoreEntity.setUserId(null); } testScoreEntities.add(testScoreEntity); diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestServiceImpl.java index 8e75d9c..56bf99a 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestServiceImpl.java @@ -2,11 +2,11 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.hutool.core.date.DatePattern; import cn.hutool.core.util.ObjectUtil; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.common.logs.utils.StringUtils; import com.hnac.hzims.safeproduct.constants.SafeProductConstant; import com.hnac.hzims.safeproduct.dto.TestDTO; import com.hnac.hzims.safeproduct.entity.TestEntity; @@ -18,7 +18,6 @@ import com.hnac.hzims.safeproduct.service.ITestScoreService; import com.hnac.hzims.safeproduct.service.ITestService; import com.hnac.hzims.safeproduct.utils.BaseUtil; import lombok.RequiredArgsConstructor; -import org.apache.commons.lang.StringUtils; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; import org.springblade.system.feign.ISysClient; @@ -27,6 +26,7 @@ import org.springblade.system.user.entity.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import javax.annotation.Resource; import java.util.ArrayList; @@ -44,7 +44,10 @@ import java.util.stream.Collectors; @Service @RequiredArgsConstructor public class TestServiceImpl extends ServiceImpl implements ITestService { - private final ISysClient sysClient; + + @Autowired + ISysClient sysClient; + @Autowired ITestScoreService testScoreService; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TrainRecordServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TrainRecordServiceImpl.java index 9a04c57..4debd00 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TrainRecordServiceImpl.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TrainRecordServiceImpl.java @@ -2,7 +2,6 @@ package com.hnac.hzims.safeproduct.service.impl; import cn.afterturn.easypoi.entity.ImageEntity; import cn.hutool.core.date.DatePattern; -import com.alibaba.excel.util.CollectionUtils; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -27,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/statistic/schedule/MainPageStatisticSchedule.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/statistic/schedule/MainPageStatisticSchedule.java index 3a280fc..4959935 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/statistic/schedule/MainPageStatisticSchedule.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/statistic/schedule/MainPageStatisticSchedule.java @@ -173,10 +173,10 @@ public class MainPageStatisticSchedule { * @return */ private Integer monthRiskCount(String month) { - return estimateService.count(Wrappers.lambdaQuery() - .like(HazardEstimate::getCreateTime,month) + return Long.valueOf(estimateService.count(Wrappers.lambdaQuery() + .like(HazardEstimate::getCreateTime, month) .isNotNull(HazardEstimate::getRDValue) - ); + )).intValue(); } /** diff --git a/hzims-service/safeproduct/src/main/resources/application-dev.yml b/hzims-service/safeproduct/src/main/resources/application-dev.yml deleted file mode 100644 index 9010cbd..0000000 --- a/hzims-service/safeproduct/src/main/resources/application-dev.yml +++ /dev/null @@ -1,28 +0,0 @@ -#服务器端口 -server: - port: 8200 - -#数据源配置 -#spring: -# datasource: -# url: ${blade.datasource.dev.url} -# username: ${blade.datasource.dev.username} -# password: ${blade.datasource.dev.password} - -spring: - #排除DruidDataSourceAutoConfigure - autoconfigure: - exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure - datasource: - dynamic: - #设置默认的数据源或者数据源组,默认值即为master - primary: master - datasource: - master: - url: jdbc:mysql://175.6.40.67:5816/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true - username: root - password: 123 - slave: - url: jdbc:mysql://175.6.40.67:5816/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true - username: root - password: 123 diff --git a/hzims-service/safeproduct/src/main/resources/application-prod.yml b/hzims-service/safeproduct/src/main/resources/application-prod.yml deleted file mode 100644 index da89262..0000000 --- a/hzims-service/safeproduct/src/main/resources/application-prod.yml +++ /dev/null @@ -1,28 +0,0 @@ -#服务器端口 -server: - port: 8200 - -#数据源配置 -#spring: -# datasource: -# url: ${blade.datasource.prod.url} -# username: ${blade.datasource.prod.username} -# password: ${blade.datasource.prod.password} - -spring: - #排除DruidDataSourceAutoConfigure - autoconfigure: - exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure - datasource: - dynamic: - #设置默认的数据源或者数据源组,默认值即为master - primary: master - datasource: - master: - url: ${blade.datasource.demo.master.url} - username: ${blade.datasource.demo.master.username} - password: ${blade.datasource.demo.master.password} - slave: - url: ${blade.datasource.demo.slave.url} - username: ${blade.datasource.demo.slave.username} - password: ${blade.datasource.demo.slave.password} diff --git a/hzims-service/safeproduct/src/main/resources/application-test.yml b/hzims-service/safeproduct/src/main/resources/application-test.yml deleted file mode 100644 index 4b4e157..0000000 --- a/hzims-service/safeproduct/src/main/resources/application-test.yml +++ /dev/null @@ -1,28 +0,0 @@ -#服务器端口 -server: - port: 8200 - -#数据源配置 -#spring: -# datasource: -# url: ${blade.datasource.test.url} -# username: ${blade.datasource.test.username} -# password: ${blade.datasource.test.password} - -spring: - #排除DruidDataSourceAutoConfigure - autoconfigure: - exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure - datasource: - dynamic: - #设置默认的数据源或者数据源组,默认值即为master - primary: master - datasource: - master: - url: ${blade.datasource.demo.master.url} - username: ${blade.datasource.demo.master.username} - password: ${blade.datasource.demo.master.password} - slave: - url: ${blade.datasource.demo.slave.url} - username: ${blade.datasource.demo.slave.username} - password: ${blade.datasource.demo.slave.password} diff --git a/hzims-service/safeproduct/src/main/resources/application.yml b/hzims-service/safeproduct/src/main/resources/application.yml deleted file mode 100644 index bedb9c4..0000000 --- a/hzims-service/safeproduct/src/main/resources/application.yml +++ /dev/null @@ -1,21 +0,0 @@ -#mybatis-plus配置 -mybatis-plus: - mapper-locations: classpath:com/hnac/hzims/**/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.hnac.hzims.**.entity - -#swagger扫描路径配置 -swagger: - base-packages: - - org.springbalde - - com.hnac - -#oss配置 -oss: - enabled: true - name: minio - tenant-mode: false - endpoint: http://127.0.0.1:9000 - access-key: D99KGE6ZTQXSATTJWU24 - secret-key: QyVqGnhIQQE734UYSUFlGOZViE6+ZlDEfUG3NjhJ - bucket-name: bladex diff --git a/hzims-service/safeproduct/src/main/resources/template/template.yml b/hzims-service/safeproduct/src/main/resources/template/template.yml new file mode 100644 index 0000000..a02c903 --- /dev/null +++ b/hzims-service/safeproduct/src/main/resources/template/template.yml @@ -0,0 +1,73 @@ +#服务器端口 +server: + port: 8200 + +#oss配置 +oss: + endpoint: "${hzinfo.oss.endpoint}" + access-key: "${hzinfo.oss.access-key}" + secret-key: "${hzinfo.oss.secret-key}" + +#数据源配置 +spring: + #排除DruidDataSourceAutoConfigure + autoconfigure: + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure + datasource: + dynamic: + #设置默认的数据源或者数据源组,默认值即为master + primary: master + datasource: + master: + url: "jdbc:mysql://${hzinfo.db.busines.ip}:${hzinfo.db.busines.port}/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true" + username: "${hzinfo.db.busines.username}" + password: "${hzinfo.db.busines.password}" + slave: + url: "jdbc:mysql://${hzinfo.db.busines.ip}:${hzinfo.db.busines.port}/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true" + username: "${hzinfo.db.busines.username}" + password: "${hzinfo.db.busines.password}" + +#mybatis-plus配置 +mybatis-plus: + mapper-locations: classpath:com/hnac/hzims/**/mapper/*Mapper.xml + #实体扫描,多个package用逗号或者分号分隔 + typeAliasesPackage: com.hnac.hzims.**.entity + +#swagger扫描路径配置 +swagger: + base-packages: com.hnac.hzims.safeproduct + +xxl: + job: + accessToken: '' + admin: + addresses: "http://${hzims.server.ip}:7009/xxl-job-admin" + executor: + appname: hzims-safeproduct + ip: "${hzims.server.ip}" + logpath: /data/applogs/xxl-job/jobhandler + logretentiondays: 7 + port: 28200 + +hzims: + tenantId: 200000 + #ops-push + jgPushCode: ops-push + safeProduct: + safeTool: + filePath: /data/hzims/safeProduct/pdf/file + modulePath: /data/hzims/safeProduct/pdf/template/SafeToolTemplate.html + sadeToolKey: hzims:safeProduct:safeToolType + sms-code: aliyun-safeTool-push + rehearsal: + savePath: /data/hzims/safeproduct/rehearsal + train: + savePath: /data/hzims/safeproduct/train + conference: + savePath: /data/hzims/safeproduct/conference + hygiene: + savePath: /data/hzims/safeproduct/hygiene + car: + savePath: /data/hzims/safeproduct/car + risk: + save-path: /data/hzims/file/safeproduct/pdf \ No newline at end of file