52 changed files with 1592 additions and 471 deletions
@ -0,0 +1,84 @@ |
|||
package com.ccsens.common.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Data |
|||
public class CProjectVo { |
|||
|
|||
@Data |
|||
@ApiModel("项目信息") |
|||
public static class ProjectInfo{ |
|||
@ApiModelProperty("项目id(任务详情id)") |
|||
private Long id; |
|||
@ApiModelProperty("项目名称") |
|||
private String name; |
|||
@ApiModelProperty("项目描述") |
|||
private String description; |
|||
@ApiModelProperty("重复频率") |
|||
private String cycle; |
|||
@ApiModelProperty("计划开始时间") |
|||
private Long planStartTime; |
|||
@ApiModelProperty("计划时长") |
|||
private Long planDuration; |
|||
@ApiModelProperty("计划结束时间") |
|||
private Long planEndTime; |
|||
@ApiModelProperty("真实开始时间") |
|||
private Long realStartTime; |
|||
@ApiModelProperty("真实时长") |
|||
private Long realDuration; |
|||
@ApiModelProperty("真实结束时间") |
|||
private Long realEndTime; |
|||
|
|||
} |
|||
|
|||
@Data |
|||
public static class SysProject{ |
|||
@ApiModelProperty("项目id") |
|||
private Long id; |
|||
@ApiModelProperty("项目名称") |
|||
private String name; |
|||
@ApiModelProperty("开始时间") |
|||
private Long beginTime; |
|||
@ApiModelProperty("结束时间") |
|||
private Long endTime; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("复制的项目信息") |
|||
public static class CopyProjectInfo{ |
|||
@ApiModelProperty("项目id") |
|||
private Long id; |
|||
// @ApiModelProperty("任务详情")
|
|||
// private List<ProjectVo.TaskDetail> taskDetails;
|
|||
} |
|||
@Data |
|||
@ApiModel("任务详情") |
|||
public static class TaskDetail{ |
|||
@ApiModelProperty("任务详情id") |
|||
private Long taskDetailId; |
|||
@ApiModelProperty("任务详情名称") |
|||
private String taskDetailName; |
|||
@ApiModelProperty("任务等级") |
|||
private Byte taskDetailLevel; |
|||
@ApiModelProperty("任务详情下的分解任务") |
|||
private List<CProjectVo.TaskSub> taskSubList; |
|||
} |
|||
@Data |
|||
@ApiModel("分解任务") |
|||
public static class TaskSub{ |
|||
@ApiModelProperty("分解任务id") |
|||
private Long taskSubId; |
|||
@ApiModelProperty("分解任务开始时间") |
|||
private Long startTime; |
|||
@ApiModelProperty("分解任务结束时间") |
|||
private Long endTime; |
|||
} |
|||
} |
@ -1,50 +0,0 @@ |
|||
package com.ccsens.common.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Data |
|||
public class ProjectVo { |
|||
|
|||
@Data |
|||
@ApiModel("项目信息") |
|||
public static class ProjectInfo{ |
|||
@ApiModelProperty("项目id(任务详情id)") |
|||
private Long id; |
|||
@ApiModelProperty("项目名称") |
|||
private String name; |
|||
@ApiModelProperty("项目描述") |
|||
private String description; |
|||
@ApiModelProperty("重复频率") |
|||
private String cycle; |
|||
@ApiModelProperty("计划开始时间") |
|||
private String planStartTime; |
|||
@ApiModelProperty("计划时长") |
|||
private String planDuration; |
|||
@ApiModelProperty("计划结束时间") |
|||
private String planEndTime; |
|||
@ApiModelProperty("真实开始时间") |
|||
private String realStartTime; |
|||
@ApiModelProperty("真实时长") |
|||
private String realDuration; |
|||
@ApiModelProperty("真实结束时间") |
|||
private String realEndTime; |
|||
|
|||
} |
|||
|
|||
@Data |
|||
public static class SysProject{ |
|||
@ApiModelProperty("项目id") |
|||
private Long id; |
|||
@ApiModelProperty("项目名称") |
|||
private String name; |
|||
@ApiModelProperty("开始时间") |
|||
private Long beginTime; |
|||
@ApiModelProperty("结束时间") |
|||
private Long endTime; |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.LabelBusiness; |
|||
import com.ccsens.common.persist.mapper.LabelBusinessMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface LabelBusinessDao extends LabelBusinessMapper { |
|||
|
|||
/** |
|||
* 根据业务id集合查询任务标签表 |
|||
* @param businessIdList 业务id集合 |
|||
* @return 任务标签集合 |
|||
*/ |
|||
List<LabelBusiness> findBusinessLabelByBid(@Param("businessIdList") List<Long> businessIdList); |
|||
|
|||
/** |
|||
* 保存全部任务标签关系 |
|||
* @param businessLabelList 任务标签关系列表 |
|||
*/ |
|||
void insertAllBusinessLabel(@Param("businessLabelList") List<LabelBusiness> businessLabelList); |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProParentTask; |
|||
import com.ccsens.common.bean.vo.CTaskVo; |
|||
import com.ccsens.common.persist.mapper.ProParentTaskMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
public interface ProParentTaskDao extends ProParentTaskMapper { |
|||
|
|||
/** |
|||
* 根据项目id查找一级任务列表 |
|||
* @param oldProjectId 项目id |
|||
* @return 一级任务列表 |
|||
*/ |
|||
List<CTaskVo.TaskDetail> findTaskByParentId(@Param("oldProjectId") Long oldProjectId); |
|||
|
|||
/** |
|||
* 保存所有任务关系 |
|||
* @param newParentTaskList 任务关系列表 |
|||
*/ |
|||
void insertAllParentTask(@Param("newParentTaskList") List<ProParentTask> newParentTaskList); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProRoleTask; |
|||
import com.ccsens.common.persist.mapper.ProRoleTaskMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface ProRoleTaskDao extends ProRoleTaskMapper { |
|||
|
|||
/** |
|||
* 根据角色id查找所有角色任务关系 |
|||
* @param oldRoleIdList 角色id集合 |
|||
* @return 角色任务关系列表 |
|||
*/ |
|||
List<ProRoleTask> findRoleTaskByRoleId(@Param("roleIds") List<Long> oldRoleIdList); |
|||
|
|||
/** |
|||
* 保存所有的角色任务关系 |
|||
* @param newRoleTaskList 角色任务关系列表 |
|||
*/ |
|||
void insertAllRoleTask(@Param("roleTaskList") List<ProRoleTask> newRoleTaskList); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProTaskFlow; |
|||
import com.ccsens.common.persist.mapper.ProTaskFlowMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface ProTaskFlowDao extends ProTaskFlowMapper { |
|||
|
|||
/** |
|||
* 根据任务id集合查询所有的任务流转 |
|||
* @param taskIdList 任务id集合 |
|||
* @return 任务流转列表 |
|||
*/ |
|||
List<ProTaskFlow> findTaskFlowByTaskIdList(@Param("taskIdList") List<Long> taskIdList); |
|||
|
|||
/** |
|||
* 保存所有的任务流转 |
|||
* @param taskFlowList 任务流转列表 |
|||
*/ |
|||
void insertAllTaskFlow(@Param("taskFlowList") List<ProTaskFlow> taskFlowList); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProTaskNotify; |
|||
import com.ccsens.common.persist.mapper.ProTaskNotifyMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface ProTaskNotifyDao extends ProTaskNotifyMapper { |
|||
|
|||
/** |
|||
* 根据任务id列表查询所有的任务通知 |
|||
* @param oldTaskIdList 任务id列表 |
|||
* @return 任务通知列表 |
|||
*/ |
|||
List<ProTaskNotify> findTaskNotifyByTaskIdList(@Param("taskIdList") List<Long> oldTaskIdList); |
|||
|
|||
/** |
|||
* 保存所有的任务通知 |
|||
* @param newTaskNotifyList 任务通知列表 |
|||
*/ |
|||
void insertAllTaskNotify(List<ProTaskNotify> newTaskNotifyList); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProTaskPanelInfo; |
|||
import com.ccsens.common.persist.mapper.ProTaskPanelInfoMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface ProTaskPanelInfoDao extends ProTaskPanelInfoMapper { |
|||
|
|||
/** |
|||
* 根据任务id集合查找任务面板 |
|||
* @param taskIdList 任务id集合 |
|||
* @return 任务面板列表 |
|||
*/ |
|||
List<ProTaskPanelInfo> findPanelByTaskIdList(@Param("taskIdList") List<Long> taskIdList); |
|||
|
|||
/** |
|||
* 将所有任务任务面板保存 |
|||
* @param taskPanelInfoList 任务面板列表 |
|||
*/ |
|||
void insertAllTaskPanel(@Param("taskPanelInfoList") List<ProTaskPanelInfo> taskPanelInfoList); |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProTaskProcess; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface ProTaskProcessDao { |
|||
|
|||
/** |
|||
* 根据任务id列表查询所有上下道工序 |
|||
* @param oldTaskIdList 任务id列表 |
|||
* @return 上下道工序列表 |
|||
*/ |
|||
List<ProTaskProcess> findTaskProcessByTaskIdList(@Param("taskIdList") List<Long> oldTaskIdList); |
|||
|
|||
/** |
|||
* 保存所有的上下道工序 |
|||
* @param newTaskProcessList 任务上下道工序列表 |
|||
*/ |
|||
void insertAllTaskProcess(@Param("taskProcessList") List<ProTaskProcess> newTaskProcessList); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProTaskSub; |
|||
import com.ccsens.common.persist.mapper.ProTaskSubMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface ProTaskSubDao extends ProTaskSubMapper { |
|||
|
|||
/** |
|||
* 查询任务详情的分解任务 |
|||
* @param taskDetailId 任务详情id |
|||
* @return 分解任务列表 |
|||
*/ |
|||
List<ProTaskSub> findSubTaskByDetail(@Param("id") Long taskDetailId); |
|||
|
|||
/** |
|||
* 保存所有的分解任务 |
|||
* @param newTaskSubList 分解任务列表 |
|||
*/ |
|||
void insertAllTaskSub(@Param("newTaskSubList") List<ProTaskSub> newTaskSubList); |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProTaskVersion; |
|||
import com.ccsens.common.persist.mapper.ProTaskVersionMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface ProTaskVersionDao extends ProTaskVersionMapper { |
|||
|
|||
/** |
|||
* 根据项目id查询版本信息 |
|||
* @param id 项目id |
|||
* @return 版本信息 |
|||
*/ |
|||
ProTaskVersion findVersionByProjectId(@Param("projectId") Long id); |
|||
} |
@ -1,11 +1,11 @@ |
|||
package com.ccsens.common.service; |
|||
|
|||
import com.ccsens.common.bean.dto.PluginDto; |
|||
import com.ccsens.common.bean.dto.CPluginDto; |
|||
|
|||
public interface IPluginService { |
|||
/** |
|||
* 配置任务插件关联信息 |
|||
*/ |
|||
void updateTaskPlugin(PluginDto.UpdateTaskPlugin updateTaskPlugin); |
|||
void updateTaskPlugin(CPluginDto.UpdateTaskPlugin updateTaskPlugin); |
|||
|
|||
} |
|||
|
@ -1,11 +1,11 @@ |
|||
package com.ccsens.common.service; |
|||
|
|||
import com.ccsens.common.bean.dto.RoleDto; |
|||
import com.ccsens.common.bean.vo.RoleVo; |
|||
import com.ccsens.common.bean.dto.CRoleDto; |
|||
import com.ccsens.common.bean.vo.CRoleVo; |
|||
|
|||
public interface IProRoleService { |
|||
|
|||
RoleVo.QueryRole QueryShowRole(RoleDto.QueryRoleById param, Long userId); |
|||
CRoleVo.QueryRole QueryShowRole(CRoleDto.QueryRoleById param, Long userId); |
|||
|
|||
void updateShowRole(RoleDto.UpdateRoleShow param, Long userId); |
|||
void updateShowRole(CRoleDto.UpdateRoleShow param, Long userId); |
|||
} |
|||
|
@ -1,52 +1,52 @@ |
|||
#server: |
|||
# port: 7200 |
|||
# servlet: |
|||
# context-path: |
|||
#spring: |
|||
# snowflake: |
|||
# datacenterId: 1 |
|||
# workerId: 1 |
|||
# application: |
|||
# name: common |
|||
# datasource: |
|||
# type: com.alibaba.druid.pool.DruidDataSource |
|||
# rabbitmq: |
|||
# host: 192.168.0.99 |
|||
# password: 111111 |
|||
# port: 5672 |
|||
# username: admin |
|||
# redis: |
|||
# database: 0 |
|||
# host: 127.0.0.1 |
|||
# jedis: |
|||
# pool: |
|||
# max-active: 200 |
|||
# max-idle: 10 |
|||
# max-wait: -1ms |
|||
# min-idle: 0 |
|||
# password: '' |
|||
# port: 6379 |
|||
# timeout: 1000ms |
|||
#swagger: |
|||
# enable: true |
|||
#mybatisCache: |
|||
# database: 1 |
|||
# host: 127.0.0.1 |
|||
# jedis: |
|||
# pool: |
|||
# max-active: 200 |
|||
# max-idle: 10 |
|||
# max-wait: -1 |
|||
# min-idle: 0 |
|||
# password: '' |
|||
# port: 6379 |
|||
# timeout: 1000 |
|||
# |
|||
#gatewayUrl: https://test.tall.wiki/gateway/ |
|||
#notGatewayUrl: /home/staticrec/logo.png |
|||
#smsCode: 0 |
|||
# |
|||
#file: |
|||
# path: /home/cloud/common/uploads/ |
|||
# domain: http://localhost:7030/v1.0/ |
|||
# imgDomain: http://localhost:7030/v1.0/uploads |
|||
server: |
|||
port: 7200 |
|||
servlet: |
|||
context-path: |
|||
spring: |
|||
snowflake: |
|||
datacenterId: 1 |
|||
workerId: 1 |
|||
application: |
|||
name: common |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
rabbitmq: |
|||
host: 192.168.0.99 |
|||
password: 111111 |
|||
port: 5672 |
|||
username: admin |
|||
redis: |
|||
database: 0 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1ms |
|||
min-idle: 0 |
|||
password: '' |
|||
port: 6379 |
|||
timeout: 1000ms |
|||
swagger: |
|||
enable: true |
|||
mybatisCache: |
|||
database: 1 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1 |
|||
min-idle: 0 |
|||
password: '' |
|||
port: 6379 |
|||
timeout: 1000 |
|||
|
|||
gatewayUrl: https://test.tall.wiki/gateway/ |
|||
notGatewayUrl: /home/staticrec/logo.png |
|||
smsCode: 0 |
|||
|
|||
file: |
|||
path: /home/cloud/common/uploads/ |
|||
domain: http://localhost:7030/v1.0/ |
|||
imgDomain: http://localhost:7030/v1.0/uploads |
@ -1,4 +1,4 @@ |
|||
#spring: |
|||
# profiles: |
|||
# active: dev |
|||
# include: util-dev,common |
|||
spring: |
|||
profiles: |
|||
active: dev |
|||
include: util-dev,common |
@ -0,0 +1,37 @@ |
|||
<?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.ccsens.common.persist.dao.LabelBusinessDao"> |
|||
|
|||
<insert id="insertAllBusinessLabel"> |
|||
INSERT INTO t_label_business ( |
|||
id, |
|||
label_id, |
|||
user_id, |
|||
business_type, |
|||
business_id |
|||
) |
|||
VALUES |
|||
<foreach collection="businessLabelList" item="item" separator=","> |
|||
(#{item.id},#{item.labelId},#{item.userId},#{item.businessType},#{item.businessId}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findBusinessLabelByBid" resultType="com.ccsens.common.bean.po.LabelBusiness"> |
|||
SELECT |
|||
id, |
|||
label_id, |
|||
user_id, |
|||
business_type, |
|||
business_id |
|||
FROM |
|||
t_label_business |
|||
WHERE |
|||
rec_status=0 |
|||
AND |
|||
business_id IN |
|||
<foreach collection="businessIdList" index="index" item="item" open="(" separator="," close=")"> |
|||
#{item} |
|||
</foreach> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,33 @@ |
|||
<?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.ccsens.common.persist.dao.ProParentTaskDao"> |
|||
|
|||
<insert id="insertAllParentTask"> |
|||
INSERT INTO t_pro_parent_task ( |
|||
id, |
|||
task_detail_id, |
|||
parent_task_detail_id |
|||
) |
|||
VALUES |
|||
<foreach collection="newParentTaskList" item="item" separator=","> |
|||
(#{item.id},#{item.taskDetailId},#{item.parentTaskDetailId}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findTaskByParentId" resultType="com.ccsens.common.bean.vo.CTaskVo$TaskDetail"> |
|||
SELECT |
|||
d.id AS detailId, |
|||
d.`name`, |
|||
d.description, |
|||
d.cycle, |
|||
pt.id AS parentTaskId, |
|||
pt.parent_task_detail_id AS parentTaskDetailId |
|||
FROM |
|||
t_pro_parent_task AS pt |
|||
LEFT JOIN t_pro_task_detail AS d ON d.id = pt.task_detail_id |
|||
WHERE |
|||
pt.parent_task_detail_id = #{oldProjectId} |
|||
AND pt.rec_status = 0 AND d.rec_status = 0 |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,34 @@ |
|||
<?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.ccsens.common.persist.dao.ProRoleTaskDao"> |
|||
|
|||
<insert id="insertAllRoleTask"> |
|||
INSERT INTO t_pro_role_task ( |
|||
id, |
|||
role_id, |
|||
task_id, |
|||
operator |
|||
) |
|||
VALUES |
|||
<foreach collection="roleTaskList" item="item" separator=","> |
|||
(#{item.id},#{item.roleId},#{item.taskId},#{item.operator}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findRoleTaskByRoleId" resultType="com.ccsens.common.bean.po.ProRoleTask"> |
|||
SELECT |
|||
id, |
|||
role_id, |
|||
task_id, |
|||
operator |
|||
FROM |
|||
t_pro_role_task |
|||
WHERE |
|||
rec_status = 0 |
|||
AND role_id IN |
|||
<foreach collection="roleIds" index="index" item="item" open="(" separator="," close=")"> |
|||
#{item} |
|||
</foreach> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,34 @@ |
|||
<?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.ccsens.common.persist.dao.ProTaskFlowDao"> |
|||
|
|||
<insert id="insertAllTaskFlow"> |
|||
INSERT INTO t_pro_task_flow ( |
|||
id, |
|||
task_detail_id, |
|||
flow_type, |
|||
jump_task_detail_id |
|||
) |
|||
VALUES |
|||
<foreach collection="taskFlowList" item="item" separator=","> |
|||
(#{item.id},#{item.taskDetailId},#{item.flowType},#{item.jumpTaskDetailId}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findTaskFlowByTaskIdList" resultType="com.ccsens.common.bean.po.ProTaskFlow"> |
|||
SELECT |
|||
id, |
|||
task_detail_id, |
|||
flow_type, |
|||
jump_task_detail_id |
|||
FROM |
|||
t_pro_task_flow |
|||
WHERE |
|||
rec_status = 0 |
|||
AND task_detail_id IN |
|||
<foreach collection="taskIdList" index="index" item="item" open="(" separator="," close=")"> |
|||
#{item} |
|||
</foreach> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,38 @@ |
|||
<?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.ccsens.common.persist.dao.ProTaskNotifyDao"> |
|||
|
|||
<insert id="insertAllTaskNotify"> |
|||
INSERT INTO t_pro_task_notify ( |
|||
id, |
|||
task_detail_id, |
|||
lifecycle, |
|||
path, |
|||
appoint_param, |
|||
notify_type |
|||
) |
|||
VALUES |
|||
<foreach collection="roleTaskList" item="item" separator=","> |
|||
(#{item.id},#{item.taskDetailId},#{item.lifecycle},#{item.path},#{item.appointParam},#{item.notifyType}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findTaskNotifyByTaskIdList" resultType="com.ccsens.common.bean.po.ProTaskNotify"> |
|||
SELECT |
|||
id, |
|||
task_detail_id, |
|||
lifecycle, |
|||
path, |
|||
appoint_param, |
|||
notify_type |
|||
FROM |
|||
t_pro_task_notify |
|||
WHERE |
|||
rec_status = 0 |
|||
AND task_detail_id IN |
|||
<foreach collection="taskIdList" index="index" item="item" open="(" separator="," close=")"> |
|||
#{item} |
|||
</foreach> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,47 @@ |
|||
<?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.ccsens.common.persist.dao.ProTaskPanelInfoDao"> |
|||
|
|||
<insert id="insertAllTaskPanel"> |
|||
INSERT INTO t_pro_task_panel_info ( |
|||
id, |
|||
task_detail_id, |
|||
back_color, |
|||
round_corner, |
|||
border, |
|||
shadow, |
|||
width, |
|||
height, |
|||
`row`, |
|||
col |
|||
) |
|||
VALUES |
|||
<foreach collection="roleTaskList" item="item" separator=","> |
|||
(#{item.id},#{item.taskDetailId},#{item.backColor},#{item.roundCorner},#{item.border},#{item.shadow},#{item.width} |
|||
,#{item.height},#{item.row},#{item.col}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findPanelByTaskIdList" resultType="com.ccsens.common.bean.po.ProTaskPanelInfo"> |
|||
SELECT |
|||
id, |
|||
task_detail_id, |
|||
back_color, |
|||
round_corner, |
|||
border, |
|||
shadow, |
|||
width, |
|||
height, |
|||
`row`, |
|||
col |
|||
FROM |
|||
t_pro_task_panel_info |
|||
WHERE |
|||
rec_status = 0 |
|||
AND task_detail_id IN |
|||
<foreach collection="taskIdList" index="index" item="item" open="(" separator="," close=")"> |
|||
#{item} |
|||
</foreach> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,36 @@ |
|||
<?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.ccsens.common.persist.dao.ProTaskProcessDao"> |
|||
|
|||
<insert id="insertAllTaskProcess"> |
|||
INSERT INTO t_pro_task_process ( |
|||
id, |
|||
task_detail_id, |
|||
next_task_detail_id, |
|||
process_type, |
|||
time_difference |
|||
) |
|||
VALUES |
|||
<foreach collection="roleTaskList" item="item" separator=","> |
|||
(#{item.id},#{item.taskDetailId},#{item.nextTaskDetailId},#{item.processType},#{item.timeDifference}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findTaskProcessByTaskIdList" resultType="com.ccsens.common.bean.po.ProTaskProcess"> |
|||
SELECT |
|||
id, |
|||
task_detail_id, |
|||
next_task_detail_id, |
|||
process_type, |
|||
time_difference |
|||
FROM |
|||
t_pro_task_process |
|||
WHERE |
|||
rec_status = 0 |
|||
AND task_detail_id IN |
|||
<foreach collection="taskIdList" index="index" item="item" open="(" separator="," close=")"> |
|||
#{item} |
|||
</foreach> |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,32 @@ |
|||
<?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.ccsens.common.persist.dao.ProTaskSubDao"> |
|||
|
|||
<insert id="insertAllTaskSub"> |
|||
INSERT INTO t_pro_task_sub ( |
|||
id, |
|||
plan_start_time, |
|||
plan_duration, |
|||
plan_end_time, |
|||
task_detail_id |
|||
) |
|||
VALUES |
|||
<foreach collection="newTaskSubList" item="item" separator=","> |
|||
(#{item.id},#{item.planStartTime},#{item.planDuration},#{item.planEndTime},#{item.taskDetailId}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="findSubTaskByDetail" resultType="com.ccsens.common.bean.po.ProTaskSub"> |
|||
SELECT |
|||
id, |
|||
plan_start_time, |
|||
plan_duration, |
|||
plan_end_time, |
|||
task_detail_id |
|||
FROM |
|||
t_pro_task_sub |
|||
WHERE |
|||
rec_status = 0 |
|||
AND task_detail_id = #{id} |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,23 @@ |
|||
<?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.ccsens.common.persist.dao.ProTaskVersionDao"> |
|||
|
|||
|
|||
<select id="findVersionByProjectId" resultType="com.ccsens.common.bean.po.ProTaskVersion"> |
|||
SELECT |
|||
id, |
|||
task_detail_id, |
|||
task_version_info, |
|||
project_type, |
|||
address |
|||
FROM |
|||
t_pro_task_version |
|||
WHERE |
|||
rec_status = 0 |
|||
AND task_detail_id = #{projectId} |
|||
ORDER BY |
|||
created_at DESC |
|||
LIMIT 1 |
|||
</select> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue