chenrui
2025-02-25 df3f154f020076d8b0075b92626f22e970f63702
设施和环境条件代码迁移
已修改5个文件
已添加4个文件
91 ■■■■ 文件已修改
cnas-require/src/main/java/com/ruoyi/require/controller/ForeignRegisterController.java 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/java/com/ruoyi/require/controller/InternalWastesController.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/java/com/ruoyi/require/controller/SupplierManagementController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/java/com/ruoyi/require/pojo/ForeignRegister.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/resources/mapper/ForeignRegisterMapper.xml 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/resources/mapper/InternalWastesMapper.xml 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/resources/static/foreign-register.docx 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/resources/static/internal-wastes.docx 补丁 | 查看 | 原始文档 | blame | 历史
cnas-require/src/main/java/com/ruoyi/require/controller/ForeignRegisterController.java
@@ -33,14 +33,13 @@
    /**
     * å¤–来人员登记分页查询
     * @param data
     * @param page
     * @param foreignRegister
     * @return
     */
    @ApiOperation(value = "外来人员登记分页查询")
    @PostMapping("/pageForeignRegister")
    public Result<IPage<ForeignRegisterDto>> pageForeignRegister(@RequestBody Map<String, Object> data) throws Exception {
        Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class);
        ForeignRegisterDto foreignRegister = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ForeignRegisterDto.class);
    @GetMapping("/pageForeignRegister")
    public Result<IPage<ForeignRegisterDto>> pageForeignRegister(Page page,ForeignRegisterDto foreignRegister) throws Exception {
        return Result.success(foreignRegisterService.pageForeignRegister(page, foreignRegister));
    }
@@ -69,7 +68,7 @@
     * @return
     */
    @ApiOperation(value = "外来人员登记删除")
    @GetMapping("/delForeignRegister")
    @DeleteMapping("/delForeignRegister")
    public Result delForeignRegister(Integer registerId){
        return Result.success(foreignRegisterService.removeById(registerId));
    }
@@ -89,8 +88,8 @@
     * @return
     */
    @ApiOperation(value = "导出外来人员登记")
    @PostMapping("/exportForeignRegister")
    public void exportForeignRegister(@RequestBody ForeignRegisterDto foreignRegister, HttpServletResponse response){
    @GetMapping("/exportForeignRegister")
    public void exportForeignRegister(ForeignRegisterDto foreignRegister, HttpServletResponse response){
        foreignRegisterService.exportForeignRegister(foreignRegister, response);
    }
cnas-require/src/main/java/com/ruoyi/require/controller/InternalWastesController.java
@@ -33,14 +33,13 @@
    /**
     * å®‰å…¨å†…务三废处理分页查询
     * @param data
     * @param page
     * @param internalWastes
     * @return
     */
    @ApiOperation(value = "安全内务三废处理分页查询")
    @PostMapping("/pageInternalWastes")
    public Result<IPage<InternalWastesDto>> pageInternalWastes(@RequestBody Map<String, Object> data) throws Exception {
        Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class);
        InternalWastes internalWastes = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InternalWastes.class);
    @GetMapping("/pageInternalWastes")
    public Result<IPage<InternalWastesDto>> pageInternalWastes(Page page,InternalWastes internalWastes) throws Exception {
        return Result.success(internalWastesService.pageInternalWastes(page, internalWastes));
    }
@@ -69,7 +68,7 @@
     * @return
     */
    @ApiOperation(value = "安全内务三废处理删除")
    @GetMapping("/delInternalWastes")
    @DeleteMapping("/delInternalWastes")
    public Result delInternalWastes(Integer wastesId){
        return Result.success(internalWastesService.delInternalWastes(wastesId));
    }
cnas-require/src/main/java/com/ruoyi/require/controller/SupplierManagementController.java
@@ -71,7 +71,7 @@
    }
    @ApiOperation("删除供应商")
    @PostMapping("/delSupplierManagement")
    @DeleteMapping("/delSupplierManagement")
    public Result delSupplierManagement(Integer supplierManagementId) {
        return Result.success(supplierManagementService.removeById(supplierManagementId));
    }
cnas-require/src/main/java/com/ruoyi/require/pojo/ForeignRegister.java
@@ -4,6 +4,7 @@
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
@@ -25,6 +26,7 @@
    private Integer registerId;
    @ApiModelProperty("登记如期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate registerDate;
    @ApiModelProperty("进入区域")
cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java
@@ -138,8 +138,6 @@
            detail.setIndex(index);
            index++;
        }
        // èŽ·å–è·¯å¾„
        InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-wastes.docx");
        Configure configure = Configure.builder()
cnas-require/src/main/resources/mapper/ForeignRegisterMapper.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.require.mapper.ForeignRegisterMapper">
    <!-- å¤–来人员登记分页查询 -->
    <select id="pageForeignRegister" resultType="com.ruoyi.require.dto.ForeignRegisterDto">
        select *
        from (select *
        from cnas_foreign_register
        <where>
            <if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''">
                register_date between #{beginDate} and #{endDate}
            </if>
        </where>
        order by create_time desc) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
    </select>
    <select id="getForeignRegisterList" resultType="com.ruoyi.require.dto.ForeignRegisterDto">
        select *
        from (select cfr.*,
        u1.signature_url accompanyingUrl,
        u2.signature_url approveUrl
        from cnas_foreign_register cfr
        left join user u1 on u1.id = cfr.accompanying_id
        left join user u2 on u2.id = cfr.approve_id
        <where>
            <if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''">
                cfr.register_date between #{beginDate} and #{endDate}
            </if>
        </where>
        order by cfr.create_time desc) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
    </select>
</mapper>
cnas-require/src/main/resources/mapper/InternalWastesMapper.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.require.mapper.InternalWastesMapper">
    <!-- å®‰å…¨å†…务三废登记列表 -->
    <select id="pageInternalWastes" resultType="com.ruoyi.require.dto.InternalWastesDto">
        select *
        from (select ciw.*,
              u1.name create_user_name,
              u2.name update_user_name
        from cnas_internal_wastes ciw
        left join user u1 on u1.id = ciw.create_user
        left join user u2 on u2.id = ciw.update_user
        order by ciw.create_time desc) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
    </select>
</mapper>
cnas-require/src/main/resources/static/foreign-register.docx
Binary files differ
cnas-require/src/main/resources/static/internal-wastes.docx
Binary files differ