diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fdd69d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +./**/target \ No newline at end of file diff --git a/hbt-msds/Dockerfile b/hbt-msds/Dockerfile new file mode 100644 index 0000000..40f91a1 --- /dev/null +++ b/hbt-msds/Dockerfile @@ -0,0 +1,4 @@ +FROM 119.45.158.12:5000/mini-java8:latest +COPY target/hbt-msds-1.0-SNAPSHOT.jar /app/app.jar +ENV NACOSIP="" +ENTRYPOINT ["sh","-c","java -Dnacos.ip=$NACOSIP -jar /app/app.jar"] \ No newline at end of file diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/MsdsApplication.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/MsdsApplication.java new file mode 100644 index 0000000..dcd4f68 --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/MsdsApplication.java @@ -0,0 +1,23 @@ +package com.hbt.security.knowledge.base.msds; + +import com.hbt.common.security.annotation.EnableCustomConfig; +import com.hbt.common.security.annotation.EnableRyFeignClients; +import com.hbt.common.swagger.annotation.EnableCustomSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.cloud.client.SpringCloudApplication; + +/** + * 入口类, 扫描并注入其他配置类和服务 + */ +@EnableCustomConfig +@SpringCloudApplication +@EnableCustomSwagger2 +@EnableRyFeignClients +public class MsdsApplication { + + public static void main(String[] args) + { + SpringApplication.run(MsdsApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ 化学品安全知识server启动成功 ლ(´ڡ`ლ)゙ "); + } +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/controller/MsdsController.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/controller/MsdsController.java new file mode 100644 index 0000000..28f5f73 --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/controller/MsdsController.java @@ -0,0 +1,96 @@ +package com.hbt.security.knowledge.base.msds.controller; + +import com.github.pagehelper.PageInfo; +import com.hbt.common.core.domain.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import com.hbt.common.log.annotation.Log; +import com.hbt.common.log.enums.BusinessType; +import com.hbt.security.knowledge.base.msds.model.Msds; +import com.hbt.security.knowledge.base.msds.service.IMsdsService; +import com.hbt.common.core.web.controller.BaseController; + +import javax.validation.constraints.NotNull; + + +/** + * 化学品安全信息Controller + * + * @author hbt + */ +@RestController +@RequestMapping("/msds") +public class MsdsController extends BaseController { + @Autowired + private IMsdsService msdsService; + + /** + * 查询化学品安全信息列表 + * + * @param type 查询类型 0-按中文名检索 1-按其他中文名检索 2-按英文名检索 3-按其他英文名检索 4-CAS 5-按危险货物编号检索 + * @param selectValue 查询内容 + * @param page 当前页 + * @param pageSize 页大小 + * @return 返回值 + */ + @GetMapping("/listMsds") + public R> list(@RequestParam(value = "type") int type, @RequestParam(value = "selectValue") String selectValue, @RequestParam(value = "CurrentPage") int page, @RequestParam(value = "PageSize") int pageSize) + { + PageInfo pageInfo = msdsService.selectMsdsList(type, selectValue, page, pageSize); + return R.ok(pageInfo); + } + + /** + * 获取化学品安全信息详细信息 + * + * @param id 化学品id + */ + @GetMapping(value = "/selectMsdsById") + public R getInfo(@RequestParam("id") int id) + { + Msds msds = msdsService.selectMsdsById(id); + return R.ok(msds); + } + + /** + * 新增化学品安全信息 + */ + @Log(title = "化学品安全信息", businessType = BusinessType.INSERT) + @GetMapping(value = "/addMsds") + public R add(@RequestBody @NotNull Msds msds) + { + int row = msdsService.insertMsds(msds); + if (row > 0) { + return R.ok("success"); + } + return R.fail("fail"); + } + + /** + * 修改化学品安全信息 + */ + @Log(title = "化学品安全信息", businessType = BusinessType.UPDATE) + @GetMapping(value = "/updateMsds") + public R edit(@RequestBody @NotNull Msds msds) + { + int row = msdsService.updateMsds(msds); + if (row > 0) { + return R.ok("success"); + } + return R.fail("fail"); + } + + /** + * 删除化学品安全信息 + */ + @Log(title = "化学品安全信息", businessType = BusinessType.DELETE) + @GetMapping("/deleteMsds") + public R remove(@RequestParam(value = "id") String id) + { + int row = msdsService.deleteMsdsById(id); + if (row > 0) { + return R.ok("success"); + } + return R.fail("fail"); + } +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/dao/MsdsDao.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/dao/MsdsDao.java new file mode 100644 index 0000000..f8ac5b5 --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/dao/MsdsDao.java @@ -0,0 +1,48 @@ +package com.hbt.security.knowledge.base.msds.dao; + +import com.hbt.security.knowledge.base.msds.model.Msds; + +import java.util.List; + +public interface MsdsDao { + /** + * 查询化学品安全信息 + * + * @param id 化学品安全信息主键 + * @return 化学品安全信息 + */ + Msds selectMsdsById(int id); + + /** + * 查询化学品安全信息列表 + * + * @param type 检索类型 + * @param selectValue 检索内容 + * @return 返回值 + */ + List selectMsdsList(int type, String selectValue); + + /** + * 新增化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + int insertMsds(Msds msds); + + /** + * 修改化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + int updateMsds(Msds msds); + + /** + * 删除化学品安全信息信息 + * + * @param id 化学品安全信息主键 + * @return 结果 + */ + int deleteMsdsById(int id); +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/dao/impl/MsdsDaoImpl.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/dao/impl/MsdsDaoImpl.java new file mode 100644 index 0000000..d205dcb --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/dao/impl/MsdsDaoImpl.java @@ -0,0 +1,109 @@ +package com.hbt.security.knowledge.base.msds.dao.impl; + +import com.hbt.common.core.utils.StringUtils; +import com.hbt.security.knowledge.base.msds.dao.MsdsDao; +import com.hbt.security.knowledge.base.msds.mapper.MsdsMapper; +import com.hbt.security.knowledge.base.msds.model.Msds; +import com.hbt.security.knowledge.base.msds.model.MsdsMaterial; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Repository +public class MsdsDaoImpl implements MsdsDao { + + @Autowired + private MsdsMapper msdsMapper; + + /** + * 查询化学品安全信息 + * + * @param id 化学品安全信息主键 + * @return 化学品安全信息 + */ + @Override + public Msds selectMsdsById(int id) + { + return msdsMapper.selectMsdsById(id); + } + + /** + * 查询化学品安全信息列表 + * + * @param type 检索类型 + * @param selectValue 检索内容 + * @return 化学品安全信息 + */ + @Override + public List selectMsdsList(int type, String selectValue) + { + return msdsMapper.selectMsdsList(type, selectValue); + } + + /** + * 新增化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + @Transactional + @Override + public int insertMsds(Msds msds) + { + int id = msdsMapper.insertMsds(msds); + insertMsdsMaterial(msds, id); + return id; + } + + /** + * 修改化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + @Transactional + @Override + public int updateMsds(Msds msds) + { + if (msds.getId() == 0) { + return 0; + } + MsdsMaterial material = msds.getMaterial(); + if (material != null) { + material.setMsds(msds.getId()); + msdsMapper.updateMsdsMaterialByMsds(material); + } + return msdsMapper.updateMsds(msds); + } + + /** + * 删除化学品安全信息信息 + * + * @param id 化学品安全信息主键 + * @return 结果 + */ + @Transactional + @Override + public int deleteMsdsById(int id) + { + msdsMapper.deleteMsdsMaterialByMsds(id); + return msdsMapper.deleteMsdsById(id); + } + + /** + * 新增${subTable.functionName}信息 + * + * @param msds 化学品安全信息对象 + */ + public void insertMsdsMaterial(Msds msds, int id) + { + MsdsMaterial material = msds.getMaterial(); + if (StringUtils.isNotNull(material)) + { + material.setMsds(id); + msdsMapper.insertMsdsMaterial(material); + } + } +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/mapper/MsdsMapper.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/mapper/MsdsMapper.java new file mode 100644 index 0000000..7e251f6 --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/mapper/MsdsMapper.java @@ -0,0 +1,73 @@ +package com.hbt.security.knowledge.base.msds.mapper; + +import java.util.List; +import com.hbt.security.knowledge.base.msds.model.Msds; +import com.hbt.security.knowledge.base.msds.model.MsdsMaterial; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +/** + * 化学品安全信息Mapper接口 + * + * @author hbt + */ +@Mapper +public interface MsdsMapper +{ + /** + * 查询化学品安全信息 + * + * @param id 化学品安全信息主键 + * @return 化学品安全信息 + */ + Msds selectMsdsById(@Param("id") int id); + + /** + * 查询化学品安全信息列表 + * + * @param type 检索类型 + * @param selectValue 检索内容 + * @return 化学品安全信息集合 + */ + List selectMsdsList(@Param("type") int type, @Param("selectValue") String selectValue); + + /** + * 新增化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + int insertMsds(@Param("msds") Msds msds); + + void insertMsdsMaterial(@Param("material") MsdsMaterial material); + + /** + * 修改化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + int updateMsds(@Param("msds") Msds msds); + + /** + * 删除化学品安全信息 + * + * @param id 化学品安全信息主键 + * @return 结果 + */ + int deleteMsdsById(@Param("id") int id); + + /** + * 通过化学品安全信息主键删除${subTable.functionName}信息 + * + * @param id 化学品安全信息ID + */ + void deleteMsdsMaterialByMsds(@Param("id") int id); + + /** + * 修改化学品资料信息 + * + * @param material 化学品资料信息 + */ + void updateMsdsMaterialByMsds(@Param("material") MsdsMaterial material); +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/model/Msds.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/model/Msds.java new file mode 100644 index 0000000..a15cf3b --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/model/Msds.java @@ -0,0 +1,448 @@ +package com.hbt.security.knowledge.base.msds.model; + +import com.hbt.common.core.annotation.Excel; +import com.hbt.common.core.web.domain.BaseEntity; +import lombok.Data; + +/** + * 化学品安全信息对象 msds + * + * @author hbt + */ +@Data +public class Msds extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** 主键 */ + private int id; + + /** 化学品中文名 */ + @Excel(name = "化学品中文名") + private String chemicalCn; + + /** 其他中文名 */ + @Excel(name = "其他中文名") + private String otherChemicalCn; + + /** 化学品英文名 */ + @Excel(name = "化学品英文名") + private String chemicalEn; + + /** 其他英文名 */ + @Excel(name = "其他英文名") + private String otherChemicalEn; + + /** CAS */ + @Excel(name = "CAS") + private String cas; + + /** 纯品/混合物 */ + @Excel(name = "纯品/混合物") + private String type; + + /** 有害物成份1 */ + @Excel(name = "有害物成份1") + private String detonatorProfession1; + + /** 有害物成份1-浓度 */ + @Excel(name = "有害物成份1-浓度") + private String detonatorProfession1Concentration; + + /** 有害物成份1-cas_no */ + @Excel(name = "有害物成份1-cas_no") + private String detonatorProfession1CasNo; + + /** 有害物成份2 */ + @Excel(name = "有害物成份2") + private String detonatorProfession2; + + /** 有害物成份2-浓度 */ + @Excel(name = "有害物成份2-浓度") + private String detonatorProfession2Concentration; + + /** 有害物成份2-cas_no */ + @Excel(name = "有害物成份2-cas_no") + private String detonatorProfession2CasNo; + + /** 有害物成份3 */ + @Excel(name = "有害物成份3") + private String detonatorProfession3; + + /** 有害物成份3-浓度 */ + @Excel(name = "有害物成份3-浓度") + private String detonatorProfession3Concentration; + + /** 有害物成份3-cas_no */ + @Excel(name = "有害物成份3-cas_no") + private String detonatorProfession3CasNo; + + /** 有害物成份4 */ + @Excel(name = "有害物成份4") + private String detonatorProfession4; + + /** 有害物成份4-浓度 */ + @Excel(name = "有害物成份4-浓度") + private String detonatorProfession4Concentration; + + /** 有害物成份4-cas_no */ + @Excel(name = "有害物成份4-cas_no") + private String detonatorProfession4CasNo; + + /** 有害物成份5 */ + @Excel(name = "有害物成份5") + private String detonatorProfession5; + + /** 有害物成份5-浓度 */ + @Excel(name = "有害物成份5-浓度") + private String detonatorProfession5Concentration; + + /** 有害物成份5-cas_no */ + @Excel(name = "有害物成份5-cas_no") + private String detonatorProfession5CasNo; + + /** 危险性类别 */ + @Excel(name = "危险性类别") + private String hazardCategory; + + /** 侵入途径 */ + @Excel(name = "侵入途径") + private String invasionRoute; + + /** 健康危害 */ + @Excel(name = "健康危害") + private String healthHazards; + + /** 环境危害 */ + @Excel(name = "环境危害") + private String environmentalHazards; + + /** 燃爆危险 */ + @Excel(name = "燃爆危险") + private String explosionHazard; + + /** 皮肤接触 */ + @Excel(name = "皮肤接触") + private String skinContact; + + /** 眼睛接触 */ + @Excel(name = "眼睛接触") + private String eyeContact; + + /** 吸  入 */ + @Excel(name = "吸  入") + private String inhalation; + + /** 食  入 */ + @Excel(name = "食  入") + private String ingestion; + + /** 危险特性 */ + @Excel(name = "危险特性") + private String hazardCharacteristics; + + /** 有害燃烧产物 */ + @Excel(name = "有害燃烧产物") + private String hazardousCombustionProducts; + + /** 灭火方法 */ + @Excel(name = "灭火方法") + private String fireExtinguishingMethod; + + /** 灭火注意事项及措施 */ + @Excel(name = "灭火注意事项及措施") + private String fireFighting; + + /** 应急行动 */ + @Excel(name = "应急行动") + private String emergencyActions; + + /** 操作注意事项 */ + @Excel(name = "操作注意事项") + private String operationalConsiderations; + + /** 储存注意事项 */ + @Excel(name = "储存注意事项") + private String storagePrecautions; + + /** MAC(mg/m^3) */ + @Excel(name = "MAC(mg/m^3)") + private String mac; + + /** PC-TWA(mg/m^3) */ + @Excel(name = "PC-TWA", readConverterExp = "m=g/m^3") + private String pcTwa; + + /** PC-STEL(mg/m^3) */ + @Excel(name = "PC-STEL", readConverterExp = "m=g/m^3") + private String pcStel; + + /** TLV-C(mg/m^3) */ + @Excel(name = "TLV-C(mg/m^3)") + private String tlvC; + + /** TLV-TWA(mg/m^3) */ + @Excel(name = "TLV-TWA(mg/m^3)") + private String tlvTwa; + + /** TLV-STEL(mg/m^3) */ + @Excel(name = "TLV-STEL(mg/m^3)") + private String tlvStel; + + /** 监测方法 */ + @Excel(name = "监测方法") + private String monitoringMethods; + + /** 工程控制 */ + @Excel(name = "工程控制") + private String engineeringControl; + + /** 呼吸系统防护 */ + @Excel(name = "呼吸系统防护") + private String respiratoryProtection; + + /** 眼睛防护 */ + @Excel(name = "眼睛防护") + private String eyeProtection; + + /** 身体防护 */ + @Excel(name = "身体防护") + private String physicalProtection; + + /** 手 防 护 */ + @Excel(name = "手 防 护") + private String handProtection; + + /** 其他防护 */ + @Excel(name = "其他防护") + private String otherProtection; + + /** 外观与形状 */ + @Excel(name = "外观与形状") + private String appearanceAndShape; + + /** pH值 */ + @Excel(name = "pH值") + private String phValue; + + /** 熔点(℃) */ + @Excel(name = "熔点(℃)") + private String meltingPoint; + + /** 沸点(℃) */ + @Excel(name = "沸点(℃)") + private String boilingPoint; + + /** 相对密度(水=1) */ + @Excel(name = "相对密度(水=1)") + private String relativeDensity; + + /** 相对蒸气密度(空气=1) */ + @Excel(name = "相对蒸气密度(空气=1)") + private String relativeVaporDensity; + + /** 饱和蒸气压(kPa) */ + @Excel(name = "饱和蒸气压(kPa)") + private String saturatedVaporPressure; + + /** 燃烧热(kJ/mol) */ + @Excel(name = "燃烧热(kJ/mol)") + private String heatOfCombustion; + + /** 临界温度(℃) */ + @Excel(name = "临界温度(℃)") + private String critical; + + /** 临界压力(Mpa) */ + @Excel(name = "临界压力(Mpa)") + private String criticalPressure; + + /** 辛醇/水分配系数 */ + @Excel(name = "辛醇/水分配系数") + private String octanolWaterPartitionCoefficient; + + /** 闪点(℃) */ + @Excel(name = "闪点(℃)") + private String flashPoint; + + /** 引燃温度(℃) */ + @Excel(name = "引燃温度(℃)") + private String ignitionTemperature; + + /** 爆炸下限[%(V/V) */ + @Excel(name = "爆炸下限[%(V/V)") + private String lowerExplosionLimit; + + /** 爆炸上限[%(V/V) */ + @Excel(name = "爆炸上限[%(V/V)") + private String upperExplosionLimit; + + /** 溶解性 */ + @Excel(name = "溶解性") + private String solubility; + + /** 主要用途 */ + @Excel(name = "主要用途") + private String mainUses; + + /** 稳定性 */ + @Excel(name = "稳定性") + private String stability; + + /** 禁配物 */ + @Excel(name = "禁配物") + private String forbiddenMixtures; + + /** 避免接触的条件 */ + @Excel(name = "避免接触的条件") + private String avoidContactConditions; + + /** 聚合危害 */ + @Excel(name = "聚合危害") + private String aggregationHazards; + + /** 分解产物 */ + @Excel(name = "分解产物") + private String decompositionProducts; + + /** 废弃物性质 */ + @Excel(name = "废弃物性质") + private String natureOfWaste; + + /** 废弃处置方法 */ + @Excel(name = "废弃处置方法") + private String disposalMethods; + + /** 废弃注意事项 */ + @Excel(name = "废弃注意事项") + private String deprecationConsiderations; + + /** 危险货物编号 */ + @Excel(name = "危险货物编号") + private String dangerousGoodsNumber; + + /** UN编号 */ + @Excel(name = "UN编号") + private String unNumber; + + /** 包装类别 */ + @Excel(name = "包装类别") + private String packagingCategory; + + /** 包装标志 */ + @Excel(name = "包装标志") + private String packagingLogo; + + /** 包装方法 */ + @Excel(name = "包装方法") + private String packagingMethod; + + /** 运输注意事项 */ + @Excel(name = "运输注意事项") + private String shippingPrecautions; + + /** 法规信息 */ + @Excel(name = "法规信息") + private String regulatoryInformation; + + /** 临界值 */ + @Excel(name = "临界值") + private String criticalValue; + + /** $table.subTable.functionName信息 */ + private MsdsMaterial material; + + + + + + @Override + public String toString() { + return "Msds{" + + "id=" + id + + ", chemicalCn='" + chemicalCn + '\'' + + ", otherChemicalCn='" + otherChemicalCn + '\'' + + ", chemicalEn='" + chemicalEn + '\'' + + ", otherChemicalEn='" + otherChemicalEn + '\'' + + ", cas='" + cas + '\'' + + ", type='" + type + '\'' + + ", detonatorProfession1='" + detonatorProfession1 + '\'' + + ", detonatorProfession1Concentration='" + detonatorProfession1Concentration + '\'' + + ", detonatorProfession1CasNo='" + detonatorProfession1CasNo + '\'' + + ", detonatorProfession2='" + detonatorProfession2 + '\'' + + ", detonatorProfession2Concentration='" + detonatorProfession2Concentration + '\'' + + ", detonatorProfession2CasNo='" + detonatorProfession2CasNo + '\'' + + ", detonatorProfession3='" + detonatorProfession3 + '\'' + + ", detonatorProfession3Concentration='" + detonatorProfession3Concentration + '\'' + + ", detonatorProfession3CasNo='" + detonatorProfession3CasNo + '\'' + + ", detonatorProfession4='" + detonatorProfession4 + '\'' + + ", detonatorProfession4Concentration='" + detonatorProfession4Concentration + '\'' + + ", detonatorProfession4CasNo='" + detonatorProfession4CasNo + '\'' + + ", detonatorProfession5='" + detonatorProfession5 + '\'' + + ", detonatorProfession5Concentration='" + detonatorProfession5Concentration + '\'' + + ", detonatorProfession5CasNo='" + detonatorProfession5CasNo + '\'' + + ", hazardCategory='" + hazardCategory + '\'' + + ", invasionRoute='" + invasionRoute + '\'' + + ", healthHazards='" + healthHazards + '\'' + + ", environmentalHazards='" + environmentalHazards + '\'' + + ", explosionHazard='" + explosionHazard + '\'' + + ", skinContact='" + skinContact + '\'' + + ", eyeContact='" + eyeContact + '\'' + + ", inhalation='" + inhalation + '\'' + + ", ingestion='" + ingestion + '\'' + + ", hazardCharacteristics='" + hazardCharacteristics + '\'' + + ", hazardousCombustionProducts='" + hazardousCombustionProducts + '\'' + + ", fireExtinguishingMethod='" + fireExtinguishingMethod + '\'' + + ", fireFighting='" + fireFighting + '\'' + + ", emergencyActions='" + emergencyActions + '\'' + + ", operationalConsiderations='" + operationalConsiderations + '\'' + + ", storagePrecautions='" + storagePrecautions + '\'' + + ", mac='" + mac + '\'' + + ", pcTwa='" + pcTwa + '\'' + + ", pcStel='" + pcStel + '\'' + + ", tlvC='" + tlvC + '\'' + + ", tlvTwa='" + tlvTwa + '\'' + + ", tlvStel='" + tlvStel + '\'' + + ", monitoringMethods='" + monitoringMethods + '\'' + + ", engineeringControl='" + engineeringControl + '\'' + + ", respiratoryProtection='" + respiratoryProtection + '\'' + + ", eyeProtection='" + eyeProtection + '\'' + + ", physicalProtection='" + physicalProtection + '\'' + + ", handProtection='" + handProtection + '\'' + + ", otherProtection='" + otherProtection + '\'' + + ", appearanceAndShape='" + appearanceAndShape + '\'' + + ", phValue='" + phValue + '\'' + + ", meltingPoint='" + meltingPoint + '\'' + + ", boilingPoint='" + boilingPoint + '\'' + + ", relativeDensity='" + relativeDensity + '\'' + + ", relativeVaporDensity='" + relativeVaporDensity + '\'' + + ", saturatedVaporPressure='" + saturatedVaporPressure + '\'' + + ", heatOfCombustion='" + heatOfCombustion + '\'' + + ", critical='" + critical + '\'' + + ", criticalPressure='" + criticalPressure + '\'' + + ", octanolWaterPartitionCoefficient='" + octanolWaterPartitionCoefficient + '\'' + + ", flashPoint='" + flashPoint + '\'' + + ", ignitionTemperature='" + ignitionTemperature + '\'' + + ", lowerExplosionLimit='" + lowerExplosionLimit + '\'' + + ", upperExplosionLimit='" + upperExplosionLimit + '\'' + + ", solubility='" + solubility + '\'' + + ", mainUses='" + mainUses + '\'' + + ", stability='" + stability + '\'' + + ", forbiddenMixtures='" + forbiddenMixtures + '\'' + + ", avoidContactConditions='" + avoidContactConditions + '\'' + + ", aggregationHazards='" + aggregationHazards + '\'' + + ", decompositionProducts='" + decompositionProducts + '\'' + + ", natureOfWaste='" + natureOfWaste + '\'' + + ", disposalMethods='" + disposalMethods + '\'' + + ", deprecationConsiderations='" + deprecationConsiderations + '\'' + + ", dangerousGoodsNumber='" + dangerousGoodsNumber + '\'' + + ", unNumber='" + unNumber + '\'' + + ", packagingCategory='" + packagingCategory + '\'' + + ", packagingLogo='" + packagingLogo + '\'' + + ", packagingMethod='" + packagingMethod + '\'' + + ", shippingPrecautions='" + shippingPrecautions + '\'' + + ", regulatoryInformation='" + regulatoryInformation + '\'' + + ", criticalValue='" + criticalValue + '\'' + + ", material=" + material + + '}'; + } +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/model/MsdsMaterial.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/model/MsdsMaterial.java new file mode 100644 index 0000000..b643d01 --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/model/MsdsMaterial.java @@ -0,0 +1,481 @@ +package com.hbt.security.knowledge.base.msds.model; + +import com.hbt.common.core.annotation.Excel; +import com.hbt.common.core.web.domain.BaseEntity; +import lombok.Data; + +/** + * ${subTable.functionName}对象 msds_material + * + * @author hbt + */ +@Data +public class MsdsMaterial extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** MSDS表主键 */ + @Excel(name = "MSDS表主键") + private int msds; + + /** 急性毒性 */ + @Excel(name = "急性毒性") + private String acuteToxicity; + + /** 大鼠经口LD^^50(mg/kg) */ + @Excel(name = "大鼠经口LD^^50(mg/kg)") + private String ratsOralLd; + + /** 大鼠经皮LD^^50(mg/kg) */ + @Excel(name = "大鼠经皮LD^^50(mg/kg)") + private String ratsPercutaneousLd; + + /** 大鼠皮下LD^^50(mg/kg) */ + @Excel(name = "大鼠皮下LD^^50(mg/kg)") + private String ratsSubcutaneousLd; + + /** 大鼠静脉LD^^50(mg/kg) */ + @Excel(name = "大鼠静脉LD^^50(mg/kg)") + private String ratsVenousLd; + + /** 大鼠腹膜腔LD^^50(mg/kg) */ + @Excel(name = "大鼠腹膜腔LD^^50(mg/kg)") + private String ratsIntraperitonealLd; + + /** 小鼠经口LD^^50(mg/kg) */ + @Excel(name = "小鼠经口LD^^50(mg/kg)") + private String miceOralLd; + + /** 小鼠经皮LD^^50(mg/kg) */ + @Excel(name = "小鼠经皮LD^^50(mg/kg)") + private String micePercutaneousLd; + + /** 小鼠静脉LD^^50(mg/kg) */ + @Excel(name = "小鼠静脉LD^^50(mg/kg)") + private String miceVenousLd; + + /** 小鼠腹膜腔LD^^50(mg/kg) */ + @Excel(name = "小鼠腹膜腔LD^^50(mg/kg)") + private String miceIntraperitonealLd; + + /** 豚鼠经口LD^^50(mg/kg) */ + @Excel(name = "豚鼠经口LD^^50(mg/kg)") + private String guineaPigsOralLd; + + /** 豚鼠经皮LD^^50(mg/kg) */ + @Excel(name = "豚鼠经皮LD^^50(mg/kg)") + private String guineaPigsPercutaneousLd; + + /** 豚鼠皮下LD^^50(mg/kg) */ + @Excel(name = "豚鼠皮下LD^^50(mg/kg)") + private String guineaPigsSubcutaneousLd; + + /** 豚鼠静脉LD^^50(mg/kg) */ + @Excel(name = "豚鼠静脉LD^^50(mg/kg)") + private String guineaPigsVenousLd; + + /** 豚鼠腹膜腔LD^^50(mg/kg) */ + @Excel(name = "豚鼠腹膜腔LD^^50(mg/kg)") + private String guineaPigsIntraperitonealLd; + + /** 兔经口LD^^50(mg/kg) */ + @Excel(name = "兔经口LD^^50(mg/kg)") + private String rabbitOralLd; + + /** 兔经皮LD^^50(mg/kg) */ + @Excel(name = "兔经皮LD^^50(mg/kg)") + private String rabbitPercutaneousLd; + + /** 兔皮下LD^^50(mg/kg) */ + @Excel(name = "兔皮下LD^^50(mg/kg)") + private String rabbitSubcutaneousLd; + + /** 兔静脉LD^^50(mg/kg) */ + @Excel(name = "兔静脉LD^^50(mg/kg)") + private String rabbitVenousLd; + + /** 兔腹膜腔LD^^50(mg/kg) */ + @Excel(name = "兔腹膜腔LD^^50(mg/kg)") + private String rabbitIntraperitonealLd; + + /** 其它动物LD^^50(mg/kg) */ + @Excel(name = "其它动物LD^^50(mg/kg)") + private String otherAnimalLd; + + /** LD^^100 */ + @Excel(name = "LD^^100") + private String ld; + + /** LDL0 */ + @Excel(name = "LDL0") + private String ldl0; + + /** TDL0 */ + @Excel(name = "TDL0") + private String tdl0; + + /** 大鼠吸入LC^^50(mg/m^3) */ + @Excel(name = "大鼠吸入LC^^50(mg/m^3)") + private String ratsInhaleLc; + + /** 大鼠吸入LCL0(mg/m^3) */ + @Excel(name = "大鼠吸入LCL0(mg/m^3)") + private String ratsInhaleLcl0; + + /** 小鼠吸入LC^^50(mg/m^3) */ + @Excel(name = "小鼠吸入LC^^50(mg/m^3)") + private String miceInhaleLc; + + /** 小鼠吸入LCL0(mg/m^3) */ + @Excel(name = "小鼠吸入LCL0(mg/m^3)") + private String miceInhaleLcl0; + + /** 小鼠吸入TDL0(mg/m^3) */ + @Excel(name = "小鼠吸入TDL0(mg/m^3)") + private String miceInhaleTdl0; + + /** 人吸入LCL0(mg/m^3) */ + @Excel(name = "人吸入LCL0(mg/m^3)") + private String peopleInhaleLcl0; + + /** 人吸入TDL0(mg/m^3) */ + @Excel(name = "人吸入TDL0(mg/m^3)") + private String peopleInhaleTdl0; + + /** IDLH */ + @Excel(name = "IDLH") + private String idlh; + + /** 其它动物吸入LC^^50 */ + @Excel(name = "其它动物吸入LC^^50") + private String otherAnimalLc50; + + /** 其它动物吸入LC^^100 */ + @Excel(name = "其它动物吸入LC^^100") + private String otherAnimalLc100; + + /** 其它动物吸入LCL0 */ + @Excel(name = "其它动物吸入LCL0") + private String otherAnimalLcl0; + + /** 其它动物吸入TCL0 */ + @Excel(name = "其它动物吸入TCL0") + private String otherAnimalTcl0; + + /** 家兔经皮 */ + @Excel(name = "家兔经皮") + private String rabbitPercutaneous; + + /** 家兔经眼 */ + @Excel(name = "家兔经眼") + private String rabbitMeridians; + + /** 大鼠经皮 */ + @Excel(name = "大鼠经皮") + private String ratsPercutaneous; + + /** 大鼠经眼 */ + @Excel(name = "大鼠经眼") + private String ratsMeridians; + + /** 豚鼠经皮 */ + @Excel(name = "豚鼠经皮") + private String guineaPigsPercutaneous; + + /** 豚鼠经眼 */ + @Excel(name = "豚鼠经眼") + private String guineaPigsMeridians; + + /** 男人经皮 */ + @Excel(name = "男人经皮") + private String menPercutaneous; + + /** 男人经眼 */ + @Excel(name = "男人经眼") + private String menMeridians; + + /** 人经皮 */ + @Excel(name = "人经皮") + private String humanPercutaneous; + + /** 人经眼 */ + @Excel(name = "人经眼") + private String humanMeridians; + + /** 亚急性与慢性毒性 */ + @Excel(name = "亚急性与慢性毒性") + private String subacuteVersusChronicToxicity; + + /** 致敏性 */ + @Excel(name = "致敏性") + private String sensitization; + + /** 致突变性 */ + @Excel(name = "致突变性") + private String mutagenicity; + + /** 致畸性 */ + @Excel(name = "致畸性") + private String teratogenicity; + + /** 致癌性 */ + @Excel(name = "致癌性") + private String carcinogenicity; + + /** 其 他 */ + @Excel(name = "其 他") + private String other; + + /** 绝对致死量LD^^100 */ + @Excel(name = "绝对致死量LD^^100") + private String absoluteLethalAmountLd; + + /** 半数致死量LD^^50 */ + @Excel(name = "半数致死量LD^^50") + private String halfLethalDoseLd; + + /** 半数致死浓度LC^^50 */ + @Excel(name = "半数致死浓度LC^^50") + private String halfLethalConcentrationLc; + + /** 半数效应浓度EC^^50 */ + @Excel(name = "半数效应浓度EC^^50") + private String halfOfTheEffectConcentrationEc; + + /** 半数抑制浓度IC^^50 */ + @Excel(name = "半数抑制浓度IC^^50") + private String halfOfTheInhibitoryConcentrationIc; + + /** 无作用剂量NOEL */ + @Excel(name = "无作用剂量NOEL") + private String noActionDoseNoel; + + /** 半数耐受限量TLm */ + @Excel(name = "半数耐受限量TLm") + private String halfOfTheResistanceToLimitedAmountTlm; + + /** BOD5 */ + @Excel(name = "BOD5") + private String bod5; + + /** 土壤半衰期-高(小时) */ + @Excel(name = "土壤半衰期-高", readConverterExp = "小=时") + private String soilHalfLifeHigh; + + /** 土壤半衰期-低(小时) */ + @Excel(name = "土壤半衰期-低", readConverterExp = "小=时") + private String soilHalfLifeLow; + + /** 空气半衰期-高(小时) */ + @Excel(name = "空气半衰期-高", readConverterExp = "小=时") + private String airHalfLifeHigh; + + /** 空气半衰期-低(小时) */ + @Excel(name = "空气半衰期-低", readConverterExp = "小=时") + private String airHalfLifeLow; + + /** 地表水半衰期-高(小时) */ + @Excel(name = "地表水半衰期-高", readConverterExp = "小=时") + private String surfaceWaterHalfLifeHigh; + + /** 地表水半衰期-低(小时) */ + @Excel(name = "地表水半衰期-低", readConverterExp = "小=时") + private String surfaceWaterHalfLifeLow; + + /** 地下水半衰期-高(小时) */ + @Excel(name = "地下水半衰期-高", readConverterExp = "小=时") + private String groundwaterHalfLifeHigh; + + /** 地下水半衰期-低(小时) */ + @Excel(name = "地下水半衰期-低", readConverterExp = "小=时") + private String groundwaterHalfLifeLow; + + /** 水相生物降解-好氧-高(小时) */ + @Excel(name = "水相生物降解-好氧-高", readConverterExp = "小=时") + private String aqueousBiodegradationAerobicHigh; + + /** 水相生物降解-好氧-低(小时) */ + @Excel(name = "水相生物降解-好氧-低", readConverterExp = "小=时") + private String aqueousBiodegradationAerobicLow; + + /** 水相生物降解-厌氧-高(小时) */ + @Excel(name = "水相生物降解-厌氧-高", readConverterExp = "小=时") + private String aqueousBiodegradationAnaerobicsHigh; + + /** 水相生物降解-厌氧-低(小时) */ + @Excel(name = "水相生物降解-厌氧-低", readConverterExp = "小=时") + private String aqueousBiodegradationAnaerobicsLow; + + /** 水相生物降解-二次沉降处理-高(小时) */ + @Excel(name = "水相生物降解-二次沉降处理-高", readConverterExp = "小=时") + private String aqueousBiodegradationSecondarySedimentationTreatmentHigh; + + /** 水相生物降解-二次沉降处理-低(小时) */ + @Excel(name = "水相生物降解-二次沉降处理-低", readConverterExp = "小=时") + private String aqueousBiodegradationSecondarySedimentationTreatmentLow; + + /** 水相光解半衰期-高(小时) */ + @Excel(name = "水相光解半衰期-高", readConverterExp = "小=时") + private String aqueousPhotolysisHalfLifeHigh; + + /** 水相光解半衰期-低(小时) */ + @Excel(name = "水相光解半衰期-低", readConverterExp = "小=时") + private String aqueousPhotolysisHalfLifeLow; + + /** 光解最大光吸收-高(纳米) */ + @Excel(name = "光解最大光吸收-高", readConverterExp = "纳=米") + private String photolysisMaximalLightAbsorptionHigh; + + /** 光解最大光吸收-低(纳米) */ + @Excel(name = "光解最大光吸收-低", readConverterExp = "纳=米") + private String photolysisMaximalLightAbsorptionLow; + + /** 水中光氧化半衰期-高(小时) */ + @Excel(name = "水中光氧化半衰期-高", readConverterExp = "小=时") + private String photooxidationHalfLifeInWaterHigh; + + /** 水中光氧化半衰期-低(小时) */ + @Excel(name = "水中光氧化半衰期-低", readConverterExp = "小=时") + private String photooxidationHalfLifeInWaterLow; + + /** 空气中光氧化半衰期-高(小时) */ + @Excel(name = "空气中光氧化半衰期-高", readConverterExp = "小=时") + private String photooxidativeHalfLifeInAirHigh; + + /** 空气中光氧化半衰期-低(小时) */ + @Excel(name = "空气中光氧化半衰期-低", readConverterExp = "小=时") + private String photooxidativeHalfLifeInAirLow; + + /** 还原半衰期-高(小时) */ + @Excel(name = "还原半衰期-高", readConverterExp = "小=时") + private String reductionHalfLifeHigh; + + /** 还原半衰期-低(小时) */ + @Excel(name = "还原半衰期-低", readConverterExp = "小=时") + private String reductionHalfLifeLow; + + /** 一级水解半衰期(小时) */ + @Excel(name = "一级水解半衰期", readConverterExp = "小=时") + private String primaryHydrolysisHalfLife; + + /** 空气中水解-高(小时) */ + @Excel(name = "空气中水解-高", readConverterExp = "小=时") + private String hydrolysisInAirHigh; + + /** 空气中水解-低(小时) */ + @Excel(name = "空气中水解-低", readConverterExp = "小=时") + private String hydrolysisInAirLow; + + /** COD */ + @Excel(name = "COD") + private String cod; + + /** 生物富集或生物积累性[C]-BCF */ + @Excel(name = "生物富集或生物积累性[C]-BCF") + private String bioconcentrationOrBioaccumulation; + + /** 其他有害作用 */ + @Excel(name = "其他有害作用") + private String otherHarmfulEffects; + + @Override + public String toString() { + return "MsdsMaterial{" + + "id=" + id + + ", msds=" + msds + + ", acuteToxicity='" + acuteToxicity + '\'' + + ", ratsOralLd='" + ratsOralLd + '\'' + + ", ratsPercutaneousLd='" + ratsPercutaneousLd + '\'' + + ", ratsSubcutaneousLd='" + ratsSubcutaneousLd + '\'' + + ", ratsVenousLd='" + ratsVenousLd + '\'' + + ", ratsIntraperitonealLd='" + ratsIntraperitonealLd + '\'' + + ", miceOralLd='" + miceOralLd + '\'' + + ", micePercutaneousLd='" + micePercutaneousLd + '\'' + + ", miceVenousLd='" + miceVenousLd + '\'' + + ", miceIntraperitonealLd='" + miceIntraperitonealLd + '\'' + + ", guineaPigsOralLd='" + guineaPigsOralLd + '\'' + + ", guineaPigsPercutaneousLd='" + guineaPigsPercutaneousLd + '\'' + + ", guineaPigsSubcutaneousLd='" + guineaPigsSubcutaneousLd + '\'' + + ", guineaPigsVenousLd='" + guineaPigsVenousLd + '\'' + + ", guineaPigsIntraperitonealLd='" + guineaPigsIntraperitonealLd + '\'' + + ", rabbitOralLd='" + rabbitOralLd + '\'' + + ", rabbitPercutaneousLd='" + rabbitPercutaneousLd + '\'' + + ", rabbitSubcutaneousLd='" + rabbitSubcutaneousLd + '\'' + + ", rabbitVenousLd='" + rabbitVenousLd + '\'' + + ", rabbitIntraperitonealLd='" + rabbitIntraperitonealLd + '\'' + + ", otherAnimalLd='" + otherAnimalLd + '\'' + + ", ld='" + ld + '\'' + + ", ldl0='" + ldl0 + '\'' + + ", tdl0='" + tdl0 + '\'' + + ", ratsInhaleLc='" + ratsInhaleLc + '\'' + + ", ratsInhaleLcl0='" + ratsInhaleLcl0 + '\'' + + ", miceInhaleLc='" + miceInhaleLc + '\'' + + ", miceInhaleLcl0='" + miceInhaleLcl0 + '\'' + + ", miceInhaleTdl0='" + miceInhaleTdl0 + '\'' + + ", peopleInhaleLcl0='" + peopleInhaleLcl0 + '\'' + + ", peopleInhaleTdl0='" + peopleInhaleTdl0 + '\'' + + ", idlh='" + idlh + '\'' + + ", otherAnimalLc50='" + otherAnimalLc50 + '\'' + + ", otherAnimalLc100='" + otherAnimalLc100 + '\'' + + ", otherAnimalLcl0='" + otherAnimalLcl0 + '\'' + + ", otherAnimalTcl0='" + otherAnimalTcl0 + '\'' + + ", rabbitPercutaneous='" + rabbitPercutaneous + '\'' + + ", rabbitMeridians='" + rabbitMeridians + '\'' + + ", ratsPercutaneous='" + ratsPercutaneous + '\'' + + ", ratsMeridians='" + ratsMeridians + '\'' + + ", guineaPigsPercutaneous='" + guineaPigsPercutaneous + '\'' + + ", guineaPigsMeridians='" + guineaPigsMeridians + '\'' + + ", menPercutaneous='" + menPercutaneous + '\'' + + ", menMeridians='" + menMeridians + '\'' + + ", humanPercutaneous='" + humanPercutaneous + '\'' + + ", humanMeridians='" + humanMeridians + '\'' + + ", subacuteVersusChronicToxicity='" + subacuteVersusChronicToxicity + '\'' + + ", sensitization='" + sensitization + '\'' + + ", mutagenicity='" + mutagenicity + '\'' + + ", teratogenicity='" + teratogenicity + '\'' + + ", carcinogenicity='" + carcinogenicity + '\'' + + ", other='" + other + '\'' + + ", absoluteLethalAmountLd='" + absoluteLethalAmountLd + '\'' + + ", halfLethalDoseLd='" + halfLethalDoseLd + '\'' + + ", halfLethalConcentrationLc='" + halfLethalConcentrationLc + '\'' + + ", halfOfTheEffectConcentrationEc='" + halfOfTheEffectConcentrationEc + '\'' + + ", halfOfTheInhibitoryConcentrationIc='" + halfOfTheInhibitoryConcentrationIc + '\'' + + ", noActionDoseNoel='" + noActionDoseNoel + '\'' + + ", halfOfTheResistanceToLimitedAmountTlm='" + halfOfTheResistanceToLimitedAmountTlm + '\'' + + ", bod5='" + bod5 + '\'' + + ", soilHalfLifeHigh='" + soilHalfLifeHigh + '\'' + + ", soilHalfLifeLow='" + soilHalfLifeLow + '\'' + + ", airHalfLifeHigh='" + airHalfLifeHigh + '\'' + + ", airHalfLifeLow='" + airHalfLifeLow + '\'' + + ", surfaceWaterHalfLifeHigh='" + surfaceWaterHalfLifeHigh + '\'' + + ", surfaceWaterHalfLifeLow='" + surfaceWaterHalfLifeLow + '\'' + + ", groundwaterHalfLifeHigh='" + groundwaterHalfLifeHigh + '\'' + + ", groundwaterHalfLifeLow='" + groundwaterHalfLifeLow + '\'' + + ", aqueousBiodegradationAerobicHigh='" + aqueousBiodegradationAerobicHigh + '\'' + + ", aqueousBiodegradationAerobicLow='" + aqueousBiodegradationAerobicLow + '\'' + + ", aqueousBiodegradationAnaerobicsHigh='" + aqueousBiodegradationAnaerobicsHigh + '\'' + + ", aqueousBiodegradationAnaerobicsLow='" + aqueousBiodegradationAnaerobicsLow + '\'' + + ", aqueousBiodegradationSecondarySedimentationTreatmentHigh='" + aqueousBiodegradationSecondarySedimentationTreatmentHigh + '\'' + + ", aqueousBiodegradationSecondarySedimentationTreatmentLow='" + aqueousBiodegradationSecondarySedimentationTreatmentLow + '\'' + + ", aqueousPhotolysisHalfLifeHigh='" + aqueousPhotolysisHalfLifeHigh + '\'' + + ", aqueousPhotolysisHalfLifeLow='" + aqueousPhotolysisHalfLifeLow + '\'' + + ", photolysisMaximalLightAbsorptionHigh='" + photolysisMaximalLightAbsorptionHigh + '\'' + + ", photolysisMaximalLightAbsorptionLow='" + photolysisMaximalLightAbsorptionLow + '\'' + + ", photooxidationHalfLifeInWaterHigh='" + photooxidationHalfLifeInWaterHigh + '\'' + + ", photooxidationHalfLifeInWaterLow='" + photooxidationHalfLifeInWaterLow + '\'' + + ", photooxidativeHalfLifeInAirHigh='" + photooxidativeHalfLifeInAirHigh + '\'' + + ", photooxidativeHalfLifeInAirLow='" + photooxidativeHalfLifeInAirLow + '\'' + + ", reductionHalfLifeHigh='" + reductionHalfLifeHigh + '\'' + + ", reductionHalfLifeLow='" + reductionHalfLifeLow + '\'' + + ", primaryHydrolysisHalfLife='" + primaryHydrolysisHalfLife + '\'' + + ", hydrolysisInAirHigh='" + hydrolysisInAirHigh + '\'' + + ", hydrolysisInAirLow='" + hydrolysisInAirLow + '\'' + + ", cod='" + cod + '\'' + + ", bioconcentrationOrBioaccumulation='" + bioconcentrationOrBioaccumulation + '\'' + + ", otherHarmfulEffects='" + otherHarmfulEffects + '\'' + + '}'; + } +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/service/IMsdsService.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/service/IMsdsService.java new file mode 100644 index 0000000..3deb8bf --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/service/IMsdsService.java @@ -0,0 +1,55 @@ +package com.hbt.security.knowledge.base.msds.service; + +import com.github.pagehelper.PageInfo; +import com.hbt.security.knowledge.base.msds.model.Msds; + +/** + * 化学品安全信息Service接口 + * + * @author hbt + */ +public interface IMsdsService +{ + /** + * 查询化学品安全信息 + * + * @param id 化学品安全信息主键 + * @return 化学品安全信息 + */ + Msds selectMsdsById(int id); + + /** + * 查询化学品安全信息列表 + * + * @param type 类型 + * @param value 查询内容 + * @param page 当前页 + * @param pageSize 页大小 + * @return 返回值 + */ + PageInfo selectMsdsList(int type, String value, int page, int pageSize); + + /** + * 新增化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + int insertMsds(Msds msds); + + /** + * 修改化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + int updateMsds(Msds msds); + + /** + * 删除化学品安全信息信息 + * + * @param id 化学品安全信息主键 + * @return 结果 + */ + int deleteMsdsById(String id); +} diff --git a/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/service/impl/MsdsServiceImpl.java b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/service/impl/MsdsServiceImpl.java new file mode 100644 index 0000000..3765494 --- /dev/null +++ b/hbt-msds/src/main/java/com/hbt/security/knowledge/base/msds/service/impl/MsdsServiceImpl.java @@ -0,0 +1,100 @@ +package com.hbt.security.knowledge.base.msds.service.impl; + +import java.util.List; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hbt.common.core.utils.StringUtils; +import com.hbt.security.knowledge.base.msds.dao.MsdsDao; +import com.hbt.security.knowledge.base.msds.model.Msds; +import com.hbt.security.knowledge.base.msds.service.IMsdsService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * 化学品安全信息Service业务层处理 + * + * @author hbt + */ +@Service +public class MsdsServiceImpl implements IMsdsService +{ + @Autowired + private MsdsDao msdsDao; + + /** + * 查询化学品安全信息 + * + * @param id 化学品安全信息主键 + * @return 化学品安全信息 + */ + @Override + public Msds selectMsdsById(int id) + { + return msdsDao.selectMsdsById(id); + } + + /** + * 查询化学品安全信息列表 + * + * @param type 类型 + * @param selectValue 查询内容 + * @param page 当前页 + * @param pageSize 页大小 + * @return 化学品安全信息 + */ + @Override + public PageInfo selectMsdsList(int type, String selectValue, int page, int pageSize) + { + PageHelper.startPage(page, pageSize); + List msdsList = msdsDao.selectMsdsList(type, selectValue); + return new PageInfo<>(msdsList); + } + + /** + * 新增化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + @Transactional + @Override + public int insertMsds(Msds msds) + { + return msdsDao.insertMsds(msds); + } + + /** + * 修改化学品安全信息 + * + * @param msds 化学品安全信息 + * @return 结果 + */ + @Transactional + @Override + public int updateMsds(Msds msds) + { + if (msds == null || msds.getId() == 0) { + return 0; + } + return msdsDao.updateMsds(msds); + } + + /** + * 删除化学品安全信息信息 + * + * @param id 化学品安全信息主键 + * @return 结果 + */ + @Transactional + @Override + public int deleteMsdsById(String id) + { + if (StringUtils.isEmpty(id)) { + return 0; + } + + return msdsDao.deleteMsdsById(Integer.parseInt(id)); + } +} diff --git a/hbt-msds/src/main/resources/banner.txt b/hbt-msds/src/main/resources/banner.txt new file mode 100644 index 0000000..4976e64 --- /dev/null +++ b/hbt-msds/src/main/resources/banner.txt @@ -0,0 +1,7 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} + __ __ __ __ + / /_ / /_ / /_ ____ ___ _________/ /____ + / __ \/ __ \/ __/_____/ __ `__ \/ ___/ __ / ___/ + / / / / /_/ / /_/_____/ / / / / (__ ) /_/ (__ ) +/_/ /_/_.___/\__/ /_/ /_/ /_/____/\__,_/____/ \ No newline at end of file diff --git a/hbt-msds/src/main/resources/bootstrap-dev.yml b/hbt-msds/src/main/resources/bootstrap-dev.yml new file mode 100644 index 0000000..78a8fbc --- /dev/null +++ b/hbt-msds/src/main/resources/bootstrap-dev.yml @@ -0,0 +1,16 @@ +# Spring +spring: + cloud: + nacos: + username: nacos + password: zkhbt888 + discovery: + # 服务注册地址 + server-addr: ${nacos.ip}:8848 + config: + # 配置中心地址 + server-addr: ${nacos.ip}:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/hbt-msds/src/main/resources/bootstrap.yml b/hbt-msds/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..33db7f8 --- /dev/null +++ b/hbt-msds/src/main/resources/bootstrap.yml @@ -0,0 +1,14 @@ +# Tomcat +server: + port: 9527 +# Spring +spring: + application: + # 应用名称 + name: hbt-msds + profiles: + # 环境配置 + active: dev + +nacos: + ip: 119.45.158.12 diff --git a/hbt-msds/src/main/resources/mapper/MsdsMapper.xml b/hbt-msds/src/main/resources/mapper/MsdsMapper.xml new file mode 100644 index 0000000..d606fec --- /dev/null +++ b/hbt-msds/src/main/resources/mapper/MsdsMapper.xml @@ -0,0 +1,792 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into msds ( + chemical_cn, + other_chemical_cn, + chemical_en, + other_chemical_en, + cas, + type, + detonator_profession1, + detonator_profession1_concentration, + detonator_profession1_CAS_No, + detonator_profession2, + detonator_profession2_concentration, + detonator_profession2_CAS_No, + detonator_profession3, + detonator_profession3_concentration, + detonator_profession3_CAS_No, + detonator_profession4, + detonator_profession4_concentration, + detonator_profession4_CAS_No, + detonator_profession5, + detonator_profession5_concentration, + detonator_profession5_CAS_No, + hazard_category, + Invasion_route, + health_hazards, + environmental_hazards, + explosion_hazard, + skin_contact, + eye_contact, + inhalation, + ingestion, + hazard_characteristics, + hazardous_combustion_products, + fire_extinguishing_method, + fire_fighting, + emergency_actions, + operational_considerations, + storage_precautions, + MAC, + PC_TWA, + PC_STEL, + TLV_C, + TLV_TWA, + TLV_STEL, + monitoring_methods, + engineering_control, + respiratory_protection, + eye_protection, + physical_protection, + hand_protection, + other_protection, + appearance_and_shape, + ph_value, + melting_point, + boiling_point, + relative_density, + relative_vapor_density, + saturated_vapor_pressure, + heat_of_combustion, + critical, + critical_pressure, + octanol_water_partition_coefficient, + flash_point, + Ignition_temperature, + lower_explosion_limit, + upper_explosion_limit, + solubility, + main_uses, + stability, + forbidden_mixtures, + avoid_contact_conditions, + aggregation_hazards, + decomposition_products, + nature_of_waste, + disposal_methods, + deprecation_considerations, + dangerous_goods_number, + un_number, + packaging_category, + packaging_logo, + packaging_method, + shipping_precautions, + regulatory_information, + critical_value) + values ( + #{msds.chemicalCn}, + #{msds.otherChemicalCn}, + #{msds.chemicalEn}, + #{msds.otherChemicalEn}, + #{msds.cas}, + #{msds.type}, + #{msds.detonatorProfession1}, + #{msds.detonatorProfession1Concentration}, + #{msds.detonatorProfession1CasNo}, + #{msds.detonatorProfession2}, + #{msds.detonatorProfession2Concentration}, + #{msds.detonatorProfession2CasNo}, + #{msds.detonatorProfession3}, + #{msds.detonatorProfession3Concentration}, + #{msds.detonatorProfession3CasNo}, + #{msds.detonatorProfession4}, + #{msds.detonatorProfession4Concentration}, + #{msds.detonatorProfession4CasNo}, + #{msds.detonatorProfession5}, + #{msds.detonatorProfession5Concentration}, + #{msds.detonatorProfession5CasNo}, + #{msds.hazardCategory}, + #{msds.invasionRoute}, + #{msds.healthHazards}, + #{msds.environmentalHazards}, + #{msds.explosionHazard}, + #{msds.skinContact}, + #{msds.eyeContact}, + #{msds.inhalation}, + #{msds.ingestion}, + #{msds.hazardCharacteristics}, + #{msds.hazardousCombustionProducts}, + #{msds.fireExtinguishingMethod}, + #{msds.fireFighting}, + #{msds.emergencyActions}, + #{msds.operationalConsiderations}, + #{msds.storagePrecautions}, + #{msds.mac}, + #{msds.pcTwa}, + #{msds.pcStel}, + #{msds.tlvC}, + #{msds.tlvTwa}, + #{msds.tlvStel}, + #{msds.monitoringMethods}, + #{msds.engineeringControl}, + #{msds.respiratoryProtection}, + #{msds.eyeProtection}, + #{msds.physicalProtection}, + #{msds.handProtection}, + #{msds.otherProtection}, + #{msds.appearanceAndShape}, + #{msds.phValue}, + #{msds.meltingPoint}, + #{msds.boilingPoint}, + #{msds.relativeDensity}, + #{msds.relativeVaporDensity}, + #{msds.saturatedVaporPressure}, + #{msds.heatOfCombustion}, + #{msds.critical}, + #{msds.criticalPressure}, + #{msds.octanolWaterPartitionCoefficient}, + #{msds.flashPoint}, + #{msds.ignitionTemperature}, + #{msds.lowerExplosionLimit}, + #{msds.upperExplosionLimit}, + #{msds.solubility}, + #{msds.mainUses}, + #{msds.stability}, + #{msds.forbiddenMixtures}, + #{msds.avoidContactConditions}, + #{msds.aggregationHazards}, + #{msds.decompositionProducts}, + #{msds.natureOfWaste}, + #{msds.disposalMethods}, + #{msds.deprecationConsiderations}, + #{msds.dangerousGoodsNumber}, + #{msds.unNumber}, + #{msds.packagingCategory}, + #{msds.packagingLogo}, + #{msds.packagingMethod}, + #{msds.shippingPrecautions}, + #{msds.regulatoryInformation}, + #{msds.criticalValue} + ) + + select LAST_INSERT_ID() + + + + + + insert into msds_material ( + msds, + acute_toxicity, + rats_oral_LD, + rats_percutaneous_LD, + rats_subcutaneous_LD, + rats_venous_LD, + rats_intraperitoneal_LD, + mice_oral_LD, + mice_percutaneous_LD, + mice_venous_LD, + mice_intraperitoneal_LD, + guinea_pigs_oral_LD, + guinea_pigs_percutaneous_LD, + guinea_pigs_subcutaneous_LD, + guinea_pigs_venous_LD, + guinea_pigs_intraperitoneal_LD, + rabbit_oral_LD, + rabbit_percutaneous_LD, + rabbit_subcutaneous_LD, + rabbit_venous_LD, + rabbit_intraperitoneal_LD, + other_animal_LD, + LD, + LDL0, + TDL0, + rats_inhale_LC, + rats_inhale_LCL0, + mice_inhale_LC, + mice_inhale_LCL0, + mice_inhale_TDL0, + people_inhale_LCL0, + people_inhale_TDL0, + IDLH, + other_animal_LC_50, + other_animal_LC_100, + other_animal_LCL0, + other_animal_TCL0, + rabbit_percutaneous, + rabbit_meridians, + rats_percutaneous, + rats_meridians, + guinea_pigs_percutaneous, + guinea_pigs_meridians, + men_percutaneous, + men_meridians, + human_percutaneous, + human_meridians, + subacute_versus_chronic_toxicity, + sensitization, + mutagenicity, + teratogenicity, + carcinogenicity, + other, + absolute_lethal_amount_LD, + half_lethal_dose_LD, + half_lethal_concentration_LC, + half_of_the_effect_concentration_EC, + half_of_the_inhibitory_concentration_IC, + no_action_dose_NOEL, + half_of_the_resistance_to_limited_amount_TLm, + bod5, + soil_half_life_high, + soil_half_life_low, + air_half_life_high, + air_half_life_low, + surface_water_half_life_high, + surface_water_half_life_low, + groundwater_half_life_high, + groundwater_half_life_low, + aqueous_biodegradation_aerobic_high, + aqueous_biodegradation_aerobic_low, + aqueous_biodegradation_anaerobics_high, + aqueous_biodegradation_anaerobics_low, + aqueous_biodegradation_secondary_sedimentation_treatment_high, + aqueous_biodegradation_secondary_sedimentation_treatment_low, + aqueous_photolysis_half_life_high, + aqueous_photolysis_half_life_low, + photolysis_maximal_light_absorption_high, + photolysis_maximal_light_absorption_low, + photooxidation_half_life_in_water_high, + photooxidation_half_life_in_water_low, + photooxidative_half_life_in_air_high, + photooxidative_half_life_in_air_low, + reduction_half_life_high, + reduction_half_life_low, + primary_hydrolysis_half_life, + hydrolysis_in_air_high, + hydrolysis_in_air_low, + cod, + bioconcentration_or_bioaccumulation, + other_harmful_effects + ) + values ( + #{material.msds}, + #{material.acute_toxicity}, + #{material.rats_oral_LD}, + #{material.rats_percutaneous_LD}, + #{material.rats_subcutaneous_LD}, + #{material.rats_venous_LD}, + #{material.rats_intraperitoneal_LD}, + #{material.mice_oral_LD}, + #{material.mice_percutaneous_LD}, + #{material.mice_venous_LD}, + #{material.mice_intraperitoneal_LD}, + #{material.guinea_pigs_oral_LD}, + #{material.guinea_pigs_percutaneous_LD}, + #{material.guinea_pigs_subcutaneous_LD}, + #{material.guinea_pigs_venous_LD}, + #{material.guinea_pigs_intraperitoneal_LD}, + #{material.rabbit_oral_LD}, + #{material.rabbit_percutaneous_LD}, + #{material.rabbit_subcutaneous_LD}, + #{material.rabbit_venous_LD}, + #{material.rabbit_intraperitoneal_LD}, + #{material.other_animal_LD}, + #{material.LD}, + #{material.LDL0}, + #{material.TDL0}, + #{material.rats_inhale_LC}, + #{material.rats_inhale_LCL0}, + #{material.mice_inhale_LC}, + #{material.mice_inhale_LCL0}, + #{material.mice_inhale_TDL0}, + #{material.people_inhale_LCL0}, + #{material.people_inhale_TDL0}, + #{material.IDLH}, + #{material.other_animal_LC_50}, + #{material.other_animal_LC_100}, + #{material.other_animal_LCL0}, + #{material.other_animal_TCL0}, + #{material.rabbit_percutaneous}, + #{material.rabbit_meridians}, + #{material.rats_percutaneous}, + #{material.rats_meridians}, + #{material.guinea_pigs_percutaneous}, + #{material.guinea_pigs_meridians}, + #{material.men_percutaneous}, + #{material.men_meridians}, + #{material.human_percutaneous}, + #{material.human_meridians}, + #{material.subacute_versus_chronic_toxicity}, + #{material.sensitization}, + #{material.mutagenicity}, + #{material.teratogenicity}, + #{material.carcinogenicity}, + #{material.other}, + #{material.absolute_lethal_amount_LD}, + #{material.half_lethal_dose_LD}, + #{material.half_lethal_concentration_LC}, + #{material.half_of_the_effect_concentration_EC}, + #{material.half_of_the_inhibitory_concentration_IC}, + #{material.no_action_dose_NOEL}, + #{material.half_of_the_resistance_to_limited_amount_TLm}, + #{material.bod5}, + #{material.soil_half_life_high}, + #{material.soil_half_life_low}, + #{material.air_half_life_high}, + #{material.air_half_life_low}, + #{material.surface_water_half_life_high}, + #{material.surface_water_half_life_low}, + #{material.groundwater_half_life_high}, + #{material.groundwater_half_life_low}, + #{material.aqueous_biodegradation_aerobic_high}, + #{material.aqueous_biodegradation_aerobic_low}, + #{material.aqueous_biodegradation_anaerobics_high}, + #{material.aqueous_biodegradation_anaerobics_low}, + #{material.aqueous_biodegradation_secondary_sedimentation_treatment_high}, + #{material.aqueous_biodegradation_secondary_sedimentation_treatment_low}, + #{material.aqueous_photolysis_half_life_high}, + #{material.aqueous_photolysis_half_life_low}, + #{material.photolysis_maximal_light_absorption_high}, + #{material.photolysis_maximal_light_absorption_low}, + #{material.photooxidation_half_life_in_water_high}, + #{material.photooxidation_half_life_in_water_low}, + #{material.photooxidative_half_life_in_air_high}, + #{material.photooxidative_half_life_in_air_low}, + #{material.reduction_half_life_high}, + #{material.reduction_half_life_low}, + #{material.primary_hydrolysis_half_life}, + #{material.hydrolysis_in_air_high}, + #{material.hydrolysis_in_air_low}, + #{material.cod}, + #{material.bioconcentration_or_bioaccumulation}, + #{material.other_harmful_effects} + ) + + + + update msds_material + set + acute_toxicity = #{material.acute_toxicity}, + rats_oral_LD = #{material.rats_oral_LD}, + rats_percutaneous_LD = #{material.rats_percutaneous_LD}, + rats_subcutaneous_LD = #{material.rats_subcutaneous_LD}, + rats_venous_LD = #{material.rats_venous_LD}, + rats_intraperitoneal_LD = #{material.rats_intraperitoneal_LD}, + mice_oral_LD = #{material.mice_oral_LD}, + mice_percutaneous_LD = #{material.mice_percutaneous_LD}, + mice_venous_LD = #{material.mice_venous_LD}, + mice_intraperitoneal_LD = #{material.mice_intraperitoneal_LD}, + guinea_pigs_oral_LD = #{material.guinea_pigs_oral_LD}, + guinea_pigs_percutaneous_LD = #{material.guinea_pigs_percutaneous_LD}, + guinea_pigs_subcutaneous_LD = #{material.guinea_pigs_subcutaneous_LD}, + guinea_pigs_venous_LD = #{material.guinea_pigs_venous_LD}, + guinea_pigs_intraperitoneal_LD = #{material.guinea_pigs_intraperitoneal_LD}, + rabbit_oral_LD = #{material.rabbit_oral_LD}, + rabbit_percutaneous_LD = #{material.rabbit_percutaneous_LD}, + rabbit_subcutaneous_LD = #{material.rabbit_subcutaneous_LD}, + rabbit_venous_LD = #{material.rabbit_venous_LD}, + rabbit_intraperitoneal_LD = #{material.rabbit_intraperitoneal_LD}, + other_animal_LD = #{material.other_animal_LD}, + LD = #{material.LD}, + LDL0 = #{material.LDL0}, + TDL0 = #{material.TDL0}, + rats_inhale_LC = #{material.rats_inhale_LC}, + rats_inhale_LCL0 = #{material.rats_inhale_LCL0}, + mice_inhale_LC = #{material.mice_inhale_LC}, + mice_inhale_LCL0 = #{material.mice_inhale_LCL0}, + mice_inhale_TDL0 = #{material.mice_inhale_TDL0}, + people_inhale_LCL0 = #{material.people_inhale_LCL0}, + people_inhale_TDL0 = #{material.people_inhale_TDL0}, + IDLH = #{material.IDLH}, + other_animal_LC_50 = #{material.other_animal_LC_50}, + other_animal_LC_100 = #{material.other_animal_LC_100}, + other_animal_LCL0 = #{material.other_animal_LCL0}, + other_animal_TCL0 = #{material.other_animal_TCL0}, + rabbit_percutaneous = #{material.rabbit_percutaneous}, + rabbit_meridians = #{material.rabbit_meridians}, + rats_percutaneous = #{material.rats_percutaneous}, + rats_meridians = #{material.rats_meridians}, + guinea_pigs_percutaneous = #{material.guinea_pigs_percutaneous}, + guinea_pigs_meridians = #{material.guinea_pigs_meridians}, + men_percutaneous = #{material.men_percutaneous}, + men_meridians = #{material.men_meridians}, + human_percutaneous = #{material.human_percutaneous}, + human_meridians = #{material.human_meridians}, + subacute_versus_chronic_toxicity = #{material.subacute_versus_chronic_toxicity}, + sensitization = #{material.sensitization}, + mutagenicity = #{material.mutagenicity}, + teratogenicity = #{material.teratogenicity}, + carcinogenicity = #{material.carcinogenicity}, + other = #{material.other}, + absolute_lethal_amount_LD = #{material.absolute_lethal_amount_LD}, + half_lethal_dose_LD = #{material.half_lethal_dose_LD}, + half_lethal_concentration_LC = #{material.half_lethal_concentration_LC}, + half_of_the_effect_concentration_EC = #{material.half_of_the_effect_concentration_EC}, + half_of_the_inhibitory_concentration_IC = #{material.half_of_the_inhibitory_concentration_IC}, + no_action_dose_NOEL = #{material.no_action_dose_NOEL}, + half_of_the_resistance_to_limited_amount_TLm = #{material.half_of_the_resistance_to_limited_amount_TLm}, + bod5 = #{material.bod5}, + soil_half_life_high = #{material.soil_half_life_high}, + soil_half_life_low = #{material.soil_half_life_low}, + air_half_life_high = #{material.air_half_life_high}, + air_half_life_low = #{material.air_half_life_low}, + surface_water_half_life_high = #{material.surface_water_half_life_high}, + surface_water_half_life_low = #{material.surface_water_half_life_low}, + groundwater_half_life_high = #{material.groundwater_half_life_high}, + groundwater_half_life_low = #{material.groundwater_half_life_low}, + aqueous_biodegradation_aerobic_high = #{material.aqueous_biodegradation_aerobic_high}, + aqueous_biodegradation_aerobic_low = #{material.aqueous_biodegradation_aerobic_low}, + aqueous_biodegradation_anaerobics_high = #{material.aqueous_biodegradation_anaerobics_high}, + aqueous_biodegradation_anaerobics_low = #{material.aqueous_biodegradation_anaerobics_low}, + aqueous_biodegradation_secondary_sedimentation_treatment_high = #{material.aqueous_biodegradation_secondary_sedimentation_treatment_high}, + aqueous_biodegradation_secondary_sedimentation_treatment_low = #{material.aqueous_biodegradation_secondary_sedimentation_treatment_low}, + aqueous_photolysis_half_life_high = #{material.aqueous_photolysis_half_life_high}, + aqueous_photolysis_half_life_low = #{material.aqueous_photolysis_half_life_low}, + photolysis_maximal_light_absorption_high = #{material.photolysis_maximal_light_absorption_high}, + photolysis_maximal_light_absorption_low = #{material.photolysis_maximal_light_absorption_low}, + photooxidation_half_life_in_water_high = #{material.photooxidation_half_life_in_water_high}, + photooxidation_half_life_in_water_low = #{material.photooxidation_half_life_in_water_low}, + photooxidative_half_life_in_air_high = #{material.photooxidative_half_life_in_air_high}, + photooxidative_half_life_in_air_low = #{material.photooxidative_half_life_in_air_low}, + reduction_half_life_high = #{material.reduction_half_life_high}, + reduction_half_life_low = #{material.reduction_half_life_low}, + primary_hydrolysis_half_life = #{material.primary_hydrolysis_half_life}, + hydrolysis_in_air_high = #{material.hydrolysis_in_air_high}, + hydrolysis_in_air_low = #{material.hydrolysis_in_air_low}, + cod = #{material.cod}, + bioconcentration_or_bioaccumulation = #{material.bioconcentration_or_bioaccumulation}, + other_harmful_effects = #{material.other_harmful_effects} + where msds = #{material.msds} + + + + update msds + set + chemical_cn = #{msds.chemicalCn}, + other_chemical_cn = #{msds.otherChemicalCn}, + chemical_en = #{msds.chemicalEn}, + other_chemical_en = #{msds.otherChemicalEn}, + cas = #{msds.cas}, + type = #{msds.type}, + detonator_profession1 = #{msds.detonatorProfession1}, + detonator_profession1_concentration = #{msds.detonatorProfession1Concentration}, + detonator_profession1_CAS_No = #{msds.detonatorProfession1CasNo}, + detonator_profession2 = #{msds.detonatorProfession2}, + detonator_profession2_concentration = #{msds.detonatorProfession2Concentration}, + detonator_profession2_CAS_No = #{msds.detonatorProfession2CasNo}, + detonator_profession3 = #{msds.detonatorProfession3}, + detonator_profession3_concentration = #{msds.detonatorProfession3Concentration}, + detonator_profession3_CAS_No = #{msds.detonatorProfession3CasNo}, + detonator_profession4 = #{msds.detonatorProfession4}, + detonator_profession4_concentration = #{msds.detonatorProfession4Concentration}, + detonator_profession4_CAS_No = #{msds.detonatorProfession4CasNo}, + detonator_profession5 = #{msds.detonatorProfession5}, + detonator_profession5_concentration = #{msds.detonatorProfession5Concentration}, + detonator_profession5_CAS_No = #{msds.detonatorProfession5CasNo}, + hazard_category = #{msds.hazardCategory}, + Invasion_route = #{msds.invasionRoute}, + health_hazards = #{msds.healthHazards}, + environmental_hazards = #{msds.environmentalHazards}, + explosion_hazard = #{msds.explosionHazard}, + skin_contact = #{msds.skinContact}, + eye_contact = #{msds.eyeContact}, + inhalation = #{msds.inhalation}, + ingestion = #{msds.ingestion}, + hazard_characteristics = #{msds.hazardCharacteristics}, + hazardous_combustion_products = #{msds.hazardousCombustionProducts}, + fire_extinguishing_method = #{msds.fireExtinguishingMethod}, + fire_fighting = #{msds.fireFighting}, + emergency_actions = #{msds.emergencyActions}, + operational_considerations = #{msds.operationalConsiderations}, + storage_precautions = #{msds.storagePrecautions}, + MAC = #{msds.mac}, + PC_TWA = #{msds.pcTwa}, + PC_STEL = #{msds.pcStel}, + TLV_C = #{msds.tlvC}, + TLV_TWA = #{msds.tlvTwa}, + TLV_STEL = #{msds.tlvStel}, + monitoring_methods = #{msds.monitoringMethods}, + engineering_control = #{msds.engineeringControl}, + respiratory_protection = #{msds.respiratoryProtection}, + eye_protection = #{msds.eyeProtection}, + physical_protection = #{msds.physicalProtection}, + hand_protection = #{msds.handProtection}, + other_protection = #{msds.otherProtection}, + appearance_and_shape = #{msds.appearanceAndShape}, + ph_value = #{msds.phValue}, + melting_point = #{msds.meltingPoint}, + boiling_point = #{msds.boilingPoint}, + relative_density = #{msds.relativeDensity}, + relative_vapor_density = #{msds.relativeVaporDensity}, + saturated_vapor_pressure = #{msds.saturatedVaporPressure}, + heat_of_combustion = #{msds.heatOfCombustion}, + critical = #{msds.critical}, + critical_pressure = #{msds.criticalPressure}, + octanol_water_partition_coefficient = #{msds.octanolWaterPartitionCoefficient}, + flash_point = #{msds.flashPoint}, + Ignition_temperature = #{msds.ignitionTemperature}, + lower_explosion_limit = #{msds.lowerExplosionLimit}, + upper_explosion_limit = #{msds.upperExplosionLimit}, + solubility = #{msds.solubility}, + main_uses = #{msds.mainUses}, + stability = #{msds.stability}, + forbidden_mixtures = #{msds.forbiddenMixtures}, + avoid_contact_conditions = #{msds.avoidContactConditions}, + aggregation_hazards = #{msds.aggregationHazards}, + decomposition_products = #{msds.decompositionProducts}, + nature_of_waste = #{msds.natureOfWaste}, + disposal_methods = #{msds.disposalMethods}, + deprecation_considerations = #{msds.deprecationConsiderations}, + dangerous_goods_number = #{msds.dangerousGoodsNumber}, + un_number = #{msds.unNumber}, + packaging_category = #{msds.packagingCategory}, + packaging_logo = #{msds.packagingLogo}, + packaging_method = #{msds.packagingMethod}, + shipping_precautions = #{msds.shippingPrecautions}, + regulatory_information = #{msds.regulatoryInformation}, + critical_value = #{msds.criticalValue} + where id = #{msds.id} + + + + delete from msds where id = #{id} + + + + delete from msds_material where msds = #{id} + + + + insert into msds_material( id, msds, acute_toxicity, rats_oral_LD, rats_percutaneous_LD, rats_subcutaneous_LD, rats_venous_LD, rats_intraperitoneal_LD, mice_oral_LD, mice_percutaneous_LD, mice_venous_LD, mice_intraperitoneal_LD, guinea_pigs_oral_LD, guinea_pigs_percutaneous_LD, guinea_pigs_subcutaneous_LD, guinea_pigs_venous_LD, guinea_pigs_intraperitoneal_LD, rabbit_oral_LD, rabbit_percutaneous_LD, rabbit_subcutaneous_LD, rabbit_venous_LD, rabbit_intraperitoneal_LD, other_animal_LD, LD, LDL0, TDL0, rats_inhale_LC, rats_inhale_LCL0, mice_inhale_LC, mice_inhale_LCL0, mice_inhale_TDL0, people_inhale_LCL0, people_inhale_TDL0, IDLH, other_animal_LC_50, other_animal_LC_100, other_animal_LCL0, other_animal_TCL0, rabbit_percutaneous, rabbit_meridians, rats_percutaneous, rats_meridians, guinea_pigs_percutaneous, guinea_pigs_meridians, men_percutaneous, men_meridians, human_percutaneous, human_meridians, subacute_versus_chronic_toxicity, sensitization, mutagenicity, teratogenicity, carcinogenicity, other, absolute_lethal_amount_LD, half_lethal_dose_LD, half_lethal_concentration_LC, half_of_the_effect_concentration_EC, half_of_the_inhibitory_concentration_IC, no_action_dose_NOEL, half_of_the_resistance_to_limited_amount_TLm, bod5, soil_half_life_high, soil_half_life_low, air_half_life_high, air_half_life_low, surface_water_half_life_high, surface_water_half_life_low, groundwater_half_life_high, groundwater_half_life_low, aqueous_biodegradation_aerobic_high, aqueous_biodegradation_aerobic_low, aqueous_biodegradation_anaerobics_high, aqueous_biodegradation_anaerobics_low, aqueous_biodegradation_secondary_sedimentation_treatment_high, aqueous_biodegradation_secondary_sedimentation_treatment_low, aqueous_photolysis_half_life_high, aqueous_photolysis_half_life_low, photolysis_maximal_light_absorption_high, photolysis_maximal_light_absorption_low, photooxidation_half_life_in_water_high, photooxidation_half_life_in_water_low, photooxidative_half_life_in_air_high, photooxidative_half_life_in_air_low, reduction_half_life_high, reduction_half_life_low, primary_hydrolysis_half_life, hydrolysis_in_air_high, hydrolysis_in_air_low, cod, bioconcentration_or_bioaccumulation, other_harmful_effects) values + + ( #{item.id}, #{item.msds}, #{item.acuteToxicity}, #{item.ratsOralLd}, #{item.ratsPercutaneousLd}, #{item.ratsSubcutaneousLd}, #{item.ratsVenousLd}, #{item.ratsIntraperitonealLd}, #{item.miceOralLd}, #{item.micePercutaneousLd}, #{item.miceVenousLd}, #{item.miceIntraperitonealLd}, #{item.guineaPigsOralLd}, #{item.guineaPigsPercutaneousLd}, #{item.guineaPigsSubcutaneousLd}, #{item.guineaPigsVenousLd}, #{item.guineaPigsIntraperitonealLd}, #{item.rabbitOralLd}, #{item.rabbitPercutaneousLd}, #{item.rabbitSubcutaneousLd}, #{item.rabbitVenousLd}, #{item.rabbitIntraperitonealLd}, #{item.otherAnimalLd}, #{item.ld}, #{item.ldl0}, #{item.tdl0}, #{item.ratsInhaleLc}, #{item.ratsInhaleLcl0}, #{item.miceInhaleLc}, #{item.miceInhaleLcl0}, #{item.miceInhaleTdl0}, #{item.peopleInhaleLcl0}, #{item.peopleInhaleTdl0}, #{item.idlh}, #{item.otherAnimalLc50}, #{item.otherAnimalLc100}, #{item.otherAnimalLcl0}, #{item.otherAnimalTcl0}, #{item.rabbitPercutaneous}, #{item.rabbitMeridians}, #{item.ratsPercutaneous}, #{item.ratsMeridians}, #{item.guineaPigsPercutaneous}, #{item.guineaPigsMeridians}, #{item.menPercutaneous}, #{item.menMeridians}, #{item.humanPercutaneous}, #{item.humanMeridians}, #{item.subacuteVersusChronicToxicity}, #{item.sensitization}, #{item.mutagenicity}, #{item.teratogenicity}, #{item.carcinogenicity}, #{item.other}, #{item.absoluteLethalAmountLd}, #{item.halfLethalDoseLd}, #{item.halfLethalConcentrationLc}, #{item.halfOfTheEffectConcentrationEc}, #{item.halfOfTheInhibitoryConcentrationIc}, #{item.noActionDoseNoel}, #{item.halfOfTheResistanceToLimitedAmountTlm}, #{item.bod5}, #{item.soilHalfLifeHigh}, #{item.soilHalfLifeLow}, #{item.airHalfLifeHigh}, #{item.airHalfLifeLow}, #{item.surfaceWaterHalfLifeHigh}, #{item.surfaceWaterHalfLifeLow}, #{item.groundwaterHalfLifeHigh}, #{item.groundwaterHalfLifeLow}, #{item.aqueousBiodegradationAerobicHigh}, #{item.aqueousBiodegradationAerobicLow}, #{item.aqueousBiodegradationAnaerobicsHigh}, #{item.aqueousBiodegradationAnaerobicsLow}, #{item.aqueousBiodegradationSecondarySedimentationTreatmentHigh}, #{item.aqueousBiodegradationSecondarySedimentationTreatmentLow}, #{item.aqueousPhotolysisHalfLifeHigh}, #{item.aqueousPhotolysisHalfLifeLow}, #{item.photolysisMaximalLightAbsorptionHigh}, #{item.photolysisMaximalLightAbsorptionLow}, #{item.photooxidationHalfLifeInWaterHigh}, #{item.photooxidationHalfLifeInWaterLow}, #{item.photooxidativeHalfLifeInAirHigh}, #{item.photooxidativeHalfLifeInAirLow}, #{item.reductionHalfLifeHigh}, #{item.reductionHalfLifeLow}, #{item.primaryHydrolysisHalfLife}, #{item.hydrolysisInAirHigh}, #{item.hydrolysisInAirLow}, #{item.cod}, #{item.bioconcentrationOrBioaccumulation}, #{item.otherHarmfulEffects}) + + + \ No newline at end of file