服务整改,并提供外部调用接口

master
zhangyu 2023-02-16 15:24:59 +08:00
parent ab05415016
commit c57c168225
50 changed files with 1301 additions and 130 deletions

View File

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="hbt-common-core" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-openfeign:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-openfeign-core:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.7" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form-spring:3.8.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form:3.8.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-commons:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.7.3" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-core:11.8" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-slf4j:11.8" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.36" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.4.22" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.4" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor.addons:reactor-extra:3.4.8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.7.3" level="project" />
<orderEntry type="library" name="Maven: com.stoyanr:evictor:1.0.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.22" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:transmittable-thread-local:2.13.2" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.4.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.7.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.11" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.11" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.17.2" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.36" level="project" />
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.7.3" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:4.0.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.9" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.7" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.4.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.3.2" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.65" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.2.4.Final" level="project" />
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.3.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.13.3" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.13.3" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.13.3" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2:2.0.20" level="project" />
<orderEntry type="library" name="Maven: io.jsonwebtoken:jjwt:0.9.1" level="project" />
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.11.0" level="project" />
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.15" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.6.2" level="project" />
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.4.5" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15to18:1.69" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-bootstrap:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-context:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-rsa:1.0.11.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.69" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.69" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcutil-jdk15on:1.69" level="project" />
</component>
</module>

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.hbt</groupId>
<artifactId>hbt-msds</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hbt-msds-api</artifactId>
<description>
hbt-msds-api系统接口模块
</description>
<dependencies>
<!-- hbt Common Core-->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-core</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,32 @@
package com.hbt.msds.api;
import com.hbt.msds.api.domain.Msds;
import com.hbt.msds.api.factory.RemoteMsdsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import com.hbt.common.core.constant.SecurityConstants;
import com.hbt.common.core.domain.R;
import org.springframework.web.bind.annotation.RequestParam;
/**
*
*
* fegindomain
* @author hbt
*/
@FeignClient(contextId = "remoteMsdsService", value = "hbt-msds", fallbackFactory = RemoteMsdsFallbackFactory.class)
public interface RemoteMsdsService
{
/**
*
*
* @param name
* @param source
* @return
*/
@GetMapping("/msds/selectMsdsByName")
public R<Msds> getInfo(@RequestParam("name") String name, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}

View File

@ -1,12 +1,11 @@
package com.hbt.security.knowledge.base.msds.model;
package com.hbt.msds.api.domain;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import lombok.Data;
/**
* msds
*
*
* @author hbt
*/
@Data
@ -445,4 +444,4 @@ public class Msds extends BaseEntity {
", material=" + material +
'}';
}
}
}

View File

@ -1,4 +1,4 @@
package com.hbt.security.knowledge.base.msds.model;
package com.hbt.msds.api.domain;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;

View File

@ -0,0 +1,33 @@
package com.hbt.msds.api.factory;
import com.hbt.msds.api.RemoteMsdsService;
import com.hbt.msds.api.domain.Msds;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import com.hbt.common.core.domain.R;
/**
*
*
* @author hbt
*/
@Component
public class RemoteMsdsFallbackFactory implements FallbackFactory<RemoteMsdsService>
{
private static final Logger log = LoggerFactory.getLogger(RemoteMsdsFallbackFactory.class);
@Override
public RemoteMsdsService create(Throwable throwable)
{
log.error("化学品信息服务调用失败:{}", throwable.getMessage());
return new RemoteMsdsService()
{
@Override
public R<Msds> getInfo(String name, String source) {
return R.fail("获取化学品信息失败:" + throwable.getMessage());
}
};
}
}

View File

@ -0,0 +1 @@
com.hbt.msds.api.factory.RemoteMsdsFallbackFactory

View File

@ -0,0 +1 @@
com.hbt.msds.api.factory.RemoteMsdsFallbackFactory

View File

@ -0,0 +1,5 @@
#Generated by Maven
#Thu Feb 16 14:30:00 CST 2023
version=1.0-SNAPSHOT
groupId=com.hbt
artifactId=hbt-msds-api

View File

@ -0,0 +1,5 @@
com\hbt\msds\api\domain\Msds.class
com\hbt\msds\api\RemoteMsdsService.class
com\hbt\msds\api\domain\MsdsMaterial.class
com\hbt\msds\api\factory\RemoteMsdsFallbackFactory.class
com\hbt\msds\api\factory\RemoteMsdsFallbackFactory$1.class

View File

@ -0,0 +1,4 @@
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-api\src\main\java\com\hbt\msds\api\domain\Msds.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-api\src\main\java\com\hbt\msds\api\factory\RemoteMsdsFallbackFactory.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-api\src\main\java\com\hbt\msds\api\RemoteMsdsService.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-api\src\main\java\com\hbt\msds\api\domain\MsdsMaterial.java

View File

@ -1,4 +1,5 @@
FROM 119.45.158.12:5000/mini-java8:latest
COPY target/hbt-msds-1.0-SNAPSHOT.jar /app/app.jar
COPY target/hbt-msds-biz-1.0-SNAPSHOT.jar /app/app.jar
WORKDIR /app
ENV NACOSIP=""
ENTRYPOINT ["sh","-c","java -Dnacos.ip=$NACOSIP -jar /app/app.jar"]

View File

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>hbt-msds</artifactId>
<groupId>com.hbt</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hbt-msds-biz</artifactId>
<dependencies>
<!-- SpringCloud Ailibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Ailibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Ailibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- jsits Common Security -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- hbt Common DataSource -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-datasource</artifactId>
</dependency>
<!-- jsits Common Swagger -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-swagger</artifactId>
</dependency>
<!-- jsits Common log -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-log</artifactId>
</dependency>
<!-- Swagger -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-msds-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -2,11 +2,12 @@ package com.hbt.security.knowledge.base.msds.controller;
import com.github.pagehelper.PageInfo;
import com.hbt.common.core.domain.R;
import com.hbt.common.security.annotation.InnerAuth;
import com.hbt.msds.api.domain.Msds;
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;
@ -15,7 +16,7 @@ import javax.validation.constraints.NotNull;
/**
* Controller
*
*
* @author hbt
*/
@RestController
@ -27,15 +28,14 @@ public class MsdsController extends BaseController {
/**
*
*
* @param type 0- 1- 2- 3- 4-CAS 5-
* @param type 0- 1- 2- 3- 4-CAS 5-
* @param selectValue
* @param page
* @param pageSize
* @param page
* @param pageSize
* @return
*/
@GetMapping("/listMsds")
public R<PageInfo<Msds>> list(@RequestParam(value = "type") int type, @RequestParam(value = "selectValue") String selectValue, @RequestParam(value = "CurrentPage") int page, @RequestParam(value = "PageSize") int pageSize)
{
public R<PageInfo<Msds>> list(@RequestParam(value = "type") int type, @RequestParam(value = "selectValue") String selectValue, @RequestParam(value = "CurrentPage") int page, @RequestParam(value = "PageSize") int pageSize) {
PageInfo<Msds> pageInfo = msdsService.selectMsdsList(type, selectValue, page, pageSize);
return R.ok(pageInfo);
}
@ -46,8 +46,7 @@ public class MsdsController extends BaseController {
* @param id id
*/
@GetMapping(value = "/selectMsdsById")
public R<Msds> getInfo(@RequestParam("id") int id)
{
public R<Msds> getInfo(@RequestParam("id") int id) {
Msds msds = msdsService.selectMsdsById(id);
return R.ok(msds);
}
@ -57,8 +56,7 @@ public class MsdsController extends BaseController {
*/
@Log(title = "化学品安全信息", businessType = BusinessType.INSERT)
@GetMapping(value = "/addMsds")
public R<String> add(@RequestBody @NotNull Msds msds)
{
public R<String> add(@RequestBody @NotNull Msds msds) {
int row = msdsService.insertMsds(msds);
if (row > 0) {
return R.ok("success");
@ -71,8 +69,7 @@ public class MsdsController extends BaseController {
*/
@Log(title = "化学品安全信息", businessType = BusinessType.UPDATE)
@GetMapping(value = "/updateMsds")
public R<String> edit(@RequestBody @NotNull Msds msds)
{
public R<String> edit(@RequestBody @NotNull Msds msds) {
int row = msdsService.updateMsds(msds);
if (row > 0) {
return R.ok("success");
@ -84,13 +81,24 @@ public class MsdsController extends BaseController {
*
*/
@Log(title = "化学品安全信息", businessType = BusinessType.DELETE)
@GetMapping("/deleteMsds")
public R<String> remove(@RequestParam(value = "id") String id)
{
@GetMapping("/deleteMsds")
public R<String> remove(@RequestParam(value = "id") String id) {
int row = msdsService.deleteMsdsById(id);
if (row > 0) {
return R.ok("success");
}
return R.fail("fail");
}
/**
*
*
* @param name
*/
// @InnerAuth
@GetMapping(value = "/selectMsdsByName")
public R<Msds> getInfo(@RequestParam("name") String name) {
Msds msds = msdsService.selectMsdsByName(name);
return R.ok(msds);
}
}

View File

@ -1,6 +1,6 @@
package com.hbt.security.knowledge.base.msds.dao;
import com.hbt.security.knowledge.base.msds.model.Msds;
import com.hbt.msds.api.domain.Msds;
import java.util.List;
@ -13,6 +13,14 @@ public interface MsdsDao {
*/
Msds selectMsdsById(int id);
/**
*
*
* @param name
* @return
*/
Msds selectMsdsByName(String name);
/**
*
*

View File

@ -1,10 +1,10 @@
package com.hbt.security.knowledge.base.msds.dao.impl;
import com.hbt.common.core.utils.StringUtils;
import com.hbt.msds.api.domain.Msds;
import com.hbt.msds.api.domain.MsdsMaterial;
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;
@ -29,6 +29,17 @@ public class MsdsDaoImpl implements MsdsDao {
return msdsMapper.selectMsdsById(id);
}
/**
*
*
* @param name
* @return
*/
@Override
public Msds selectMsdsByName(String name) {
return msdsMapper.selectMsdsByName(name);
}
/**
*
*

View File

@ -1,8 +1,9 @@
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 com.hbt.msds.api.domain.Msds;
import com.hbt.msds.api.domain.MsdsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@ -11,7 +12,6 @@ import org.apache.ibatis.annotations.Param;
*
* @author hbt
*/
@Mapper
public interface MsdsMapper
{
/**
@ -22,6 +22,14 @@ public interface MsdsMapper
*/
Msds selectMsdsById(@Param("id") int id);
/**
*
*
* @param name
* @return
*/
Msds selectMsdsByName(String name);
/**
*
*

View File

@ -1,7 +1,7 @@
package com.hbt.security.knowledge.base.msds.service;
import com.github.pagehelper.PageInfo;
import com.hbt.security.knowledge.base.msds.model.Msds;
import com.hbt.msds.api.domain.Msds;
/**
* Service
@ -18,6 +18,15 @@ public interface IMsdsService
*/
Msds selectMsdsById(int id);
/**
*
*
* @param name
* @return
*/
Msds selectMsdsByName(String name);
/**
*
*

View File

@ -5,8 +5,8 @@ import java.util.List;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hbt.common.core.utils.StringUtils;
import com.hbt.msds.api.domain.Msds;
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;
@ -35,6 +35,19 @@ public class MsdsServiceImpl implements IMsdsService
return msdsDao.selectMsdsById(id);
}
/**
*
*
* @param name
* @return
*/
@Override
public Msds selectMsdsByName(String name)
{
return msdsDao.selectMsdsByName(name);
}
/**
*
*

View File

@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.security.knowledge.base.msds.mapper.MsdsMapper">
<resultMap type="com.hbt.security.knowledge.base.msds.model.Msds" id="MsdsResult">
<resultMap type="Msds" id="MsdsResult">
<result property="id" column="id" />
<result property="chemicalCn" column="chemical_cn" />
<result property="otherChemicalCn" column="other_chemical_cn" />
@ -91,11 +91,11 @@
<result property="criticalValue" column="critical_value" />
</resultMap>
<resultMap id="MsdsMsdsMaterialResult" type="com.hbt.security.knowledge.base.msds.model.Msds" extends="MsdsResult">
<collection property="material" notNullColumn="id" javaType="com.hbt.security.knowledge.base.msds.model.MsdsMaterial" resultMap="MsdsMaterialResult" />
<resultMap id="MsdsMsdsMaterialResult" type="Msds" extends="MsdsResult">
<collection property="material" notNullColumn="id" javaType="MsdsMaterial" resultMap="MsdsMaterialResult" />
</resultMap>
<resultMap type="com.hbt.security.knowledge.base.msds.model.MsdsMaterial" id="MsdsMaterialResult">
<resultMap type="MsdsMaterial" id="MsdsMaterialResult">
<result property="id" column="id" />
<result property="msds" column="msds" />
<result property="acuteToxicity" column="acute_toxicity" />
@ -199,6 +199,13 @@
</select>
<select id="selectMsdsByName" parameterType="String" resultMap="MsdsMsdsMaterialResult">
select a.id, a.chemical_cn, a.other_chemical_cn, a.chemical_en, a.other_chemical_en, a.cas, a.type, a.detonator_profession1, a.detonator_profession1_concentration, a.detonator_profession1_CAS_No, a.detonator_profession2, a.detonator_profession2_concentration, a.detonator_profession2_CAS_No, a.detonator_profession3, a.detonator_profession3_concentration, a.detonator_profession3_CAS_No, a.detonator_profession4, a.detonator_profession4_concentration, a.detonator_profession4_CAS_No, a.detonator_profession5, a.detonator_profession5_concentration, a.detonator_profession5_CAS_No, a.hazard_category, a.Invasion_route, a.health_hazards, a.environmental_hazards, a.explosion_hazard, a.skin_contact, a.eye_contact, a.inhalation, a.ingestion, a.hazard_characteristics, a.hazardous_combustion_products, a.fire_extinguishing_method, a.fire_fighting, a.emergency_actions, a.operational_considerations, a.storage_precautions, a.MAC, a.PC_TWA, a.PC_STEL, a.TLV_C, a.TLV_TWA, a.TLV_STEL, a.monitoring_methods, a.engineering_control, a.respiratory_protection, a.eye_protection, a.physical_protection, a.hand_protection, a.other_protection, a.appearance_and_shape, a.ph_value, a.melting_point, a.boiling_point, a.relative_density, a.relative_vapor_density, a.saturated_vapor_pressure, a.heat_of_combustion, a.critical, a.critical_pressure, a.octanol_water_partition_coefficient, a.flash_point, a.Ignition_temperature, a.lower_explosion_limit, a.upper_explosion_limit, a.solubility, a.main_uses, a.stability, a.forbidden_mixtures, a.avoid_contact_conditions, a.aggregation_hazards, a.decomposition_products, a.nature_of_waste, a.disposal_methods, a.deprecation_considerations, a.dangerous_goods_number, a.un_number, a.packaging_category, a.packaging_logo, a.packaging_method, a.shipping_precautions, a.regulatory_information, a.critical_value
from msds a
where a.chemical_cn = #{name}
</select>
<select id="selectMsdsList" resultMap="MsdsMsdsMaterialResult">
select a.id, a.chemical_cn, a.other_chemical_cn, a.chemical_en, a.other_chemical_en, a.cas, a.type, a.detonator_profession1, a.detonator_profession1_concentration, a.detonator_profession1_CAS_No, a.detonator_profession2, a.detonator_profession2_concentration, a.detonator_profession2_CAS_No, a.detonator_profession3, a.detonator_profession3_concentration, a.detonator_profession3_CAS_No, a.detonator_profession4, a.detonator_profession4_concentration, a.detonator_profession4_CAS_No, a.detonator_profession5, a.detonator_profession5_concentration, a.detonator_profession5_CAS_No, a.hazard_category, a.Invasion_route, a.health_hazards, a.environmental_hazards, a.explosion_hazard, a.skin_contact, a.eye_contact, a.inhalation, a.ingestion, a.hazard_characteristics, a.hazardous_combustion_products, a.fire_extinguishing_method, a.fire_fighting, a.emergency_actions, a.operational_considerations, a.storage_precautions, a.MAC, a.PC_TWA, a.PC_STEL, a.TLV_C, a.TLV_TWA, a.TLV_STEL, a.monitoring_methods, a.engineering_control, a.respiratory_protection, a.eye_protection, a.physical_protection, a.hand_protection, a.other_protection, a.appearance_and_shape, a.ph_value, a.melting_point, a.boiling_point, a.relative_density, a.relative_vapor_density, a.saturated_vapor_pressure, a.heat_of_combustion, a.critical, a.critical_pressure, a.octanol_water_partition_coefficient, a.flash_point, a.Ignition_temperature, a.lower_explosion_limit, a.upper_explosion_limit, a.solubility, a.main_uses, a.stability, a.forbidden_mixtures, a.avoid_contact_conditions, a.aggregation_hazards, a.decomposition_products, a.nature_of_waste, a.disposal_methods, a.deprecation_considerations, a.dangerous_goods_number, a.un_number, a.packaging_category, a.packaging_logo, a.packaging_method, a.shipping_precautions, a.regulatory_information, a.critical_value,
b.msds as msds, b.acute_toxicity as acute_toxicity, b.rats_oral_LD as rats_oral_LD, b.rats_percutaneous_LD as rats_percutaneous_LD, b.rats_subcutaneous_LD as rats_subcutaneous_LD, b.rats_venous_LD as rats_venous_LD, b.rats_intraperitoneal_LD as rats_intraperitoneal_LD, b.mice_oral_LD as mice_oral_LD, b.mice_percutaneous_LD as mice_percutaneous_LD, b.mice_venous_LD as mice_venous_LD, b.mice_intraperitoneal_LD as mice_intraperitoneal_LD, b.guinea_pigs_oral_LD as guinea_pigs_oral_LD, b.guinea_pigs_percutaneous_LD as guinea_pigs_percutaneous_LD, b.guinea_pigs_subcutaneous_LD as guinea_pigs_subcutaneous_LD, b.guinea_pigs_venous_LD as guinea_pigs_venous_LD, b.guinea_pigs_intraperitoneal_LD as guinea_pigs_intraperitoneal_LD, b.rabbit_oral_LD as rabbit_oral_LD, b.rabbit_percutaneous_LD as rabbit_percutaneous_LD, b.rabbit_subcutaneous_LD as rabbit_subcutaneous_LD, b.rabbit_venous_LD as rabbit_venous_LD, b.rabbit_intraperitoneal_LD as rabbit_intraperitoneal_LD, b.other_animal_LD as other_animal_LD, b.LD as LD, b.LDL0 as LDL0, b.TDL0 as TDL0, b.rats_inhale_LC as rats_inhale_LC, b.rats_inhale_LCL0 as rats_inhale_LCL0, b.mice_inhale_LC as mice_inhale_LC, b.mice_inhale_LCL0 as mice_inhale_LCL0, b.mice_inhale_TDL0 as mice_inhale_TDL0, b.people_inhale_LCL0 as people_inhale_LCL0, b.people_inhale_TDL0 as people_inhale_TDL0, b.IDLH as IDLH, b.other_animal_LC_50 as other_animal_LC_50, b.other_animal_LC_100 as other_animal_LC_100, b.other_animal_LCL0 as other_animal_LCL0, b.other_animal_TCL0 as other_animal_TCL0, b.rabbit_percutaneous as rabbit_percutaneous, b.rabbit_meridians as rabbit_meridians, b.rats_percutaneous as rats_percutaneous, b.rats_meridians as rats_meridians, b.guinea_pigs_percutaneous as guinea_pigs_percutaneous, b.guinea_pigs_meridians as guinea_pigs_meridians, b.men_percutaneous as men_percutaneous, b.men_meridians as men_meridians, b.human_percutaneous as human_percutaneous, b.human_meridians as human_meridians, b.subacute_versus_chronic_toxicity as subacute_versus_chronic_toxicity, b.sensitization as sensitization, b.mutagenicity as mutagenicity, b.teratogenicity as teratogenicity, b.carcinogenicity as carcinogenicity, b.other as other, b.absolute_lethal_amount_LD as absolute_lethal_amount_LD, b.half_lethal_dose_LD as half_lethal_dose_LD, b.half_lethal_concentration_LC as half_lethal_concentration_LC, b.half_of_the_effect_concentration_EC as half_of_the_effect_concentration_EC, b.half_of_the_inhibitory_concentration_IC as half_of_the_inhibitory_concentration_IC, b.no_action_dose_NOEL as no_action_dose_NOEL, b.half_of_the_resistance_to_limited_amount_TLm as half_of_the_resistance_to_limited_amount_TLm, b.bod5 as bod5, b.soil_half_life_high as soil_half_life_high, b.soil_half_life_low as soil_half_life_low, b.air_half_life_high as air_half_life_high, b.air_half_life_low as air_half_life_low, b.surface_water_half_life_high as surface_water_half_life_high, b.surface_water_half_life_low as surface_water_half_life_low, b.groundwater_half_life_high as groundwater_half_life_high, b.groundwater_half_life_low as groundwater_half_life_low, b.aqueous_biodegradation_aerobic_high as aqueous_biodegradation_aerobic_high, b.aqueous_biodegradation_aerobic_low as aqueous_biodegradation_aerobic_low, b.aqueous_biodegradation_anaerobics_high as aqueous_biodegradation_anaerobics_high, b.aqueous_biodegradation_anaerobics_low as aqueous_biodegradation_anaerobics_low, b.aqueous_biodegradation_secondary_sedimentation_treatment_high as aqueous_biodegradation_secondary_sedimentation_treatment_high, b.aqueous_biodegradation_secondary_sedimentation_treatment_low as aqueous_biodegradation_secondary_sedimentation_treatment_low, b.aqueous_photolysis_half_life_high as aqueous_photolysis_half_life_high, b.aqueous_photolysis_half_life_low as aqueous_photolysis_half_life_low, b.photolysis_maximal_light_absorption_high as photolysis_maximal_light_absorption_high, b.photolysis_maximal_light_absorption_low as photolysis_maximal_light_absorption_low, b.photooxidation_half_life_in_water_high as photooxidation_half_life_in_water_high, b.photooxidation_half_life_in_water_low as photooxidation_half_life_in_water_low, b.photooxidative_half_life_in_air_high as photooxidative_half_life_in_air_high, b.photooxidative_half_life_in_air_low as photooxidative_half_life_in_air_low, b.reduction_half_life_high as reduction_half_life_high, b.reduction_half_life_low as reduction_half_life_low, b.primary_hydrolysis_half_life as primary_hydrolysis_half_life, b.hydrolysis_in_air_high as hydrolysis_in_air_high, b.hydrolysis_in_air_low as hydrolysis_in_air_low, b.cod as cod, b.bioconcentration_or_bioaccumulation as bioconcentration_or_bioaccumulation, b.other_harmful_effects as other_harmful_effects
@ -225,7 +232,7 @@
</if>
</select>
<insert id="insertMsds" parameterType="com.hbt.security.knowledge.base.msds.model.Msds" useGeneratedKeys="true" keyProperty="id">
<insert id="insertMsds" parameterType="Msds" useGeneratedKeys="true" keyProperty="id">
insert into msds (
chemical_cn,
other_chemical_cn,
@ -401,7 +408,7 @@
</insert>
<insert id="insertMsdsMaterial" parameterType="com.hbt.security.knowledge.base.msds.model.MsdsMaterial" useGeneratedKeys="true" keyProperty="id">
<insert id="insertMsdsMaterial" parameterType="MsdsMaterial" useGeneratedKeys="true" keyProperty="id">
insert into msds_material (
msds,
acute_toxicity,
@ -413,9 +420,9 @@
mice_oral_LD,
mice_percutaneous_LD,
mice_venous_LD,
mice_intraperitoneal_LD,
guinea_pigs_oral_LD,
guinea_pigs_percutaneous_LD,
mice_intraperitoneal_LD,
guinea_pigs_oral_LD,
guinea_pigs_percutaneous_LD,
guinea_pigs_subcutaneous_LD,
guinea_pigs_venous_LD,
guinea_pigs_intraperitoneal_LD,
@ -590,7 +597,7 @@
)
</insert>
<update id="updateMsdsMaterialByMsds" parameterType="com.hbt.security.knowledge.base.msds.model.MsdsMaterial">
<update id="updateMsdsMaterialByMsds" parameterType="MsdsMaterial">
update msds_material
set
acute_toxicity = #{material.acute_toxicity},
@ -686,7 +693,7 @@
where msds = #{material.msds}
</update>
<update id="updateMsds" parameterType="com.hbt.security.knowledge.base.msds.model.Msds">
<update id="updateMsds" parameterType="Msds">
update msds
set
chemical_cn = #{msds.chemicalCn},

View File

@ -0,0 +1,7 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
__ __ __ __
/ /_ / /_ / /_ ____ ___ _________/ /____
/ __ \/ __ \/ __/_____/ __ `__ \/ ___/ __ / ___/
/ / / / /_/ / /_/_____/ / / / / (__ ) /_/ (__ )
/_/ /_/_.___/\__/ /_/ /_/ /_/____/\__,_/____/

View File

@ -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}

View File

@ -0,0 +1,14 @@
# Tomcat
server:
port: 9527
# Spring
spring:
application:
# 应用名称
name: hbt-msds
profiles:
# 环境配置
active: dev
nacos:
ip: 119.45.158.12

View File

@ -0,0 +1,799 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.security.knowledge.base.msds.mapper.MsdsMapper">
<resultMap type="Msds" id="MsdsResult">
<result property="id" column="id" />
<result property="chemicalCn" column="chemical_cn" />
<result property="otherChemicalCn" column="other_chemical_cn" />
<result property="chemicalEn" column="chemical_en" />
<result property="otherChemicalEn" column="other_chemical_en" />
<result property="cas" column="cas" />
<result property="type" column="type" />
<result property="detonatorProfession1" column="detonator_profession1" />
<result property="detonatorProfession1Concentration" column="detonator_profession1_concentration" />
<result property="detonatorProfession1CasNo" column="detonator_profession1_CAS_No" />
<result property="detonatorProfession2" column="detonator_profession2" />
<result property="detonatorProfession2Concentration" column="detonator_profession2_concentration" />
<result property="detonatorProfession2CasNo" column="detonator_profession2_CAS_No" />
<result property="detonatorProfession3" column="detonator_profession3" />
<result property="detonatorProfession3Concentration" column="detonator_profession3_concentration" />
<result property="detonatorProfession3CasNo" column="detonator_profession3_CAS_No" />
<result property="detonatorProfession4" column="detonator_profession4" />
<result property="detonatorProfession4Concentration" column="detonator_profession4_concentration" />
<result property="detonatorProfession4CasNo" column="detonator_profession4_CAS_No" />
<result property="detonatorProfession5" column="detonator_profession5" />
<result property="detonatorProfession5Concentration" column="detonator_profession5_concentration" />
<result property="detonatorProfession5CasNo" column="detonator_profession5_CAS_No" />
<result property="hazardCategory" column="hazard_category" />
<result property="invasionRoute" column="Invasion_route" />
<result property="healthHazards" column="health_hazards" />
<result property="environmentalHazards" column="environmental_hazards" />
<result property="explosionHazard" column="explosion_hazard" />
<result property="skinContact" column="skin_contact" />
<result property="eyeContact" column="eye_contact" />
<result property="inhalation" column="inhalation" />
<result property="ingestion" column="ingestion" />
<result property="hazardCharacteristics" column="hazard_characteristics" />
<result property="hazardousCombustionProducts" column="hazardous_combustion_products" />
<result property="fireExtinguishingMethod" column="fire_extinguishing_method" />
<result property="fireFighting" column="fire_fighting" />
<result property="emergencyActions" column="emergency_actions" />
<result property="operationalConsiderations" column="operational_considerations" />
<result property="storagePrecautions" column="storage_precautions" />
<result property="mac" column="MAC" />
<result property="pcTwa" column="PC_TWA" />
<result property="pcStel" column="PC_STEL" />
<result property="tlvC" column="TLV_C" />
<result property="tlvTwa" column="TLV_TWA" />
<result property="tlvStel" column="TLV_STEL" />
<result property="monitoringMethods" column="monitoring_methods" />
<result property="engineeringControl" column="engineering_control" />
<result property="respiratoryProtection" column="respiratory_protection" />
<result property="eyeProtection" column="eye_protection" />
<result property="physicalProtection" column="physical_protection" />
<result property="handProtection" column="hand_protection" />
<result property="otherProtection" column="other_protection" />
<result property="appearanceAndShape" column="appearance_and_shape" />
<result property="phValue" column="ph_value" />
<result property="meltingPoint" column="melting_point" />
<result property="boilingPoint" column="boiling_point" />
<result property="relativeDensity" column="relative_density" />
<result property="relativeVaporDensity" column="relative_vapor_density" />
<result property="saturatedVaporPressure" column="saturated_vapor_pressure" />
<result property="heatOfCombustion" column="heat_of_combustion" />
<result property="critical" column="critical" />
<result property="criticalPressure" column="critical_pressure" />
<result property="octanolWaterPartitionCoefficient" column="octanol_water_partition_coefficient" />
<result property="flashPoint" column="flash_point" />
<result property="ignitionTemperature" column="Ignition_temperature" />
<result property="lowerExplosionLimit" column="lower_explosion_limit" />
<result property="upperExplosionLimit" column="upper_explosion_limit" />
<result property="solubility" column="solubility" />
<result property="mainUses" column="main_uses" />
<result property="stability" column="stability" />
<result property="forbiddenMixtures" column="forbidden_mixtures" />
<result property="avoidContactConditions" column="avoid_contact_conditions" />
<result property="aggregationHazards" column="aggregation_hazards" />
<result property="decompositionProducts" column="decomposition_products" />
<result property="natureOfWaste" column="nature_of_waste" />
<result property="disposalMethods" column="disposal_methods" />
<result property="deprecationConsiderations" column="deprecation_considerations" />
<result property="dangerousGoodsNumber" column="dangerous_goods_number" />
<result property="unNumber" column="un_number" />
<result property="packagingCategory" column="packaging_category" />
<result property="packagingLogo" column="pacselectMsdsListkaging_logo" />
<result property="packagingMethod" column="packaging_method" />
<result property="shippingPrecautions" column="shipping_precautions" />
<result property="regulatoryInformation" column="regulatory_information" />
<result property="criticalValue" column="critical_value" />
</resultMap>
<resultMap id="MsdsMsdsMaterialResult" type="Msds" extends="MsdsResult">
<collection property="material" notNullColumn="id" javaType="MsdsMaterial" resultMap="MsdsMaterialResult" />
</resultMap>
<resultMap type="MsdsMaterial" id="MsdsMaterialResult">
<result property="id" column="id" />
<result property="msds" column="msds" />
<result property="acuteToxicity" column="acute_toxicity" />
<result property="ratsOralLd" column="rats_oral_LD" />
<result property="ratsPercutaneousLd" column="rats_percutaneous_LD" />
<result property="ratsSubcutaneousLd" column="rats_subcutaneous_LD" />
<result property="ratsVenousLd" column="rats_venous_LD" />
<result property="ratsIntraperitonealLd" column="rats_intraperitoneal_LD" />
<result property="miceOralLd" column="mice_oral_LD" />
<result property="micePercutaneousLd" column="mice_percutaneous_LD" />
<result property="miceVenousLd" column="mice_venous_LD" />
<result property="miceIntraperitonealLd" column="mice_intraperitoneal_LD" />
<result property="guineaPigsOralLd" column="guinea_pigs_oral_LD" />
<result property="guineaPigsPercutaneousLd" column="guinea_pigs_percutaneous_LD" />
<result property="guineaPigsSubcutaneousLd" column="guinea_pigs_subcutaneous_LD" />
<result property="guineaPigsVenousLd" column="guinea_pigs_venous_LD" />
<result property="guineaPigsIntraperitonealLd" column="guinea_pigs_intraperitoneal_LD" />
<result property="rabbitOralLd" column="rabbit_oral_LD" />
<result property="rabbitPercutaneousLd" column="rabbit_percutaneous_LD" />
<result property="rabbitSubcutaneousLd" column="rabbit_subcutaneous_LD" />
<result property="rabbitVenousLd" column="rabbit_venous_LD" />
<result property="rabbitIntraperitonealLd" column="rabbit_intraperitoneal_LD" />
<result property="otherAnimalLd" column="other_animal_LD" />
<result property="ld" column="LD" />
<result property="ldl0" column="LDL0" />
<result property="tdl0" column="TDL0" />
<result property="ratsInhaleLc" column="rats_inhale_LC" />
<result property="ratsInhaleLcl0" column="rats_inhale_LCL0" />
<result property="miceInhaleLc" column="mice_inhale_LC" />
<result property="miceInhaleLcl0" column="mice_inhale_LCL0" />
<result property="miceInhaleTdl0" column="mice_inhale_TDL0" />
<result property="peopleInhaleLcl0" column="people_inhale_LCL0" />
<result property="peopleInhaleTdl0" column="people_inhale_TDL0" />
<result property="idlh" column="IDLH" />
<result property="otherAnimalLc50" column="other_animal_LC_50" />
<result property="otherAnimalLc100" column="other_animal_LC_100" />
<result property="otherAnimalLcl0" column="other_animal_LCL0" />
<result property="otherAnimalTcl0" column="other_animal_TCL0" />
<result property="rabbitPercutaneous" column="rabbit_percutaneous" />
<result property="rabbitMeridians" column="rabbit_meridians" />
<result property="ratsPercutaneous" column="rats_percutaneous" />
<result property="ratsMeridians" column="rats_meridians" />
<result property="guineaPigsPercutaneous" column="guinea_pigs_percutaneous" />
<result property="guineaPigsMeridians" column="guinea_pigs_meridians" />
<result property="menPercutaneous" column="men_percutaneous" />
<result property="menMeridians" column="men_meridians" />
<result property="humanPercutaneous" column="human_percutaneous" />
<result property="humanMeridians" column="human_meridians" />
<result property="subacuteVersusChronicToxicity" column="subacute_versus_chronic_toxicity" />
<result property="sensitization" column="sensitization" />
<result property="mutagenicity" column="mutagenicity" />
<result property="teratogenicity" column="teratogenicity" />
<result property="carcinogenicity" column="carcinogenicity" />
<result property="other" column="other" />
<result property="absoluteLethalAmountLd" column="absolute_lethal_amount_LD" />
<result property="halfLethalDoseLd" column="half_lethal_dose_LD" />
<result property="halfLethalConcentrationLc" column="half_lethal_concentration_LC" />
<result property="halfOfTheEffectConcentrationEc" column="half_of_the_effect_concentration_EC" />
<result property="halfOfTheInhibitoryConcentrationIc" column="half_of_the_inhibitory_concentration_IC" />
<result property="noActionDoseNoel" column="no_action_dose_NOEL" />
<result property="halfOfTheResistanceToLimitedAmountTlm" column="half_of_the_resistance_to_limited_amount_TLm" />
<result property="bod5" column="bod5" />
<result property="soilHalfLifeHigh" column="soil_half_life_high" />
<result property="soilHalfLifeLow" column="soil_half_life_low" />
<result property="airHalfLifeHigh" column="air_half_life_high" />
<result property="airHalfLifeLow" column="air_half_life_low" />
<result property="surfaceWaterHalfLifeHigh" column="surface_water_half_life_high" />
<result property="surfaceWaterHalfLifeLow" column="surface_water_half_life_low" />
<result property="groundwaterHalfLifeHigh" column="groundwater_half_life_high" />
<result property="groundwaterHalfLifeLow" column="groundwater_half_life_low" />
<result property="aqueousBiodegradationAerobicHigh" column="aqueous_biodegradation_aerobic_high" />
<result property="aqueousBiodegradationAerobicLow" column="aqueous_biodegradation_aerobic_low" />
<result property="aqueousBiodegradationAnaerobicsHigh" column="aqueous_biodegradation_anaerobics_high" />
<result property="aqueousBiodegradationAnaerobicsLow" column="aqueous_biodegradation_anaerobics_low" />
<result property="aqueousBiodegradationSecondarySedimentationTreatmentHigh" column="aqueous_biodegradation_secondary_sedimentation_treatment_high" />
<result property="aqueousBiodegradationSecondarySedimentationTreatmentLow" column="aqueous_biodegradation_secondary_sedimentation_treatment_low" />
<result property="aqueousPhotolysisHalfLifeHigh" column="aqueous_photolysis_half_life_high" />
<result property="aqueousPhotolysisHalfLifeLow" column="aqueous_photolysis_half_life_low" />
<result property="photolysisMaximalLightAbsorptionHigh" column="photolysis_maximal_light_absorption_high" />
<result property="photolysisMaximalLightAbsorptionLow" column="photolysis_maximal_light_absorption_low" />
<result property="photooxidationHalfLifeInWaterHigh" column="photooxidation_half_life_in_water_high" />
<result property="photooxidationHalfLifeInWaterLow" column="photooxidation_half_life_in_water_low" />
<result property="photooxidativeHalfLifeInAirHigh" column="photooxidative_half_life_in_air_high" />
<result property="photooxidativeHalfLifeInAirLow" column="photooxidative_half_life_in_air_low" />
<result property="reductionHalfLifeHigh" column="reduction_half_life_high" />
<result property="reductionHalfLifeLow" column="reduction_half_life_low" />
<result property="primaryHydrolysisHalfLife" column="primary_hydrolysis_half_life" />
<result property="hydrolysisInAirHigh" column="hydrolysis_in_air_high" />
<result property="hydrolysisInAirLow" column="hydrolysis_in_air_low" />
<result property="cod" column="cod" />
<result property="bioconcentrationOrBioaccumulation" column="bioconcentration_or_bioaccumulation" />
<result property="otherHarmfulEffects" column="other_harmful_effects" />
</resultMap>
<select id="selectMsdsById" parameterType="Integer" resultMap="MsdsMsdsMaterialResult">
select a.id, a.chemical_cn, a.other_chemical_cn, a.chemical_en, a.other_chemical_en, a.cas, a.type, a.detonator_profession1, a.detonator_profession1_concentration, a.detonator_profession1_CAS_No, a.detonator_profession2, a.detonator_profession2_concentration, a.detonator_profession2_CAS_No, a.detonator_profession3, a.detonator_profession3_concentration, a.detonator_profession3_CAS_No, a.detonator_profession4, a.detonator_profession4_concentration, a.detonator_profession4_CAS_No, a.detonator_profession5, a.detonator_profession5_concentration, a.detonator_profession5_CAS_No, a.hazard_category, a.Invasion_route, a.health_hazards, a.environmental_hazards, a.explosion_hazard, a.skin_contact, a.eye_contact, a.inhalation, a.ingestion, a.hazard_characteristics, a.hazardous_combustion_products, a.fire_extinguishing_method, a.fire_fighting, a.emergency_actions, a.operational_considerations, a.storage_precautions, a.MAC, a.PC_TWA, a.PC_STEL, a.TLV_C, a.TLV_TWA, a.TLV_STEL, a.monitoring_methods, a.engineering_control, a.respiratory_protection, a.eye_protection, a.physical_protection, a.hand_protection, a.other_protection, a.appearance_and_shape, a.ph_value, a.melting_point, a.boiling_point, a.relative_density, a.relative_vapor_density, a.saturated_vapor_pressure, a.heat_of_combustion, a.critical, a.critical_pressure, a.octanol_water_partition_coefficient, a.flash_point, a.Ignition_temperature, a.lower_explosion_limit, a.upper_explosion_limit, a.solubility, a.main_uses, a.stability, a.forbidden_mixtures, a.avoid_contact_conditions, a.aggregation_hazards, a.decomposition_products, a.nature_of_waste, a.disposal_methods, a.deprecation_considerations, a.dangerous_goods_number, a.un_number, a.packaging_category, a.packaging_logo, a.packaging_method, a.shipping_precautions, a.regulatory_information, a.critical_value,
b.id as id, b.msds as msds, b.acute_toxicity as acute_toxicity, b.rats_oral_LD as rats_oral_LD, b.rats_percutaneous_LD as rats_percutaneous_LD, b.rats_subcutaneous_LD as rats_subcutaneous_LD, b.rats_venous_LD as rats_venous_LD, b.rats_intraperitoneal_LD as rats_intraperitoneal_LD, b.mice_oral_LD as mice_oral_LD, b.mice_percutaneous_LD as mice_percutaneous_LD, b.mice_venous_LD as mice_venous_LD, b.mice_intraperitoneal_LD as mice_intraperitoneal_LD, b.guinea_pigs_oral_LD as guinea_pigs_oral_LD, b.guinea_pigs_percutaneous_LD as guinea_pigs_percutaneous_LD, b.guinea_pigs_subcutaneous_LD as guinea_pigs_subcutaneous_LD, b.guinea_pigs_venous_LD as guinea_pigs_venous_LD, b.guinea_pigs_intraperitoneal_LD as guinea_pigs_intraperitoneal_LD, b.rabbit_oral_LD as rabbit_oral_LD, b.rabbit_percutaneous_LD as rabbit_percutaneous_LD, b.rabbit_subcutaneous_LD as rabbit_subcutaneous_LD, b.rabbit_venous_LD as rabbit_venous_LD, b.rabbit_intraperitoneal_LD as rabbit_intraperitoneal_LD, b.other_animal_LD as other_animal_LD, b.LD as LD, b.LDL0 as LDL0, b.TDL0 as TDL0, b.rats_inhale_LC as rats_inhale_LC, b.rats_inhale_LCL0 as rats_inhale_LCL0, b.mice_inhale_LC as mice_inhale_LC, b.mice_inhale_LCL0 as mice_inhale_LCL0, b.mice_inhale_TDL0 as mice_inhale_TDL0, b.people_inhale_LCL0 as people_inhale_LCL0, b.people_inhale_TDL0 as people_inhale_TDL0, b.IDLH as IDLH, b.other_animal_LC_50 as other_animal_LC_50, b.other_animal_LC_100 as other_animal_LC_100, b.other_animal_LCL0 as other_animal_LCL0, b.other_animal_TCL0 as other_animal_TCL0, b.rabbit_percutaneous as rabbit_percutaneous, b.rabbit_meridians as rabbit_meridians, b.rats_percutaneous as rats_percutaneous, b.rats_meridians as rats_meridians, b.guinea_pigs_percutaneous as guinea_pigs_percutaneous, b.guinea_pigs_meridians as guinea_pigs_meridians, b.men_percutaneous as men_percutaneous, b.men_meridians as men_meridians, b.human_percutaneous as human_percutaneous, b.human_meridians as human_meridians, b.subacute_versus_chronic_toxicity as subacute_versus_chronic_toxicity, b.sensitization as sensitization, b.mutagenicity as mutagenicity, b.teratogenicity as teratogenicity, b.carcinogenicity as carcinogenicity, b.other as other, b.absolute_lethal_amount_LD as absolute_lethal_amount_LD, b.half_lethal_dose_LD as half_lethal_dose_LD, b.half_lethal_concentration_LC as half_lethal_concentration_LC, b.half_of_the_effect_concentration_EC as half_of_the_effect_concentration_EC, b.half_of_the_inhibitory_concentration_IC as half_of_the_inhibitory_concentration_IC, b.no_action_dose_NOEL as no_action_dose_NOEL, b.half_of_the_resistance_to_limited_amount_TLm as half_of_the_resistance_to_limited_amount_TLm, b.bod5 as bod5, b.soil_half_life_high as soil_half_life_high, b.soil_half_life_low as soil_half_life_low, b.air_half_life_high as air_half_life_high, b.air_half_life_low as air_half_life_low, b.surface_water_half_life_high as surface_water_half_life_high, b.surface_water_half_life_low as surface_water_half_life_low, b.groundwater_half_life_high as groundwater_half_life_high, b.groundwater_half_life_low as groundwater_half_life_low, b.aqueous_biodegradation_aerobic_high as aqueous_biodegradation_aerobic_high, b.aqueous_biodegradation_aerobic_low as aqueous_biodegradation_aerobic_low, b.aqueous_biodegradation_anaerobics_high as aqueous_biodegradation_anaerobics_high, b.aqueous_biodegradation_anaerobics_low as aqueous_biodegradation_anaerobics_low, b.aqueous_biodegradation_secondary_sedimentation_treatment_high as aqueous_biodegradation_secondary_sedimentation_treatment_high, b.aqueous_biodegradation_secondary_sedimentation_treatment_low as aqueous_biodegradation_secondary_sedimentation_treatment_low, b.aqueous_photolysis_half_life_high as aqueous_photolysis_half_life_high, b.aqueous_photolysis_half_life_low as aqueous_photolysis_half_life_low, b.photolysis_maximal_light_absorption_high as photolysis_maximal_light_absorption_high, b.photolysis_maximal_light_absorption_low as photolysis_maximal_light_absorption_low, b.photooxidation_half_life_in_water_high as photooxidation_half_life_in_water_high, b.photooxidation_half_life_in_water_low as photooxidation_half_life_in_water_low, b.photooxidative_half_life_in_air_high as photooxidative_half_life_in_air_high, b.photooxidative_half_life_in_air_low as photooxidative_half_life_in_air_low, b.reduction_half_life_high as reduction_half_life_high, b.reduction_half_life_low as reduction_half_life_low, b.primary_hydrolysis_half_life as primary_hydrolysis_half_life, b.hydrolysis_in_air_high as hydrolysis_in_air_high, b.hydrolysis_in_air_low as hydrolysis_in_air_low, b.cod as cod, b.bioconcentration_or_bioaccumulation as bioconcentration_or_bioaccumulation, b.other_harmful_effects as other_harmful_effects
from msds a
left join msds_material b on b.msds = a.id
where a.id = #{id}
</select>
<select id="selectMsdsByName" parameterType="String" resultMap="MsdsMsdsMaterialResult">
select a.id, a.chemical_cn, a.other_chemical_cn, a.chemical_en, a.other_chemical_en, a.cas, a.type, a.detonator_profession1, a.detonator_profession1_concentration, a.detonator_profession1_CAS_No, a.detonator_profession2, a.detonator_profession2_concentration, a.detonator_profession2_CAS_No, a.detonator_profession3, a.detonator_profession3_concentration, a.detonator_profession3_CAS_No, a.detonator_profession4, a.detonator_profession4_concentration, a.detonator_profession4_CAS_No, a.detonator_profession5, a.detonator_profession5_concentration, a.detonator_profession5_CAS_No, a.hazard_category, a.Invasion_route, a.health_hazards, a.environmental_hazards, a.explosion_hazard, a.skin_contact, a.eye_contact, a.inhalation, a.ingestion, a.hazard_characteristics, a.hazardous_combustion_products, a.fire_extinguishing_method, a.fire_fighting, a.emergency_actions, a.operational_considerations, a.storage_precautions, a.MAC, a.PC_TWA, a.PC_STEL, a.TLV_C, a.TLV_TWA, a.TLV_STEL, a.monitoring_methods, a.engineering_control, a.respiratory_protection, a.eye_protection, a.physical_protection, a.hand_protection, a.other_protection, a.appearance_and_shape, a.ph_value, a.melting_point, a.boiling_point, a.relative_density, a.relative_vapor_density, a.saturated_vapor_pressure, a.heat_of_combustion, a.critical, a.critical_pressure, a.octanol_water_partition_coefficient, a.flash_point, a.Ignition_temperature, a.lower_explosion_limit, a.upper_explosion_limit, a.solubility, a.main_uses, a.stability, a.forbidden_mixtures, a.avoid_contact_conditions, a.aggregation_hazards, a.decomposition_products, a.nature_of_waste, a.disposal_methods, a.deprecation_considerations, a.dangerous_goods_number, a.un_number, a.packaging_category, a.packaging_logo, a.packaging_method, a.shipping_precautions, a.regulatory_information, a.critical_value
from msds a
where a.chemical_cn = #{name}
</select>
<select id="selectMsdsList" resultMap="MsdsMsdsMaterialResult">
select a.id, a.chemical_cn, a.other_chemical_cn, a.chemical_en, a.other_chemical_en, a.cas, a.type, a.detonator_profession1, a.detonator_profession1_concentration, a.detonator_profession1_CAS_No, a.detonator_profession2, a.detonator_profession2_concentration, a.detonator_profession2_CAS_No, a.detonator_profession3, a.detonator_profession3_concentration, a.detonator_profession3_CAS_No, a.detonator_profession4, a.detonator_profession4_concentration, a.detonator_profession4_CAS_No, a.detonator_profession5, a.detonator_profession5_concentration, a.detonator_profession5_CAS_No, a.hazard_category, a.Invasion_route, a.health_hazards, a.environmental_hazards, a.explosion_hazard, a.skin_contact, a.eye_contact, a.inhalation, a.ingestion, a.hazard_characteristics, a.hazardous_combustion_products, a.fire_extinguishing_method, a.fire_fighting, a.emergency_actions, a.operational_considerations, a.storage_precautions, a.MAC, a.PC_TWA, a.PC_STEL, a.TLV_C, a.TLV_TWA, a.TLV_STEL, a.monitoring_methods, a.engineering_control, a.respiratory_protection, a.eye_protection, a.physical_protection, a.hand_protection, a.other_protection, a.appearance_and_shape, a.ph_value, a.melting_point, a.boiling_point, a.relative_density, a.relative_vapor_density, a.saturated_vapor_pressure, a.heat_of_combustion, a.critical, a.critical_pressure, a.octanol_water_partition_coefficient, a.flash_point, a.Ignition_temperature, a.lower_explosion_limit, a.upper_explosion_limit, a.solubility, a.main_uses, a.stability, a.forbidden_mixtures, a.avoid_contact_conditions, a.aggregation_hazards, a.decomposition_products, a.nature_of_waste, a.disposal_methods, a.deprecation_considerations, a.dangerous_goods_number, a.un_number, a.packaging_category, a.packaging_logo, a.packaging_method, a.shipping_precautions, a.regulatory_information, a.critical_value,
b.msds as msds, b.acute_toxicity as acute_toxicity, b.rats_oral_LD as rats_oral_LD, b.rats_percutaneous_LD as rats_percutaneous_LD, b.rats_subcutaneous_LD as rats_subcutaneous_LD, b.rats_venous_LD as rats_venous_LD, b.rats_intraperitoneal_LD as rats_intraperitoneal_LD, b.mice_oral_LD as mice_oral_LD, b.mice_percutaneous_LD as mice_percutaneous_LD, b.mice_venous_LD as mice_venous_LD, b.mice_intraperitoneal_LD as mice_intraperitoneal_LD, b.guinea_pigs_oral_LD as guinea_pigs_oral_LD, b.guinea_pigs_percutaneous_LD as guinea_pigs_percutaneous_LD, b.guinea_pigs_subcutaneous_LD as guinea_pigs_subcutaneous_LD, b.guinea_pigs_venous_LD as guinea_pigs_venous_LD, b.guinea_pigs_intraperitoneal_LD as guinea_pigs_intraperitoneal_LD, b.rabbit_oral_LD as rabbit_oral_LD, b.rabbit_percutaneous_LD as rabbit_percutaneous_LD, b.rabbit_subcutaneous_LD as rabbit_subcutaneous_LD, b.rabbit_venous_LD as rabbit_venous_LD, b.rabbit_intraperitoneal_LD as rabbit_intraperitoneal_LD, b.other_animal_LD as other_animal_LD, b.LD as LD, b.LDL0 as LDL0, b.TDL0 as TDL0, b.rats_inhale_LC as rats_inhale_LC, b.rats_inhale_LCL0 as rats_inhale_LCL0, b.mice_inhale_LC as mice_inhale_LC, b.mice_inhale_LCL0 as mice_inhale_LCL0, b.mice_inhale_TDL0 as mice_inhale_TDL0, b.people_inhale_LCL0 as people_inhale_LCL0, b.people_inhale_TDL0 as people_inhale_TDL0, b.IDLH as IDLH, b.other_animal_LC_50 as other_animal_LC_50, b.other_animal_LC_100 as other_animal_LC_100, b.other_animal_LCL0 as other_animal_LCL0, b.other_animal_TCL0 as other_animal_TCL0, b.rabbit_percutaneous as rabbit_percutaneous, b.rabbit_meridians as rabbit_meridians, b.rats_percutaneous as rats_percutaneous, b.rats_meridians as rats_meridians, b.guinea_pigs_percutaneous as guinea_pigs_percutaneous, b.guinea_pigs_meridians as guinea_pigs_meridians, b.men_percutaneous as men_percutaneous, b.men_meridians as men_meridians, b.human_percutaneous as human_percutaneous, b.human_meridians as human_meridians, b.subacute_versus_chronic_toxicity as subacute_versus_chronic_toxicity, b.sensitization as sensitization, b.mutagenicity as mutagenicity, b.teratogenicity as teratogenicity, b.carcinogenicity as carcinogenicity, b.other as other, b.absolute_lethal_amount_LD as absolute_lethal_amount_LD, b.half_lethal_dose_LD as half_lethal_dose_LD, b.half_lethal_concentration_LC as half_lethal_concentration_LC, b.half_of_the_effect_concentration_EC as half_of_the_effect_concentration_EC, b.half_of_the_inhibitory_concentration_IC as half_of_the_inhibitory_concentration_IC, b.no_action_dose_NOEL as no_action_dose_NOEL, b.half_of_the_resistance_to_limited_amount_TLm as half_of_the_resistance_to_limited_amount_TLm, b.bod5 as bod5, b.soil_half_life_high as soil_half_life_high, b.soil_half_life_low as soil_half_life_low, b.air_half_life_high as air_half_life_high, b.air_half_life_low as air_half_life_low, b.surface_water_half_life_high as surface_water_half_life_high, b.surface_water_half_life_low as surface_water_half_life_low, b.groundwater_half_life_high as groundwater_half_life_high, b.groundwater_half_life_low as groundwater_half_life_low, b.aqueous_biodegradation_aerobic_high as aqueous_biodegradation_aerobic_high, b.aqueous_biodegradation_aerobic_low as aqueous_biodegradation_aerobic_low, b.aqueous_biodegradation_anaerobics_high as aqueous_biodegradation_anaerobics_high, b.aqueous_biodegradation_anaerobics_low as aqueous_biodegradation_anaerobics_low, b.aqueous_biodegradation_secondary_sedimentation_treatment_high as aqueous_biodegradation_secondary_sedimentation_treatment_high, b.aqueous_biodegradation_secondary_sedimentation_treatment_low as aqueous_biodegradation_secondary_sedimentation_treatment_low, b.aqueous_photolysis_half_life_high as aqueous_photolysis_half_life_high, b.aqueous_photolysis_half_life_low as aqueous_photolysis_half_life_low, b.photolysis_maximal_light_absorption_high as photolysis_maximal_light_absorption_high, b.photolysis_maximal_light_absorption_low as photolysis_maximal_light_absorption_low, b.photooxidation_half_life_in_water_high as photooxidation_half_life_in_water_high, b.photooxidation_half_life_in_water_low as photooxidation_half_life_in_water_low, b.photooxidative_half_life_in_air_high as photooxidative_half_life_in_air_high, b.photooxidative_half_life_in_air_low as photooxidative_half_life_in_air_low, b.reduction_half_life_high as reduction_half_life_high, b.reduction_half_life_low as reduction_half_life_low, b.primary_hydrolysis_half_life as primary_hydrolysis_half_life, b.hydrolysis_in_air_high as hydrolysis_in_air_high, b.hydrolysis_in_air_low as hydrolysis_in_air_low, b.cod as cod, b.bioconcentration_or_bioaccumulation as bioconcentration_or_bioaccumulation, b.other_harmful_effects as other_harmful_effects
from msds a
left join msds_material b on b.msds = a.id
where 1=1
<if test="type == 0">
and a.chemical_cn like "%"#{selectValue}"%"
</if>
<if test="type == 1">
and a.other_chemical_cn like "%"#{selectValue}"%"
</if>
<if test="type == 2">
and a.chemical_en like "%"#{selectValue}"%"
</if>
<if test="type == 3">
and a.other_chemical_en like "%"#{selectValue}"%"
</if>
<if test="type == 4">
and a.cas like "%"#{selectValue}"%"
</if>
<if test="type == 5">
and a.dangerous_goods_number like "%"#{selectValue}"%"
</if>
</select>
<insert id="insertMsds" parameterType="Msds" useGeneratedKeys="true" keyProperty="id">
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}
)
<selectKey keyProperty="id" resultType="Integer" order="AFTER">
select LAST_INSERT_ID()
</selectKey>
</insert>
<insert id="insertMsdsMaterial" parameterType="MsdsMaterial" useGeneratedKeys="true" keyProperty="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}
)
</insert>
<update id="updateMsdsMaterialByMsds" parameterType="MsdsMaterial">
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>
<update id="updateMsds" parameterType="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}
</update>
<delete id="deleteMsdsById" parameterType="Integer">
delete from msds where id = #{id}
</delete>
<delete id="deleteMsdsMaterialByMsds" parameterType="Integer">
delete from msds_material where msds = #{id}
</delete>
<insert id="batchMsdsMaterial">
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
<foreach item="item" index="index" collection="list" separator=",">
( #{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})
</foreach>
</insert>
</mapper>

Binary file not shown.

View File

@ -0,0 +1,5 @@
#Generated by Maven
#Thu Feb 16 14:30:04 CST 2023
version=1.0-SNAPSHOT
groupId=com.hbt
artifactId=hbt-msds-biz

View File

@ -0,0 +1,7 @@
com\hbt\security\knowledge\base\msds\dao\MsdsDao.class
com\hbt\security\knowledge\base\msds\dao\impl\MsdsDaoImpl.class
com\hbt\security\knowledge\base\msds\MsdsApplication.class
com\hbt\security\knowledge\base\msds\service\impl\MsdsServiceImpl.class
com\hbt\security\knowledge\base\msds\controller\MsdsController.class
com\hbt\security\knowledge\base\msds\mapper\MsdsMapper.class
com\hbt\security\knowledge\base\msds\service\IMsdsService.class

View File

@ -0,0 +1,7 @@
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-biz\src\main\java\com\hbt\security\knowledge\base\msds\dao\impl\MsdsDaoImpl.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-biz\src\main\java\com\hbt\security\knowledge\base\msds\service\IMsdsService.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-biz\src\main\java\com\hbt\security\knowledge\base\msds\controller\MsdsController.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-biz\src\main\java\com\hbt\security\knowledge\base\msds\dao\MsdsDao.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-biz\src\main\java\com\hbt\security\knowledge\base\msds\mapper\MsdsMapper.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-biz\src\main\java\com\hbt\security\knowledge\base\msds\MsdsApplication.java
D:\hbtcode1\security-knowledge-base\hbt-msds\hbt-msds-biz\src\main\java\com\hbt\security\knowledge\base\msds\service\impl\MsdsServiceImpl.java

View File

@ -1,100 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>security-knowledge-base</artifactId>
<groupId>com.hbt</groupId>
<artifactId>security-knowledge-base</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<modules>
<module>hbt-msds-api</module>
<module>hbt-msds-biz</module>
</modules>
<artifactId>hbt-msds</artifactId>
<packaging>pom</packaging>
<dependencies>
<!-- SpringCloud Ailibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Ailibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Ailibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- jsits Common Security -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-security</artifactId>
</dependency>
<description>
hbt-common通用模块
</description>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- hbt Common DataSource -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-datasource</artifactId>
</dependency>
<!-- jsits Common Swagger -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-swagger</artifactId>
</dependency>
<!-- jsits Common log -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-log</artifactId>
</dependency>
<!-- Swagger -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
</project>

View File

@ -11,6 +11,7 @@
<modules>
<module>hbt-msds</module>
</modules>
<packaging>pom</packaging>
<properties>