liujie
2026-04-01 9059721e3f1ece2e291e2e80cdec3b3053606e9a
update
3个文件已修改
16 ■■■■■ 已修改文件
admin-server/src/main/java/com/estate/expert/admin/domain/common/request/OnDutyRequest.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-server/src/main/java/com/estate/expert/admin/io/processor/impl/business/ProjectProcessor.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-server/src/main/resources/mapper/OnDutyMapper.xml 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-server/src/main/java/com/estate/expert/admin/domain/common/request/OnDutyRequest.java
@@ -18,11 +18,10 @@
    Integer planId;
    @ApiModelProperty(value = "项目id")
    Integer projectId;
    Integer taskId;
    @ApiModelProperty(value = "时间区间")
    String time;
    @ApiModelProperty(value = "分页参数")
    PageReq pageReq;
admin-server/src/main/java/com/estate/expert/admin/io/processor/impl/business/ProjectProcessor.java
@@ -30,7 +30,7 @@
    protected final String[] getHeaders() {
        return new String[]{
                "项目名称", "项目类型", "用途类型", "委托方", "施工许可证号", "所属分公司", "施工单位", "项目经理", "手机号",
                "监理单位", "总监", "手机号_1", "建设单位", "项目负责人", "手机号_2", "省", "市", "区", "详细地址", "工程造价"
                "监理单位", "总监", "手机号_1", "建设单位", "项目负责人", "手机号_2", "省", "市", "区", "详细地址", "工程造价","项目规格"
        };
    }
@@ -46,6 +46,7 @@
        var dci = data.getDevelopmentCompanyInfo();
        var address = data.getAddressInfo();
        var cost = data.getProjectCost();
        var scale = data.getScale();
        return List.of(
                data.getName(),
                data.getType().getDesc(),
@@ -69,7 +70,8 @@
                address == null || address.getDistrict() == null ? "" : address.getDistrict(),
                address == null || address.getDetail() == null ? "" : address.getDetail(),
                cost == null ? "" : cost.toString()
                cost == null ? "" : cost.toString(),
                scale == null ? "" : scale.toString()
        );
    }
@@ -89,6 +91,7 @@
        project.setClient(client);
        project.setConstructionLicense(rowData.get(index++));
        project.setBranchCompany(rowData.get(index++));
        var cci = CompanyInfo.builder()
                .name(rowData.get(index++))
@@ -122,6 +125,8 @@
        // 解析工程造价,使用工具类处理空值和异常
        project.setProjectCost(ExcelParseUtils.parseInt(rowData.get(index++)));
        project.setScale(rowData.get(index++));
        return project;
    }
}
admin-server/src/main/resources/mapper/OnDutyMapper.xml
@@ -16,8 +16,8 @@
        <if test="request.planId != null">
            and t1.plan_id = #{request.planId}
        </if>
        <if test="request.projectId != null">
            and t1.project_id = #{request.projectId}
        <if test="request.taskId != null">
            and t1.check_task_id = #{request.taskId}
        </if>
        <if test="request.clientId != null">
            and t1.client_id = #{request.clientId}