Merge remote-tracking branch 'origin/main'

This commit is contained in:
fl 2025-07-23 21:38:04 +08:00
commit 743fd18c16
13 changed files with 1057 additions and 1 deletions

View File

@ -58,7 +58,12 @@ public class ParamSecureHandler implements AsyncHandlerInterceptor {
/** /**
* 越权白名单路径->指定的路径 * 越权白名单路径->指定的路径
*/ */
public static String[] WHITE_URLS= new String[]{"/sys/sysLog/addLogs","/largeScreen/constrDisplay/pushImageData"}; public static String[] WHITE_URLS= new String[]{
"/sys/sysLog/addLogs",
"/largeScreen/constrDisplay/pushImageData",
"/largeScreen/tb_project_new/list",
"/largeScreen/tb_project_progress_new/list"
};
/** /**
* 越权 大屏路径拦截-指定的前缀拦截 * 越权 大屏路径拦截-指定的前缀拦截

View File

@ -0,0 +1,104 @@
package com.securitycontrol.screen.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.securitycontrol.common.core.web.controller.BaseController;
import com.securitycontrol.common.core.web.domain.AjaxResult;
import com.securitycontrol.common.core.web.page.TableDataInfo;
import com.securitycontrol.common.log.annotation.Log;
import com.securitycontrol.common.log.enums.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.securitycontrol.screen.domain.ProjectNew;
import com.securitycontrol.screen.service.IProjectNewService;
/**
* 工程信息Controller
*
* @author xsheng
* @date 2025-07-23
*/
@Api(tags = "工程信息接口")
@RestController
@RequestMapping("/largeScreen/tb_project_new")
public class ProjectNewController extends BaseController {
@Autowired
private IProjectNewService projectNewService;
/**
* 查询工程信息列表
*/
@ApiOperation(value = "查询工程信息列表")
//@RequiresPermissions("screen:new:list")
@GetMapping("/list")
public TableDataInfo list(ProjectNew projectNew) {
startPage();
List<ProjectNew> list = projectNewService.selectProjectNewList(projectNew);
return getDataTable(list);
}
/**
* 获取工程信息详细信息
*/
@ApiOperation(value = "获取工程信息详细信息")
//@RequiresPermissions("screen:new:query")
@GetMapping(value = "/{proId}")
public AjaxResult getInfo(@PathVariable("proId") String proId) {
return success(projectNewService.selectProjectNewByProId(proId));
}
/**
* 新增工程信息
*/
@ApiOperation(value = "新增工程信息")
//@PreventRepeatSubmit
//@RequiresPermissions("screen:new:add")
@Log(title = "实时监测", menu = "作业环境->实时监测", grade = OperationType.QUERY_BUSINESS, details = "查询实时检测", type = "业务日志")
@PostMapping
public AjaxResult add(@RequestBody ProjectNew projectNew) {
try {
return toAjax(projectNewService.insertProjectNew(projectNew));
} catch (Exception e) {
return error(e.getMessage());
}
}
/**
* 修改工程信息
*/
@ApiOperation(value = "修改工程信息")
//@PreventRepeatSubmit
//@RequiresPermissions("screen:new:edit")
@Log(title = "实时监测", menu = "作业环境->实时监测", grade = OperationType.QUERY_BUSINESS, details = "查询实时检测", type = "业务日志")
@PostMapping("/edit")
public AjaxResult edit(@RequestBody ProjectNew projectNew) {
try {
return toAjax(projectNewService.updateProjectNew(projectNew));
} catch (Exception e) {
return error(e.getMessage());
}
}
/**
* 删除工程信息
*/
@ApiOperation(value = "删除工程信息")
//@PreventRepeatSubmit
//@RequiresPermissions("screen:new:remove")
@Log(title = "实时监测", menu = "作业环境->实时监测", grade = OperationType.QUERY_BUSINESS, details = "查询实时检测", type = "业务日志")
@PostMapping("/del/{proIds}")
public AjaxResult remove(@PathVariable String[] proIds) {
return toAjax(projectNewService.deleteProjectNewByProIds(proIds));
}
}

View File

@ -0,0 +1,101 @@
package com.securitycontrol.screen.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.securitycontrol.common.core.web.controller.BaseController;
import com.securitycontrol.common.core.web.domain.AjaxResult;
import com.securitycontrol.common.core.web.page.TableDataInfo;
import com.securitycontrol.common.log.annotation.Log;
import com.securitycontrol.common.log.enums.OperationType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.securitycontrol.screen.domain.ProjectProgressNew;
import com.securitycontrol.screen.service.IProjectProgressNewService;
/**
* 工程进度Controller
*
* @author xsheng
* @date 2025-07-23
*/
@Api(tags = "工程进度接口")
@RestController
@RequestMapping("/largeScreen/tb_project_progress_new")
public class ProjectProgressNewController extends BaseController {
@Autowired
private IProjectProgressNewService projectProgressNewService;
/**
* 查询工程进度列表
*/
@ApiOperation(value = "查询工程进度列表")
//@RequiresPermissions("screen:new:list")
@GetMapping("/list")
public TableDataInfo list(ProjectProgressNew projectProgressNew) {
startPage();
List<ProjectProgressNew> list = projectProgressNewService.selectProjectProgressNewList(projectProgressNew);
return getDataTable(list);
}
/**
* 获取工程进度详细信息
*/
@ApiOperation(value = "获取工程进度详细信息")
//@RequiresPermissions("screen:new:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(projectProgressNewService.selectProjectProgressNewById(id));
}
/**
* 新增工程进度
*/
@ApiOperation(value = "新增工程进度")
//@PreventRepeatSubmit
//@RequiresPermissions("screen:new:add")
@Log(title = "实时监测", menu = "作业环境->实时监测", grade = OperationType.QUERY_BUSINESS, details = "查询实时检测", type = "业务日志")
@PostMapping
public AjaxResult add(@RequestBody ProjectProgressNew projectProgressNew) {
try {
return toAjax(projectProgressNewService.insertProjectProgressNew(projectProgressNew));
} catch (Exception e) {
return error(e.getMessage());
}
}
/**
* 修改工程进度
*/
@ApiOperation(value = "修改工程进度")
//@PreventRepeatSubmit
//@RequiresPermissions("screen:new:edit")
@Log(title = "实时监测", menu = "作业环境->实时监测", grade = OperationType.QUERY_BUSINESS, details = "查询实时检测", type = "业务日志")
@PostMapping("/edit")
public AjaxResult edit(@RequestBody ProjectProgressNew projectProgressNew) {
try {
return toAjax(projectProgressNewService.updateProjectProgressNew(projectProgressNew));
} catch (Exception e) {
return error(e.getMessage());
}
}
/**
* 删除工程进度
*/
@ApiOperation(value = "删除工程进度")
//@PreventRepeatSubmit
//@RequiresPermissions("screen:new:remove")
@Log(title = "实时监测", menu = "作业环境->实时监测", grade = OperationType.QUERY_BUSINESS, details = "查询实时检测", type = "业务日志")
@PostMapping("/del/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(projectProgressNewService.deleteProjectProgressNewByIds(ids));
}
}

View File

@ -0,0 +1,86 @@
package com.securitycontrol.screen.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.securitycontrol.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
/**
* 工程信息对象 tb_project_new
*
* @author xsheng
* @date 2025-07-23
*/
@Data
@ToString
public class ProjectNew extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
private String proId;
/** 单项工程编码 */
@ApiModelProperty(value = "单项工程编码")
private String signCode;
/** 标段工程编码 */
@ApiModelProperty(value = "标段工程编码")
private String bidCode;
/** 工程编码 */
@ApiModelProperty(value = "工程编码")
private String proCode;
/** 工程名称 */
@ApiModelProperty(value = "工程名称")
private String proName;
/** 工程状态 */
@ApiModelProperty(value = "工程状态")
private String status;
/** 计划开始时间 */
@ApiModelProperty(value = "计划开始时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date planStartTime;
/** 计划结束时间 */
@ApiModelProperty(value = "计划结束时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date planEndTime;
/** 实际开始时间 */
@ApiModelProperty(value = "实际开始时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date startTime;
/** 实际竣工时间 */
@ApiModelProperty(value = "实际竣工时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date endTime;
/** 偏差天数 */
@ApiModelProperty(value = "偏差天数")
private String diffDay;
/** 工程成本预算 */
@ApiModelProperty(value = "工程成本预算")
private String planCost;
/** 实际成本 */
@ApiModelProperty(value = "实际成本")
private BigDecimal actualCost;
/** 风险等级 */
@ApiModelProperty(value = "风险等级")
private String riskLevel;
private String suggestion;
private String taskName;
}

View File

@ -0,0 +1,86 @@
package com.securitycontrol.screen.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.securitycontrol.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
/**
* 工程进度对象 tb_project_progress_new
*
* @author xsheng
* @date 2025-07-23
*/
@Data
@ToString
public class ProjectProgressNew extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键id */
private Long id;
/** 工程id */
@ApiModelProperty(value = "工程id")
private String projectId;
/** 工程名称 */
@ApiModelProperty(value = "工程名称")
private String projectName;
/** 任务编码 */
@ApiModelProperty(value = "任务编码")
private String taskCode;
/** 任务名称 */
@ApiModelProperty(value = "任务名称")
private String taskName;
/** 计划开始时间 */
@ApiModelProperty(value = "计划开始时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date planStartTime;
/** 计划完成时间 */
@ApiModelProperty(value = "计划完成时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date planEndTime;
/** 实际开始时间 */
@ApiModelProperty(value = "实际开始时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date actualStartTime;
/** 实际完成时间 */
@ApiModelProperty(value = "实际完成时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date actualEndTime;
/** 进度偏差 */
@ApiModelProperty(value = "进度偏差")
private String processDiff;
/** 总工程量 */
@ApiModelProperty(value = "总工程量")
private String totalEffort;
/** 已完成工程量 */
@ApiModelProperty(value = "已完成工程量")
private String completeEffort;
/** 延误因素 */
@ApiModelProperty(value = "延误因素")
private String delayActor;
/** 资源匹配状态 */
@ApiModelProperty(value = "资源匹配状态")
private String resourceMatchStatus;
/** 关键路径任务标识(是 / 否) */
private String keyPathFlag;
}

View File

@ -0,0 +1,60 @@
package com.securitycontrol.screen.mapper;
import java.util.List;
import com.securitycontrol.screen.domain.ProjectNew;
/**
* 工程信息Mapper接口
*
* @author xsheng
* @date 2025-07-23
*/
public interface ProjectNewMapper {
/**
* 查询工程信息
*
* @param proId 工程信息主键
* @return 工程信息
*/
public ProjectNew selectProjectNewByProId(String proId);
/**
* 查询工程信息列表
*
* @param projectNew 工程信息
* @return 工程信息集合
*/
public List<ProjectNew> selectProjectNewList(ProjectNew projectNew);
/**
* 新增工程信息
*
* @param projectNew 工程信息
* @return 结果
*/
public int insertProjectNew(ProjectNew projectNew);
/**
* 修改工程信息
*
* @param projectNew 工程信息
* @return 结果
*/
public int updateProjectNew(ProjectNew projectNew);
/**
* 删除工程信息
*
* @param proId 工程信息主键
* @return 结果
*/
public int deleteProjectNewByProId(String proId);
/**
* 批量删除工程信息
*
* @param proIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteProjectNewByProIds(String[] proIds);
}

View File

@ -0,0 +1,60 @@
package com.securitycontrol.screen.mapper;
import java.util.List;
import com.securitycontrol.screen.domain.ProjectProgressNew;
/**
* 工程进度Mapper接口
*
* @author xsheng
* @date 2025-07-23
*/
public interface ProjectProgressNewMapper {
/**
* 查询工程进度
*
* @param id 工程进度主键
* @return 工程进度
*/
public ProjectProgressNew selectProjectProgressNewById(Long id);
/**
* 查询工程进度列表
*
* @param projectProgressNew 工程进度
* @return 工程进度集合
*/
public List<ProjectProgressNew> selectProjectProgressNewList(ProjectProgressNew projectProgressNew);
/**
* 新增工程进度
*
* @param projectProgressNew 工程进度
* @return 结果
*/
public int insertProjectProgressNew(ProjectProgressNew projectProgressNew);
/**
* 修改工程进度
*
* @param projectProgressNew 工程进度
* @return 结果
*/
public int updateProjectProgressNew(ProjectProgressNew projectProgressNew);
/**
* 删除工程进度
*
* @param id 工程进度主键
* @return 结果
*/
public int deleteProjectProgressNewById(Long id);
/**
* 批量删除工程进度
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteProjectProgressNewByIds(Long[] ids);
}

View File

@ -0,0 +1,60 @@
package com.securitycontrol.screen.service;
import java.util.List;
import com.securitycontrol.screen.domain.ProjectNew;
/**
* 工程信息Service接口
*
* @author xsheng
* @date 2025-07-23
*/
public interface IProjectNewService {
/**
* 查询工程信息
*
* @param proId 工程信息主键
* @return 工程信息
*/
public ProjectNew selectProjectNewByProId(String proId);
/**
* 查询工程信息列表
*
* @param projectNew 工程信息
* @return 工程信息集合
*/
public List<ProjectNew> selectProjectNewList(ProjectNew projectNew);
/**
* 新增工程信息
*
* @param projectNew 工程信息
* @return 结果
*/
public int insertProjectNew(ProjectNew projectNew);
/**
* 修改工程信息
*
* @param projectNew 工程信息
* @return 结果
*/
public int updateProjectNew(ProjectNew projectNew);
/**
* 批量删除工程信息
*
* @param proIds 需要删除的工程信息主键集合
* @return 结果
*/
public int deleteProjectNewByProIds(String[] proIds);
/**
* 删除工程信息信息
*
* @param proId 工程信息主键
* @return 结果
*/
public int deleteProjectNewByProId(String proId);
}

View File

@ -0,0 +1,60 @@
package com.securitycontrol.screen.service;
import java.util.List;
import com.securitycontrol.screen.domain.ProjectProgressNew;
/**
* 工程进度Service接口
*
* @author xsheng
* @date 2025-07-23
*/
public interface IProjectProgressNewService {
/**
* 查询工程进度
*
* @param id 工程进度主键
* @return 工程进度
*/
public ProjectProgressNew selectProjectProgressNewById(Long id);
/**
* 查询工程进度列表
*
* @param projectProgressNew 工程进度
* @return 工程进度集合
*/
public List<ProjectProgressNew> selectProjectProgressNewList(ProjectProgressNew projectProgressNew);
/**
* 新增工程进度
*
* @param projectProgressNew 工程进度
* @return 结果
*/
public int insertProjectProgressNew(ProjectProgressNew projectProgressNew);
/**
* 修改工程进度
*
* @param projectProgressNew 工程进度
* @return 结果
*/
public int updateProjectProgressNew(ProjectProgressNew projectProgressNew);
/**
* 批量删除工程进度
*
* @param ids 需要删除的工程进度主键集合
* @return 结果
*/
public int deleteProjectProgressNewByIds(Long[] ids);
/**
* 删除工程进度信息
*
* @param id 工程进度主键
* @return 结果
*/
public int deleteProjectProgressNewById(Long id);
}

View File

@ -0,0 +1,86 @@
package com.securitycontrol.screen.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.securitycontrol.screen.mapper.ProjectNewMapper;
import com.securitycontrol.screen.domain.ProjectNew;
import com.securitycontrol.screen.service.IProjectNewService;
/**
* 工程信息Service业务层处理
*
* @author xsheng
* @date 2025-07-23
*/
@Service
public class ProjectNewServiceImpl implements IProjectNewService {
@Autowired
private ProjectNewMapper projectNewMapper;
/**
* 查询工程信息
*
* @param proId 工程信息主键
* @return 工程信息
*/
@Override
public ProjectNew selectProjectNewByProId(String proId) {
return projectNewMapper.selectProjectNewByProId(proId);
}
/**
* 查询工程信息列表
*
* @param projectNew 工程信息
* @return 工程信息
*/
@Override
public List<ProjectNew> selectProjectNewList(ProjectNew projectNew) {
return projectNewMapper.selectProjectNewList(projectNew);
}
/**
* 新增工程信息
*
* @param projectNew 工程信息
* @return 结果
*/
@Override
public int insertProjectNew(ProjectNew projectNew) {
return projectNewMapper.insertProjectNew(projectNew);
}
/**
* 修改工程信息
*
* @param projectNew 工程信息
* @return 结果
*/
@Override
public int updateProjectNew(ProjectNew projectNew) {
return projectNewMapper.updateProjectNew(projectNew);
}
/**
* 批量删除工程信息
*
* @param proIds 需要删除的工程信息主键
* @return 结果
*/
@Override
public int deleteProjectNewByProIds(String[] proIds) {
return projectNewMapper.deleteProjectNewByProIds(proIds);
}
/**
* 删除工程信息信息
*
* @param proId 工程信息主键
* @return 结果
*/
@Override
public int deleteProjectNewByProId(String proId) {
return projectNewMapper.deleteProjectNewByProId(proId);
}
}

View File

@ -0,0 +1,86 @@
package com.securitycontrol.screen.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.securitycontrol.screen.mapper.ProjectProgressNewMapper;
import com.securitycontrol.screen.domain.ProjectProgressNew;
import com.securitycontrol.screen.service.IProjectProgressNewService;
/**
* 工程进度Service业务层处理
*
* @author xsheng
* @date 2025-07-23
*/
@Service
public class ProjectProgressNewServiceImpl implements IProjectProgressNewService {
@Autowired
private ProjectProgressNewMapper projectProgressNewMapper;
/**
* 查询工程进度
*
* @param id 工程进度主键
* @return 工程进度
*/
@Override
public ProjectProgressNew selectProjectProgressNewById(Long id) {
return projectProgressNewMapper.selectProjectProgressNewById(id);
}
/**
* 查询工程进度列表
*
* @param projectProgressNew 工程进度
* @return 工程进度
*/
@Override
public List<ProjectProgressNew> selectProjectProgressNewList(ProjectProgressNew projectProgressNew) {
return projectProgressNewMapper.selectProjectProgressNewList(projectProgressNew);
}
/**
* 新增工程进度
*
* @param projectProgressNew 工程进度
* @return 结果
*/
@Override
public int insertProjectProgressNew(ProjectProgressNew projectProgressNew) {
return projectProgressNewMapper.insertProjectProgressNew(projectProgressNew);
}
/**
* 修改工程进度
*
* @param projectProgressNew 工程进度
* @return 结果
*/
@Override
public int updateProjectProgressNew(ProjectProgressNew projectProgressNew) {
return projectProgressNewMapper.updateProjectProgressNew(projectProgressNew);
}
/**
* 批量删除工程进度
*
* @param ids 需要删除的工程进度主键
* @return 结果
*/
@Override
public int deleteProjectProgressNewByIds(Long[] ids) {
return projectProgressNewMapper.deleteProjectProgressNewByIds(ids);
}
/**
* 删除工程进度信息
*
* @param id 工程进度主键
* @return 结果
*/
@Override
public int deleteProjectProgressNewById(Long id) {
return projectProgressNewMapper.deleteProjectProgressNewById(id);
}
}

View File

@ -0,0 +1,124 @@
<?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.securitycontrol.screen.mapper.ProjectNewMapper">
<resultMap type="com.securitycontrol.screen.domain.ProjectNew" id="ProjectNewResult">
<result property="proId" column="pro_id" />
<result property="signCode" column="sign_code" />
<result property="bidCode" column="bid_code" />
<result property="proCode" column="pro_code" />
<result property="proName" column="pro_name" />
<result property="status" column="status" />
<result property="planStartTime" column="plan_start_time" />
<result property="planEndTime" column="plan_end_time" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="diffDay" column="diff_day" />
<result property="planCost" column="plan_cost" />
<result property="actualCost" column="actual_cost" />
<result property="riskLevel" column="risk_level" />
<result property="suggestion" column="suggestion" />
<result property="taskName" column="task_name" />
</resultMap>
<sql id="selectProjectNewVo">
select pro_id, sign_code, bid_code, pro_code, pro_name, status, plan_start_time,
plan_end_time, start_time, end_time, diff_day, plan_cost, actual_cost, risk_level,
suggestion, task_name
from tb_project_new
</sql>
<select id="selectProjectNewList" parameterType="com.securitycontrol.screen.domain.ProjectNew" resultMap="ProjectNewResult">
<include refid="selectProjectNewVo"/>
<where>
<if test="signCode != null and signCode != ''"> and sign_code = #{signCode}</if>
<if test="bidCode != null and bidCode != ''"> and bid_code = #{bidCode}</if>
<if test="proCode != null and proCode != ''"> and pro_code = #{proCode}</if>
<if test="proName != null and proName != ''"> and pro_name like concat('%', #{proName}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="planStartTime != null "> and plan_start_time = #{planStartTime}</if>
<if test="planEndTime != null "> and plan_end_time = #{planEndTime}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="diffDay != null and diffDay != ''"> and diff_day = #{diffDay}</if>
<if test="planCost != null and planCost != ''"> and plan_cost = #{planCost}</if>
<if test="actualCost != null "> and actual_cost = #{actualCost}</if>
<if test="riskLevel != null and riskLevel != ''"> and risk_level = #{riskLevel}</if>
<if test="suggestion != null and suggestion != ''"> and suggestion = #{suggestion}</if>
<if test="taskName != null and taskName != ''"> and task_name = #{taskName}</if>
</where>
</select>
<select id="selectProjectNewByProId" parameterType="String" resultMap="ProjectNewResult">
<include refid="selectProjectNewVo"/>
where pro_id = #{proId}
</select>
<insert id="insertProjectNew" parameterType="com.securitycontrol.screen.domain.ProjectNew">
insert into tb_project_new
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="proId != null">pro_id,</if>
<if test="signCode != null">sign_code,</if>
<if test="bidCode != null">bid_code,</if>
<if test="proCode != null">pro_code,</if>
<if test="proName != null">pro_name,</if>
<if test="status != null">status,</if>
<if test="planStartTime != null">plan_start_time,</if>
<if test="planEndTime != null">plan_end_time,</if>
<if test="startTime != null">start_time,</if>
<if test="endTime != null">end_time,</if>
<if test="diffDay != null">diff_day,</if>
<if test="planCost != null">plan_cost,</if>
<if test="actualCost != null">actual_cost,</if>
<if test="riskLevel != null">risk_level,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="proId != null">#{proId},</if>
<if test="signCode != null">#{signCode},</if>
<if test="bidCode != null">#{bidCode},</if>
<if test="proCode != null">#{proCode},</if>
<if test="proName != null">#{proName},</if>
<if test="status != null">#{status},</if>
<if test="planStartTime != null">#{planStartTime},</if>
<if test="planEndTime != null">#{planEndTime},</if>
<if test="startTime != null">#{startTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="diffDay != null">#{diffDay},</if>
<if test="planCost != null">#{planCost},</if>
<if test="actualCost != null">#{actualCost},</if>
<if test="riskLevel != null">#{riskLevel},</if>
</trim>
</insert>
<update id="updateProjectNew" parameterType="com.securitycontrol.screen.domain.ProjectNew">
update tb_project_new
<trim prefix="SET" suffixOverrides=",">
<if test="signCode != null">sign_code = #{signCode},</if>
<if test="bidCode != null">bid_code = #{bidCode},</if>
<if test="proCode != null">pro_code = #{proCode},</if>
<if test="proName != null">pro_name = #{proName},</if>
<if test="status != null">status = #{status},</if>
<if test="planStartTime != null">plan_start_time = #{planStartTime},</if>
<if test="planEndTime != null">plan_end_time = #{planEndTime},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="diffDay != null">diff_day = #{diffDay},</if>
<if test="planCost != null">plan_cost = #{planCost},</if>
<if test="actualCost != null">actual_cost = #{actualCost},</if>
<if test="riskLevel != null">risk_level = #{riskLevel},</if>
</trim>
where pro_id = #{proId}
</update>
<delete id="deleteProjectNewByProId" parameterType="String">
delete from tb_project_new where pro_id = #{proId}
</delete>
<delete id="deleteProjectNewByProIds" parameterType="String">
delete from tb_project_new where pro_id in
<foreach item="proId" collection="array" open="(" separator="," close=")">
#{proId}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,138 @@
<?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.securitycontrol.screen.mapper.ProjectProgressNewMapper">
<resultMap type="com.securitycontrol.screen.domain.ProjectProgressNew" id="ProjectProgressNewResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
<result property="projectName" column="project_name" />
<result property="taskCode" column="task_code" />
<result property="taskName" column="task_name" />
<result property="planStartTime" column="plan_start_time" />
<result property="planEndTime" column="plan_end_time" />
<result property="actualStartTime" column="actual_start_time" />
<result property="actualEndTime" column="actual_end_time" />
<result property="processDiff" column="process_diff" />
<result property="totalEffort" column="total_effort" />
<result property="completeEffort" column="complete_effort" />
<result property="delayActor" column="delay_actor" />
<result property="resourceMatchStatus" column="resource_match_status" />
<result property="keyPathFlag" column="key_path_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectProjectProgressNewVo">
select id, project_id, project_name, task_code, task_name, plan_start_time, plan_end_time, actual_start_time, actual_end_time, process_diff, total_effort, complete_effort, delay_actor, resource_match_status, key_path_flag, create_by, create_time, update_by, update_time from tb_project_progress_new
</sql>
<select id="selectProjectProgressNewList" parameterType="com.securitycontrol.screen.domain.ProjectProgressNew" resultMap="ProjectProgressNewResult">
<include refid="selectProjectProgressNewVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
<if test="taskCode != null and taskCode != ''"> and task_code = #{taskCode}</if>
<if test="taskName != null and taskName != ''"> and task_name like concat('%', #{taskName}, '%')</if>
<if test="planStartTime != null "> and plan_start_time = #{planStartTime}</if>
<if test="planEndTime != null "> and plan_end_time = #{planEndTime}</if>
<if test="actualStartTime != null "> and actual_start_time = #{actualStartTime}</if>
<if test="actualEndTime != null "> and actual_end_time = #{actualEndTime}</if>
<if test="processDiff != null and processDiff != ''"> and process_diff = #{processDiff}</if>
<if test="totalEffort != null and totalEffort != ''"> and total_effort = #{totalEffort}</if>
<if test="completeEffort != null and completeEffort != ''"> and complete_effort = #{completeEffort}</if>
<if test="delayActor != null and delayActor != ''"> and delay_actor = #{delayActor}</if>
<if test="resourceMatchStatus != null and resourceMatchStatus != ''"> and resource_match_status = #{resourceMatchStatus}</if>
<if test="keyPathFlag != null and keyPathFlag != ''"> and key_path_flag = #{keyPathFlag}</if>
</where>
</select>
<select id="selectProjectProgressNewById" parameterType="Long" resultMap="ProjectProgressNewResult">
<include refid="selectProjectProgressNewVo"/>
where id = #{id}
</select>
<insert id="insertProjectProgressNew" parameterType="com.securitycontrol.screen.domain.ProjectProgressNew">
insert into tb_project_progress_new
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="projectId != null">project_id,</if>
<if test="projectName != null">project_name,</if>
<if test="taskCode != null">task_code,</if>
<if test="taskName != null">task_name,</if>
<if test="planStartTime != null">plan_start_time,</if>
<if test="planEndTime != null">plan_end_time,</if>
<if test="actualStartTime != null">actual_start_time,</if>
<if test="actualEndTime != null">actual_end_time,</if>
<if test="processDiff != null">process_diff,</if>
<if test="totalEffort != null">total_effort,</if>
<if test="completeEffort != null">complete_effort,</if>
<if test="delayActor != null">delay_actor,</if>
<if test="resourceMatchStatus != null">resource_match_status,</if>
<if test="keyPathFlag != null">key_path_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="projectId != null">#{projectId},</if>
<if test="projectName != null">#{projectName},</if>
<if test="taskCode != null">#{taskCode},</if>
<if test="taskName != null">#{taskName},</if>
<if test="planStartTime != null">#{planStartTime},</if>
<if test="planEndTime != null">#{planEndTime},</if>
<if test="actualStartTime != null">#{actualStartTime},</if>
<if test="actualEndTime != null">#{actualEndTime},</if>
<if test="processDiff != null">#{processDiff},</if>
<if test="totalEffort != null">#{totalEffort},</if>
<if test="completeEffort != null">#{completeEffort},</if>
<if test="delayActor != null">#{delayActor},</if>
<if test="resourceMatchStatus != null">#{resourceMatchStatus},</if>
<if test="keyPathFlag != null">#{keyPathFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateProjectProgressNew" parameterType="com.securitycontrol.screen.domain.ProjectProgressNew">
update tb_project_progress_new
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null">project_id = #{projectId},</if>
<if test="projectName != null">project_name = #{projectName},</if>
<if test="taskCode != null">task_code = #{taskCode},</if>
<if test="taskName != null">task_name = #{taskName},</if>
<if test="planStartTime != null">plan_start_time = #{planStartTime},</if>
<if test="planEndTime != null">plan_end_time = #{planEndTime},</if>
<if test="actualStartTime != null">actual_start_time = #{actualStartTime},</if>
<if test="actualEndTime != null">actual_end_time = #{actualEndTime},</if>
<if test="processDiff != null">process_diff = #{processDiff},</if>
<if test="totalEffort != null">total_effort = #{totalEffort},</if>
<if test="completeEffort != null">complete_effort = #{completeEffort},</if>
<if test="delayActor != null">delay_actor = #{delayActor},</if>
<if test="resourceMatchStatus != null">resource_match_status = #{resourceMatchStatus},</if>
<if test="keyPathFlag != null">key_path_flag = #{keyPathFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteProjectProgressNewById" parameterType="Long">
delete from tb_project_progress_new where id = #{id}
</delete>
<delete id="deleteProjectProgressNewByIds" parameterType="String">
delete from tb_project_progress_new where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>