diff --git a/src/main/java/com/zcloud/mapper/datasource/eightwork/HotworkGasMapper.java b/src/main/java/com/zcloud/mapper/datasource/eightwork/HotworkGasMapper.java new file mode 100644 index 0000000..848aea4 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/eightwork/HotworkGasMapper.java @@ -0,0 +1,59 @@ +package com.zcloud.mapper.datasource.eightwork; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:动火气体检测 + * 作者:luoxiaobao + * 时间:2021-09-18 + * 官网:www.zcloudchina.com + */ +public interface HotworkGasMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**列表 + * @param page + * @throws Exception + */ + List datalistPage(Page page); + + /**列表(全部) + * @param pd + * @throws Exception + */ + List listAll(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + void deleteAll(String[] ArrayDATA_IDS); + +} + diff --git a/src/main/java/com/zcloud/service/eightwork/HotworkGasService.java b/src/main/java/com/zcloud/service/eightwork/HotworkGasService.java new file mode 100644 index 0000000..3b36d8d --- /dev/null +++ b/src/main/java/com/zcloud/service/eightwork/HotworkGasService.java @@ -0,0 +1,59 @@ +package com.zcloud.service.eightwork; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +/** + * 说明:动火气体检测 + * 作者:luoxiaobao + * 时间:2021-09-18 + * 官网:www.zcloudchina.com + */ +public interface HotworkGasService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/main/java/com/zcloud/service/eightwork/impl/HotworkGasServiceImpl.java b/src/main/java/com/zcloud/service/eightwork/impl/HotworkGasServiceImpl.java new file mode 100644 index 0000000..2dfb96b --- /dev/null +++ b/src/main/java/com/zcloud/service/eightwork/impl/HotworkGasServiceImpl.java @@ -0,0 +1,83 @@ +package com.zcloud.service.eightwork.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.eightwork.HotworkGasMapper; +import com.zcloud.service.eightwork.HotworkGasService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 说明:动火气体检测 + * 作者:luoxiaobao + * 时间:2021-09-18 + * 官网:www.zcloudchina.com + */ +@Service +@Transactional //开启事物 +public class HotworkGasServiceImpl implements HotworkGasService { + + @Autowired + private HotworkGasMapper hotworkgasMapper; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + hotworkgasMapper.save(pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + hotworkgasMapper.delete(pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + hotworkgasMapper.edit(pd); + } + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception{ + return hotworkgasMapper.datalistPage(page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception{ + return hotworkgasMapper.listAll(pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return hotworkgasMapper.findById(pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + hotworkgasMapper.deleteAll(ArrayDATA_IDS); + } + +} + diff --git a/src/main/resources/mybatis/datasource/eightwork/HighWorkMapper.xml b/src/main/resources/mybatis/datasource/eightwork/HotWorkMapper.xml similarity index 96% rename from src/main/resources/mybatis/datasource/eightwork/HighWorkMapper.xml rename to src/main/resources/mybatis/datasource/eightwork/HotWorkMapper.xml index e4d4682..fd452ec 100644 --- a/src/main/resources/mybatis/datasource/eightwork/HighWorkMapper.xml +++ b/src/main/resources/mybatis/datasource/eightwork/HotWorkMapper.xml @@ -48,7 +48,8 @@ f.MONITOR_DEPARTMENT_ID, f.MONITOR_USER_ID, f.ACCEPT_DEPARTMENT_ID, - f.ACCEPT_USER_ID + f.ACCEPT_USER_ID, + f.ANALYZE_TIME @@ -93,7 +94,8 @@ MONITOR_DEPARTMENT_ID, MONITOR_USER_ID, ACCEPT_DEPARTMENT_ID, - ACCEPT_USER_ID + ACCEPT_USER_ID, + ANALYZE_TIME @@ -138,7 +140,8 @@ #{MONITOR_DEPARTMENT_ID}, #{MONITOR_USER_ID}, #{ACCEPT_DEPARTMENT_ID}, - #{ACCEPT_USER_ID} + #{ACCEPT_USER_ID}, + #{ANALYZE_TIME} @@ -212,7 +215,8 @@ MONITOR_DEPARTMENT_ID = #{MONITOR_DEPARTMENT_ID}, MONITOR_USER_ID = #{MONITOR_USER_ID}, ACCEPT_DEPARTMENT_ID = #{ACCEPT_DEPARTMENT_ID}, - ACCEPT_USER_ID = #{ACCEPT_USER_ID} + ACCEPT_USER_ID = #{ACCEPT_USER_ID}, + ANALYZE_TIME=#{ANALYZE_TIME} where HIGHWORK_ID = #{HIGHWORK_ID} diff --git a/src/main/resources/mybatis/datasource/eightwork/HotworkGasMapper.xml b/src/main/resources/mybatis/datasource/eightwork/HotworkGasMapper.xml new file mode 100644 index 0000000..a07b887 --- /dev/null +++ b/src/main/resources/mybatis/datasource/eightwork/HotworkGasMapper.xml @@ -0,0 +1,142 @@ + + + + + + + BUS_HOTWORKGAS + + + + + SYS_DICTIONARIES + + + + + f.HOTWORK_ID, + f.ANALYZE_TIME, + f.ANALYZE_PLACE, + f.ANALYZE_RESULT, + f.ANALYZE_USER, + f.ISDELETE, + f.HOTWORKGAS_ID, + f.ANALYZE_PATH + + + + + HOTWORK_ID, + ANALYZE_TIME, + ANALYZE_PLACE, + ANALYZE_RESULT, + ANALYZE_USER, + ISDELETE, + HOTWORKGAS_ID, + ANALYZE_PATH + + + + + #{HOTWORK_ID}, + #{ANALYZE_TIME}, + #{ANALYZE_PLACE}, + #{ANALYZE_RESULT}, + #{ANALYZE_USER}, + #{ISDELETE}, + #{HOTWORKGAS_ID}, + #{ANALYZE_PATH} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1' + where + HOTWORKGAS_ID = #{HOTWORKGAS_ID} + + + + + update + + set + HOTWORK_ID = #{HOTWORK_ID}, + ANALYZE_TIME = #{ANALYZE_TIME}, + ANALYZE_PLACE = #{ANALYZE_PLACE}, + ANALYZE_RESULT = #{ANALYZE_RESULT}, + ANALYZE_USER = #{ANALYZE_USER}, + ISDELETE = #{ISDELETE}, + HOTWORKGAS_ID = HOTWORKGAS_ID, + ANALYZE_PATH = #{ANALYZE_PATH} + where + HOTWORKGAS_ID = #{HOTWORKGAS_ID} + + + + + + + + + + + + + + update + + set + ISDELETE = '1' + where + HOTWORKGAS_ID in + + #{item} + + + +