| | |
| | | * 应急物资类型 |
| | | */ |
| | | @ApiModelProperty(value = "应急物资类型") |
| | | private Integer type; |
| | | private String type; |
| | | /** |
| | | * 数量 |
| | | */ |
| | |
| | | private String name; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty(value = "应急物资类型",converter = ExcelDictConverter.class) |
| | | @ExcelDictItemLabel(type = "eme_sup_type") |
| | | @ExcelProperty(value = "应急物资类型") |
| | | // @ExcelProperty(value = "应急物资类型",converter = ExcelDictConverter.class) |
| | | // @ExcelDictItemLabel(type = "eme_sup_type") |
| | | private String type; |
| | | /** |
| | | * 数量 |
| | |
| | | private String address; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty(value = "行业类别") |
| | | // @ExcelProperty(value = "行业类别",converter = ExcelDictConverter.class) |
| | | // @ExcelDictItemLabel(type = "industry_category") |
| | | private String category; |
| | |
| | | yfi.name as firmName, |
| | | ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone,ys.address supAdd, |
| | | ys.lng,ys.lat, |
| | | bdb.dict_value as emeSupType, |
| | | yes.type as emeSupType, |
| | | concat(yes.num,ifnull(bdb1.dict_value,'')) as numUnit |
| | | from |
| | | yw_emergency_supplies yes |
| | | left join yw_supplies ys on ys.id = yes.supplies_id and ys.is_deleted = 0 |
| | | left join yw_firm_info yfi on yfi.id = yes.firm_id and yfi.is_deleted = 0 |
| | | left join blade_dict_biz bdb on bdb.dict_key = yes.type and bdb.code = 'eme_sup_type' |
| | | left join blade_dict_biz bdb1 on bdb1.dict_key = yes.unit and bdb1.code = 'unit' |
| | | where yes.is_deleted = 0 |
| | | <if test="emergencySupplies.name!=null and emergencySupplies.name!=''"> |
| | |
| | | yfi.name as firmName, |
| | | ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone,ys.address supAdd, |
| | | ifnull(ys.lng,yp.lng) as lng,ifnull(ys.lat,yp.lat) as lat, |
| | | bdb.dict_value as emeSupType, |
| | | yes.type as emeSupType, |
| | | concat(yes.num,ifnull(bdb1.dict_value,'')) as numUnit, |
| | | yp.url as panoramicUrl |
| | | from |
| | | yw_emergency_supplies yes |
| | | left join yw_supplies ys on ys.id = yes.supplies_id and ys.is_deleted = 0 |
| | | left join yw_firm_info yfi on yfi.id = yes.firm_id and yfi.is_deleted = 0 |
| | | left join blade_dict_biz bdb on bdb.dict_key = yes.type and bdb.code = 'eme_sup_type' |
| | | left join blade_dict_biz bdb1 on bdb1.dict_key = yes.unit and bdb1.code = 'unit' |
| | | left join yw_panoramic yp on yp.firm_id = yes.firm_id and yp.is_deleted = 0 |
| | | where yes.is_deleted = 0 |
| | |
| | | for (EmergencySuppliesExcel emergencySuppliesExcel : data) { |
| | | EmergencySuppliesEntity emergencySuppliesEntity = Objects.requireNonNull(BeanUtil.copy(emergencySuppliesExcel, EmergencySuppliesEntity.class)); |
| | | // 物资类型转换 |
| | | if (!Strings.isBlank(emergencySuppliesExcel.getType())){ |
| | | emergencySuppliesEntity.setType(Integer.parseInt(emergencySuppliesExcel.getType())); |
| | | } |
| | | // if (!Strings.isBlank(emergencySuppliesExcel.getType())){ |
| | | // emergencySuppliesEntity.setType(Integer.parseInt(emergencySuppliesExcel.getType())); |
| | | // } |
| | | // 物资单位转换 |
| | | if (!Strings.isBlank(emergencySuppliesExcel.getUnit())){ |
| | | emergencySuppliesEntity.setUnit(Integer.parseInt(emergencySuppliesExcel.getUnit())); |
| | |
| | | wrapper.eq("name",emergencySuppliesExcel.getSuppliesName()) |
| | | .eq("is_deleted",0); |
| | | if (!emergencySuppliesExcel.getSuppliesName().contains("园区") |
| | | && !emergencySuppliesExcel.getSuppliesName().contains("码头工业城") |
| | | && !emergencySuppliesExcel.getSuppliesName().contains("环境局") |
| | | ){ |
| | | wrapper.eq("firm_id",emergencySuppliesEntity.getFirmId()); |
| | |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | password: |
| | | database: 13 |
| | | database: 14 |
| | | ssl: false |
| | | ##redis 集群环境配置 |
| | | #cluster: |
| | |
| | | # commandTimeout: 5000 |
| | | datasource: |
| | | # MySql |
| | | url: jdbc:mysql://139.196.74.78:3306/zhyq_ay_dev?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | url: jdbc:mysql://127.0.0.1:3306/zhyq_ay_dev?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | username: root |
| | | password: jxpskj_2018 |
| | | password: root |
| | | # PostgreSQL |
| | | #url: jdbc:postgresql://127.0.0.1:5432/bladex_boot |
| | | #username: postgres |