linwe
2023-12-26 4066cec62ba5fff4472a4a0bf6533c94b6684b6e
报事报修步骤和评分表
18 files added
1160 ■■■■■ changed files
src/main/java/org/springblade/modules/task/controller/TaskRepairAppraiseController.java 126 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/controller/TaskRepairStepController.java 126 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/dto/TaskRepairAppraiseDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/dto/TaskRepairStepDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/entity/TaskRepairAppraiseEntity.java 85 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/entity/TaskRepairStepEntity.java 94 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/mapper/TaskRepairAppraiseMapper.java 59 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/mapper/TaskRepairAppraiseMapper.xml 52 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/mapper/TaskRepairStepMapper.java 58 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/mapper/TaskRepairStepMapper.xml 65 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/service/ITaskRepairAppraiseService.java 61 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/service/ITaskRepairStepService.java 60 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/service/impl/TaskRepairAppraiseServiceImpl.java 68 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/service/impl/TaskRepairStepServiceImpl.java 68 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/vo/TaskRepairAppraiseVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/vo/TaskRepairStepVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/wrapper/TaskRepairAppraiseWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/wrapper/TaskRepairStepWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/controller/TaskRepairAppraiseController.java
New file
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.task.entity.TaskRepairAppraiseEntity;
import org.springblade.modules.task.vo.TaskRepairAppraiseVO;
import org.springblade.modules.task.wrapper.TaskRepairAppraiseWrapper;
import org.springblade.modules.task.service.ITaskRepairAppraiseService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 报事报修评分表 控制器
 *
 * @author BladeX
 * @since 2023-12-26
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-task/taskRepairAppraise")
@Api(value = "报事报修评分表", tags = "报事报修评分表接口")
public class TaskRepairAppraiseController extends BladeController {
    private final ITaskRepairAppraiseService taskService;
    /**
     * 报事报修评分表 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入task")
    public R<TaskRepairAppraiseVO> detail(TaskRepairAppraiseEntity task) {
        TaskRepairAppraiseEntity detail = taskService.getOne(Condition.getQueryWrapper(task));
        return R.data(TaskRepairAppraiseWrapper.build().entityVO(detail));
    }
    /**
     * 报事报修评分表 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入task")
    public R<IPage<TaskRepairAppraiseVO>> list(TaskRepairAppraiseEntity task, Query query) {
        IPage<TaskRepairAppraiseEntity> pages = taskService.page(Condition.getPage(query), Condition.getQueryWrapper(task));
        return R.data(TaskRepairAppraiseWrapper.build().pageVO(pages));
    }
    /**
     * 报事报修评分表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入task")
    public R<IPage<TaskRepairAppraiseVO>> page(TaskRepairAppraiseVO task, Query query) {
        IPage<TaskRepairAppraiseVO> pages = taskService.selectTaskRepairAppraisePage(Condition.getPage(query), task);
        return R.data(pages);
    }
    /**
     * 报事报修评分表 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入task")
    public R save(@Valid @RequestBody TaskRepairAppraiseEntity task) {
        return R.status(taskService.save(task));
    }
    /**
     * 报事报修评分表 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入task")
    public R update(@Valid @RequestBody TaskRepairAppraiseEntity task) {
        return R.status(taskService.updateById(task));
    }
    /**
     * 报事报修评分表 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入task")
    public R submit(@Valid @RequestBody TaskRepairAppraiseEntity task) {
        return R.status(taskService.saveOrUpdate(task));
    }
    /**
     * 报事报修评分表 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(taskService.removeBatchByIds(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/task/controller/TaskRepairStepController.java
New file
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.task.entity.TaskRepairStepEntity;
import org.springblade.modules.task.vo.TaskRepairStepVO;
import org.springblade.modules.task.wrapper.TaskRepairStepWrapper;
import org.springblade.modules.task.service.ITaskRepairStepService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 报事报修事件步骤表 控制器
 *
 * @author BladeX
 * @since 2023-12-26
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-task/taskRepairStep")
@Api(value = "报事报修事件步骤表", tags = "报事报修事件步骤表接口")
public class TaskRepairStepController extends BladeController {
    private final ITaskRepairStepService taskService;
    /**
     * 报事报修事件步骤表 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入task")
    public R<TaskRepairStepVO> detail(TaskRepairStepEntity task) {
        TaskRepairStepEntity detail = taskService.getOne(Condition.getQueryWrapper(task));
        return R.data(TaskRepairStepWrapper.build().entityVO(detail));
    }
    /**
     * 报事报修事件步骤表 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入task")
    public R<IPage<TaskRepairStepVO>> list(TaskRepairStepEntity task, Query query) {
        IPage<TaskRepairStepEntity> pages = taskService.page(Condition.getPage(query), Condition.getQueryWrapper(task));
        return R.data(TaskRepairStepWrapper.build().pageVO(pages));
    }
    /**
     * 报事报修事件步骤表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入task")
    public R<IPage<TaskRepairStepVO>> page(TaskRepairStepVO task, Query query) {
        IPage<TaskRepairStepVO> pages = taskService.selectTaskRepairStepPage(Condition.getPage(query), task);
        return R.data(pages);
    }
    /**
     * 报事报修事件步骤表 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入task")
    public R save(@Valid @RequestBody TaskRepairStepEntity task) {
        return R.status(taskService.save(task));
    }
    /**
     * 报事报修事件步骤表 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入task")
    public R update(@Valid @RequestBody TaskRepairStepEntity task) {
        return R.status(taskService.updateById(task));
    }
    /**
     * 报事报修事件步骤表 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入task")
    public R submit(@Valid @RequestBody TaskRepairStepEntity task) {
        return R.status(taskService.saveOrUpdate(task));
    }
    /**
     * 报事报修事件步骤表 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(taskService.removeBatchByIds(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/task/dto/TaskRepairAppraiseDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.dto;
import org.springblade.modules.task.entity.TaskRepairAppraiseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 报事报修评分表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TaskRepairAppraiseDTO extends TaskRepairAppraiseEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/task/dto/TaskRepairStepDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.dto;
import org.springblade.modules.task.entity.TaskRepairStepEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 报事报修事件步骤表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TaskRepairStepDTO extends TaskRepairStepEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/task/entity/TaskRepairAppraiseEntity.java
New file
@@ -0,0 +1,85 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import liquibase.pro.packaged.I;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * 报事报修评分表对象 jczz_task_repair_appraise
 *
 * @author ${context.author}
 * @date 2023-12-26 17:57:06
 */
@ApiModel(value = "TaskRepairAppraise对象", description = "报事报修评分表")
@Data
@TableName("jczz_task_repair_appraise")
public class TaskRepairAppraiseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @ApiModelProperty(value = "主键ID", example = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 内容
     */
    @ApiModelProperty(value = "内容", example = "")
    @TableField("content")
    private String content;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 图片
     */
    @ApiModelProperty(value = "图片", example = "")
    @TableField("image_list")
    private String imageList;
    /**
     * 评分数
     */
    @ApiModelProperty(value = "评分数", example = "")
    @TableField("point")
    private String point;
    /**
     * 事件id
     */
    @ApiModelProperty(value = "事件id", example = "")
    @TableField("repair_id")
    private Long repairId;
}
src/main/java/org/springblade/modules/task/entity/TaskRepairStepEntity.java
New file
@@ -0,0 +1,94 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import java.util.Date;
/**
 * 报事报修事件步骤表 实体类
 *
 * @author BladeX
 * @since 2023-12-26
 */
@Data
@TableName("jczz_task_repair_step")
@ApiModel(value = "TaskRepairStep对象", description = "报事报修事件步骤表")
public class TaskRepairStepEntity   {
    private static final long serialVersionUID = 1L;
    /** id */
    @ApiModelProperty(value = "主键ID", example = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** 事件id */
    @ApiModelProperty(value = "事件id", example = "")
    @TableField("repair_id")
    private Long repairId;
    /** 内容 */
    @ApiModelProperty(value = "内容", example = "")
    @TableField("content")
    private String content;
    /** 图片 */
    @ApiModelProperty(value = "图片", example = "")
    @TableField("image_list")
    private String imageList;
    /** 名字 */
    @ApiModelProperty(value = "名字", example = "")
    @TableField("name")
    private String name;
    /** 手机 */
    @ApiModelProperty(value = "手机", example = "")
    @TableField("mobile")
    private String mobile;
    /** 用户id */
    @ApiModelProperty(value = "用户id", example = "")
    @TableField("user_id")
    private Long userId;
    /** 用户类型: 0:网格员 1:物业公司 */
    @ApiModelProperty(value = "用户类型: 0:网格员 1:物业公司", example = "")
    @TableField("people_type")
    private String peopleType;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", example = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;
    /** 更新时间 */
    @ApiModelProperty(value = "更新时间", example = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;
}
src/main/java/org/springblade/modules/task/mapper/TaskRepairAppraiseMapper.java
New file
@@ -0,0 +1,59 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.mapper;
import org.springblade.modules.task.dto.TaskRepairAppraiseDTO;
import org.springblade.modules.task.entity.TaskRepairAppraiseEntity;
import org.springblade.modules.task.vo.TaskRepairAppraiseVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 报事报修评分表 Mapper 接口
 *
 * @author BladeX
 * @since 2023-12-26
 */
public interface TaskRepairAppraiseMapper extends BaseMapper<TaskRepairAppraiseEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param task
     * @return
     */
    List<TaskRepairAppraiseVO> selectTaskRepairAppraisePage(IPage page, TaskRepairAppraiseVO task);
    /**
     * 查询报事报修评分表
     *
     * @param id 报事报修评分表ID
     * @return 报事报修评分表
     */
    public TaskRepairAppraiseDTO selectTaskRepairAppraiseById(Integer id);
    /**
     * 查询报事报修评分表列表
     *
     * @param taskRepairAppraiseDTO 报事报修评分表
     * @return 报事报修评分表集合
     */
    public List<TaskRepairAppraiseDTO> selectTaskRepairAppraiseList(TaskRepairAppraiseDTO taskRepairAppraiseDTO);
}
src/main/java/org/springblade/modules/task/mapper/TaskRepairAppraiseMapper.xml
New file
@@ -0,0 +1,52 @@
<?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="org.springblade.modules.task.mapper.TaskRepairAppraiseMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="taskResultMap" type="org.springblade.modules.task.entity.TaskRepairAppraiseEntity">
    </resultMap>
    <select id="selectTaskRepairAppraisePage" resultMap="taskResultMap">
        select * from jczz_task_repair_appraise where is_deleted = 0
    </select>
    <resultMap type="org.springblade.modules.task.dto.TaskRepairAppraiseDTO" id="TaskRepairAppraiseDTOResult">
        <result property="id"    column="id"    />
        <result property="content"    column="content"    />
        <result property="createTime"    column="create_time"    />
        <result property="imageList"    column="image_list"    />
        <result property="point"    column="point"    />
        <result property="repairId"    column="repair_id"    />
    </resultMap>
    <sql id="selectTaskRepairAppraise">
        select
            id,
            content,
            create_time,
            image_list,
            point,
            repair_id
        from
            jczz_task_repair_appraise
    </sql>
    <select id="selectTaskRepairAppraiseById" parameterType="int" resultMap="TaskRepairAppraiseDTOResult">
        <include refid="selectTaskRepairAppraise"/>
        where
        id = #{id}
    </select>
    <select id="selectTaskRepairAppraiseList" parameterType="org.springblade.modules.task.dto.TaskRepairAppraiseDTO" resultMap="TaskRepairAppraiseDTOResult">
        <include refid="selectTaskRepairAppraise"/>
        <where>
            <if test="id != null "> and id = #{id}</if>
            <if test="content != null  and content != ''"> and content = #{content}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="imageList != null  and imageList != ''"> and image_list = #{imageList}</if>
            <if test="point != null  and point != ''"> and point = #{point}</if>
            <if test="repairId != null "> and repair_id = #{repairId}</if>
        </where>
    </select>
</mapper>
src/main/java/org/springblade/modules/task/mapper/TaskRepairStepMapper.java
New file
@@ -0,0 +1,58 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.mapper;
import org.springblade.modules.task.dto.TaskRepairStepDTO;
import org.springblade.modules.task.entity.TaskRepairStepEntity;
import org.springblade.modules.task.vo.TaskRepairStepVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 报事报修事件步骤表 Mapper 接口
 *
 * @author BladeX
 * @since 2023-12-26
 */
public interface TaskRepairStepMapper extends BaseMapper<TaskRepairStepEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param task
     * @return
     */
    List<TaskRepairStepVO> selectTaskRepairStepPage(IPage page, TaskRepairStepVO task);
    /**
     * 查询报事报修事件步骤表
     *
     * @param id 报事报修事件步骤表ID
     * @return 报事报修事件步骤表
     */
    public TaskRepairStepDTO selectTaskRepairStepById(Integer id);
    /**
     * 查询报事报修事件步骤表列表
     *
     * @param taskRepairStepDTO 报事报修事件步骤表
     * @return 报事报修事件步骤表集合
     */
    public List<TaskRepairStepDTO> selectTaskRepairStepList(TaskRepairStepDTO taskRepairStepDTO);
}
src/main/java/org/springblade/modules/task/mapper/TaskRepairStepMapper.xml
New file
@@ -0,0 +1,65 @@
<?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="org.springblade.modules.task.mapper.TaskRepairStepMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="taskResultMap" type="org.springblade.modules.task.entity.TaskRepairStepEntity">
    </resultMap>
    <select id="selectTaskRepairStepPage" resultMap="taskResultMap">
        select * from jczz_task_repair_step where is_deleted = 0
    </select>
    <resultMap type="org.springblade.modules.task.dto.TaskRepairStepDTO" id="TaskRepairStepDTOResult">
        <result property="id"    column="id"    />
        <result property="repairId"    column="repair_id"    />
        <result property="content"    column="content"    />
        <result property="imageList"    column="image_list"    />
        <result property="name"    column="name"    />
        <result property="mobile"    column="mobile"    />
        <result property="userId"    column="user_id"    />
        <result property="peopleType"    column="people_type"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateTime"    column="update_time"    />
    </resultMap>
    <sql id="selectTaskRepairStep">
        select
            id,
            repair_id,
            content,
            image_list,
            name,
            mobile,
            user_id,
            people_type,
            create_time,
            update_time
        from
            jczz_task_repair_step
    </sql>
    <select id="selectTaskRepairStepById" parameterType="int" resultMap="TaskRepairStepDTOResult">
        <include refid="selectTaskRepairStep"/>
        where
        id = #{id}
    </select>
    <select id="selectTaskRepairStepList" parameterType="org.springblade.modules.task.dto.TaskRepairStepDTO" resultMap="TaskRepairStepDTOResult">
        <include refid="selectTaskRepairStep"/>
        <where>
            <if test="id != null "> and id = #{id}</if>
            <if test="repairId != null "> and repair_id = #{repairId}</if>
            <if test="content != null  and content != ''"> and content = #{content}</if>
            <if test="imageList != null  and imageList != ''"> and image_list = #{imageList}</if>
            <if test="name != null  and name != ''"> and name = #{name}</if>
            <if test="mobile != null  and mobile != ''"> and mobile = #{mobile}</if>
            <if test="userId != null "> and user_id = #{userId}</if>
            <if test="peopleType != null  and peopleType != ''"> and people_type = #{peopleType}</if>
            <if test="createTime != null "> and create_time = #{createTime}</if>
            <if test="updateTime != null "> and update_time = #{updateTime}</if>
        </where>
    </select>
</mapper>
src/main/java/org/springblade/modules/task/service/ITaskRepairAppraiseService.java
New file
@@ -0,0 +1,61 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.task.dto.TaskRepairAppraiseDTO;
import org.springblade.modules.task.entity.TaskRepairAppraiseEntity;
import org.springblade.modules.task.vo.TaskRepairAppraiseVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 报事报修评分表 服务类
 *
 * @author BladeX
 * @since 2023-12-26
 */
public interface ITaskRepairAppraiseService extends IService<TaskRepairAppraiseEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param task
     * @return
     */
    IPage<TaskRepairAppraiseVO> selectTaskRepairAppraisePage(IPage<TaskRepairAppraiseVO> page, TaskRepairAppraiseVO task);
    /**
     * 查询报事报修评分表
     *
     * @param id 报事报修评分表ID
     * @return 报事报修评分表
     */
    public TaskRepairAppraiseDTO selectTaskRepairAppraiseById(Integer id);
    /**
     * 查询报事报修评分表列表
     *
     * @param taskRepairAppraiseDTO 报事报修评分表
     * @return 报事报修评分表集合
     */
    public List<TaskRepairAppraiseDTO> selectTaskRepairAppraiseList(TaskRepairAppraiseDTO taskRepairAppraiseDTO);
}
src/main/java/org/springblade/modules/task/service/ITaskRepairStepService.java
New file
@@ -0,0 +1,60 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.task.dto.TaskRepairStepDTO;
import org.springblade.modules.task.entity.TaskRepairStepEntity;
import org.springblade.modules.task.vo.TaskRepairStepVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 报事报修事件步骤表 服务类
 *
 * @author BladeX
 * @since 2023-12-26
 */
public interface ITaskRepairStepService extends IService<TaskRepairStepEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param task
     * @return
     */
    IPage<TaskRepairStepVO> selectTaskRepairStepPage(IPage<TaskRepairStepVO> page, TaskRepairStepVO task);
    /**
     * 查询报事报修事件步骤表
     *
     * @param id 报事报修事件步骤表ID
     * @return 报事报修事件步骤表
     */
    public TaskRepairStepDTO selectTaskRepairStepById(Integer id);
    /**
     * 查询报事报修事件步骤表列表
     *
     * @param taskRepairStepDTO 报事报修事件步骤表
     * @return 报事报修事件步骤表集合
     */
    public List<TaskRepairStepDTO> selectTaskRepairStepList(TaskRepairStepDTO taskRepairStepDTO);
}
src/main/java/org/springblade/modules/task/service/impl/TaskRepairAppraiseServiceImpl.java
New file
@@ -0,0 +1,68 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.modules.task.dto.TaskRepairAppraiseDTO;
import org.springblade.modules.task.entity.TaskRepairAppraiseEntity;
import org.springblade.modules.task.vo.TaskRepairAppraiseVO;
import org.springblade.modules.task.mapper.TaskRepairAppraiseMapper;
import org.springblade.modules.task.service.ITaskRepairAppraiseService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 报事报修评分表 服务实现类
 *
 * @author BladeX
 * @since 2023-12-26
 */
@Service
public class TaskRepairAppraiseServiceImpl extends ServiceImpl<TaskRepairAppraiseMapper, TaskRepairAppraiseEntity> implements ITaskRepairAppraiseService {
    @Override
    public IPage<TaskRepairAppraiseVO> selectTaskRepairAppraisePage(IPage<TaskRepairAppraiseVO> page, TaskRepairAppraiseVO task) {
        return page.setRecords(baseMapper.selectTaskRepairAppraisePage(page, task));
    }
    /**
     * 查询报事报修评分表
     *
     * @param id 报事报修评分表ID
     * @return 报事报修评分表
     */
    @Override
    public TaskRepairAppraiseDTO selectTaskRepairAppraiseById(Integer id)
    {
        return this.baseMapper.selectTaskRepairAppraiseById(id);
    }
    /**
     * 查询报事报修评分表列表
     *
     * @param taskRepairAppraiseDTO 报事报修评分表
     * @return 报事报修评分表集合
     */
    @Override
    public List<TaskRepairAppraiseDTO> selectTaskRepairAppraiseList(TaskRepairAppraiseDTO taskRepairAppraiseDTO)
    {
        return this.baseMapper.selectTaskRepairAppraiseList(taskRepairAppraiseDTO);
    }
}
src/main/java/org/springblade/modules/task/service/impl/TaskRepairStepServiceImpl.java
New file
@@ -0,0 +1,68 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.modules.task.dto.TaskRepairStepDTO;
import org.springblade.modules.task.entity.TaskRepairStepEntity;
import org.springblade.modules.task.vo.TaskRepairStepVO;
import org.springblade.modules.task.mapper.TaskRepairStepMapper;
import org.springblade.modules.task.service.ITaskRepairStepService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 报事报修事件步骤表 服务实现类
 *
 * @author BladeX
 * @since 2023-12-26
 */
@Service
public class TaskRepairStepServiceImpl extends ServiceImpl<TaskRepairStepMapper, TaskRepairStepEntity> implements ITaskRepairStepService {
    @Override
    public IPage<TaskRepairStepVO> selectTaskRepairStepPage(IPage<TaskRepairStepVO> page, TaskRepairStepVO task) {
        return page.setRecords(baseMapper.selectTaskRepairStepPage(page, task));
    }
    /**
     * 查询报事报修事件步骤表
     *
     * @param id 报事报修事件步骤表ID
     * @return 报事报修事件步骤表
     */
    @Override
    public TaskRepairStepDTO selectTaskRepairStepById(Integer id)
    {
        return this.baseMapper.selectTaskRepairStepById(id);
    }
    /**
     * 查询报事报修事件步骤表列表
     *
     * @param taskRepairStepDTO 报事报修事件步骤表
     * @return 报事报修事件步骤表集合
     */
    @Override
    public List<TaskRepairStepDTO> selectTaskRepairStepList(TaskRepairStepDTO taskRepairStepDTO)
    {
        return this.baseMapper.selectTaskRepairStepList(taskRepairStepDTO);
    }
}
src/main/java/org/springblade/modules/task/vo/TaskRepairAppraiseVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.vo;
import org.springblade.modules.task.entity.TaskRepairAppraiseEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 报事报修评分表 视图实体类
 *
 * @author BladeX
 * @since 2023-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TaskRepairAppraiseVO extends TaskRepairAppraiseEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/task/vo/TaskRepairStepVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.vo;
import org.springblade.modules.task.entity.TaskRepairStepEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 报事报修事件步骤表 视图实体类
 *
 * @author BladeX
 * @since 2023-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TaskRepairStepVO extends TaskRepairStepEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/task/wrapper/TaskRepairAppraiseWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.task.entity.TaskRepairAppraiseEntity;
import org.springblade.modules.task.vo.TaskRepairAppraiseVO;
import java.util.Objects;
/**
 * 报事报修评分表 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-12-26
 */
public class TaskRepairAppraiseWrapper extends BaseEntityWrapper<TaskRepairAppraiseEntity, TaskRepairAppraiseVO>  {
    public static TaskRepairAppraiseWrapper build() {
        return new TaskRepairAppraiseWrapper();
     }
    @Override
    public TaskRepairAppraiseVO entityVO(TaskRepairAppraiseEntity task) {
        TaskRepairAppraiseVO taskVO = Objects.requireNonNull(BeanUtil.copy(task, TaskRepairAppraiseVO.class));
        //User createUser = UserCache.getUser(task.getCreateUser());
        //User updateUser = UserCache.getUser(task.getUpdateUser());
        //taskVO.setCreateUserName(createUser.getName());
        //taskVO.setUpdateUserName(updateUser.getName());
        return taskVO;
    }
}
src/main/java/org/springblade/modules/task/wrapper/TaskRepairStepWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.task.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.task.entity.TaskRepairStepEntity;
import org.springblade.modules.task.vo.TaskRepairStepVO;
import java.util.Objects;
/**
 * 报事报修事件步骤表 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-12-26
 */
public class TaskRepairStepWrapper extends BaseEntityWrapper<TaskRepairStepEntity, TaskRepairStepVO>  {
    public static TaskRepairStepWrapper build() {
        return new TaskRepairStepWrapper();
     }
    @Override
    public TaskRepairStepVO entityVO(TaskRepairStepEntity task) {
        TaskRepairStepVO taskVO = Objects.requireNonNull(BeanUtil.copy(task, TaskRepairStepVO.class));
        //User createUser = UserCache.getUser(task.getCreateUser());
        //User updateUser = UserCache.getUser(task.getUpdateUser());
        //taskVO.setCreateUserName(createUser.getName());
        //taskVO.setUpdateUserName(updateUser.getName());
        return taskVO;
    }
}