fix
This commit is contained in:
parent
9d34f16065
commit
6e73c4da7d
@ -11,6 +11,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
import com.lz.modules.flow.entity.FlowStart;
|
import com.lz.modules.flow.entity.FlowStart;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface FlowStartMapper extends BaseMapper<FlowStart> {
|
public interface FlowStartMapper extends BaseMapper<FlowStart> {
|
||||||
|
|
||||||
@ -29,5 +32,6 @@ public interface FlowStartMapper extends BaseMapper<FlowStart> {
|
|||||||
|
|
||||||
int deleteFlowStartById(@Param("id")Long id);
|
int deleteFlowStartById(@Param("id")Long id);
|
||||||
|
|
||||||
|
List<FlowStart> selectListByTime();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -8,10 +8,9 @@ import lombok.Data;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 菜单权限表
|
|
||||||
* </p>*发起考核表
|
* </p>*发起考核表
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2020-10-13
|
* @since 2020-10-21
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -40,8 +39,11 @@ public class FlowStart implements java.io.Serializable {
|
|||||||
@ApiModelProperty(value = "结束时间", name = "endTime")
|
@ApiModelProperty(value = "结束时间", name = "endTime")
|
||||||
private Date endTime;
|
private Date endTime;
|
||||||
//组id
|
//组id
|
||||||
@ApiModelProperty(value = "组id,逗号隔开", name = "groupIds")
|
@ApiModelProperty(value = "组id", name = "groupIds")
|
||||||
private String groupIds;
|
private Long groupIds;
|
||||||
|
//考核名称
|
||||||
|
@ApiModelProperty(value = "考核名称", name = "name")
|
||||||
|
private String name;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -151,17 +153,32 @@ public class FlowStart implements java.io.Serializable {
|
|||||||
* 组id
|
* 组id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String getGroupIds() {
|
public Long getGroupIds() {
|
||||||
return groupIds;
|
return groupIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 组id
|
* 组id
|
||||||
* @param groupIds
|
* @param groupIds
|
||||||
*/
|
*/
|
||||||
public void setGroupIds(String groupIds) {
|
public void setGroupIds(Long groupIds) {
|
||||||
this.groupIds = groupIds;
|
this.groupIds = groupIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 考核名称
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 考核名称
|
||||||
|
* @param name
|
||||||
|
*/
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FlowStart{" +
|
return "FlowStart{" +
|
||||||
@ -173,6 +190,7 @@ public class FlowStart implements java.io.Serializable {
|
|||||||
",startTime=" + startTime +
|
",startTime=" + startTime +
|
||||||
",endTime=" + endTime +
|
",endTime=" + endTime +
|
||||||
",groupIds=" + groupIds +
|
",groupIds=" + groupIds +
|
||||||
|
",name=" + name +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3,6 +3,8 @@ package com.lz.modules.flow.service;
|
|||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.lz.modules.flow.entity.FlowStart;
|
import com.lz.modules.flow.entity.FlowStart;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 发起考核表 服务类
|
* 发起考核表 服务类
|
||||||
@ -30,4 +32,5 @@ public interface FlowStartService extends IService<FlowStart> {
|
|||||||
int deleteFlowStartById(Long id);
|
int deleteFlowStartById(Long id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,7 @@
|
|||||||
package com.lz.modules.performance.controller;
|
package com.lz.modules.performance.controller;
|
||||||
|
|
||||||
import com.lz.common.utils.R;
|
import com.lz.common.utils.R;
|
||||||
|
import com.lz.modules.flow.dao.FlowStartMapper;
|
||||||
import com.lz.modules.flow.service.FlowStartService;
|
import com.lz.modules.flow.service.FlowStartService;
|
||||||
import com.lz.modules.performance.req.AssessDetailReq;
|
import com.lz.modules.performance.req.AssessDetailReq;
|
||||||
import com.lz.modules.performance.req.AssessListReq;
|
import com.lz.modules.performance.req.AssessListReq;
|
||||||
@ -21,7 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
public class AssessManagerController {
|
public class AssessManagerController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private FlowStartService flowStartService;
|
private FlowStartMapper flowStartMapper;
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping("assess/manager/list")
|
@RequestMapping("assess/manager/list")
|
||||||
|
|||||||
@ -12,12 +12,13 @@
|
|||||||
<result column="start_time" property="startTime"/>
|
<result column="start_time" property="startTime"/>
|
||||||
<result column="end_time" property="endTime"/>
|
<result column="end_time" property="endTime"/>
|
||||||
<result column="group_ids" property="groupIds"/>
|
<result column="group_ids" property="groupIds"/>
|
||||||
|
<result column="name" property="name"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, cycle_type AS cycleType, start_time AS startTime, end_time AS endTime, group_ids AS groupIds
|
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, cycle_type AS cycleType, start_time AS startTime, end_time AS endTime, group_ids AS groupIds, name AS name
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@ -27,38 +28,40 @@
|
|||||||
select * from lz_flow_start where id=#{id} and is_delete = 0 limit 1
|
select * from lz_flow_start where id=#{id} and is_delete = 0 limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertFlowStart" parameterType="FlowStart" useGeneratedKeys="true" keyProperty="id" >
|
<insert id="insertFlowStart" parameterType="FlowStart" useGeneratedKeys="true" keyProperty="id" >
|
||||||
insert into lz_flow_start(
|
insert into lz_flow_start(
|
||||||
<if test="cycleType != null">cycle_type, </if>
|
<if test="cycleType != null">cycle_type, </if>
|
||||||
<if test="startTime != null">start_time, </if>
|
<if test="startTime != null">start_time, </if>
|
||||||
<if test="endTime != null">end_time, </if>
|
<if test="endTime != null">end_time, </if>
|
||||||
<if test="groupIds != null">group_ids, </if>
|
<if test="groupIds != null">group_ids, </if>
|
||||||
is_delete,
|
<if test="name != null">name, </if>
|
||||||
gmt_create,
|
is_delete,
|
||||||
gmt_modified
|
gmt_create,
|
||||||
|
gmt_modified
|
||||||
)values(
|
)values(
|
||||||
<if test="cycleType != null">#{ cycleType}, </if>
|
<if test="cycleType != null">#{ cycleType}, </if>
|
||||||
<if test="startTime != null">#{ startTime}, </if>
|
<if test="startTime != null">#{ startTime}, </if>
|
||||||
<if test="endTime != null">#{ endTime}, </if>
|
<if test="endTime != null">#{ endTime}, </if>
|
||||||
<if test="groupIds != null">#{ groupIds}, </if>
|
<if test="groupIds != null">#{ groupIds}, </if>
|
||||||
0,
|
<if test="name != null">#{ name}, </if>
|
||||||
now(),
|
0,
|
||||||
now()
|
now(),
|
||||||
|
now()
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
<update id="updateFlowStartById" parameterType="FlowStart" >
|
<update id="updateFlowStartById" parameterType="FlowStart" >
|
||||||
update
|
update
|
||||||
lz_flow_start
|
lz_flow_start
|
||||||
<trim prefix="set" suffixOverrides=",">
|
<trim prefix="set" suffixOverrides=",">
|
||||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||||
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
|
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
|
||||||
<if test="cycleType != null">cycle_type = #{cycleType},</if>
|
<if test="cycleType != null">cycle_type = #{cycleType},</if>
|
||||||
<if test="startTime != null">start_time = #{startTime},</if>
|
<if test="startTime != null">start_time = #{startTime},</if>
|
||||||
<if test="endTime != null">end_time = #{endTime},</if>
|
<if test="endTime != null">end_time = #{endTime},</if>
|
||||||
<if test="groupIds != null">group_ids = #{groupIds}</if>
|
<if test="groupIds != null">group_ids = #{groupIds},</if>
|
||||||
|
<if test="name != null">name = #{name}</if>
|
||||||
</trim>
|
</trim>
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
@ -67,14 +70,15 @@
|
|||||||
|
|
||||||
<update id="updateCoverFlowStartById" parameterType="FlowStart" >
|
<update id="updateCoverFlowStartById" parameterType="FlowStart" >
|
||||||
update
|
update
|
||||||
lz_flow_start
|
lz_flow_start
|
||||||
set
|
set
|
||||||
is_delete = #{isDelete},
|
is_delete = #{isDelete},
|
||||||
gmt_create = #{gmtCreate},
|
gmt_create = #{gmtCreate},
|
||||||
cycle_type = #{cycleType},
|
cycle_type = #{cycleType},
|
||||||
start_time = #{startTime},
|
start_time = #{startTime},
|
||||||
end_time = #{endTime},
|
end_time = #{endTime},
|
||||||
group_ids = #{groupIds}
|
group_ids = #{groupIds},
|
||||||
|
name = #{name}
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
@ -84,5 +88,8 @@
|
|||||||
update lz_flow_start set is_delete = 1 where id=#{id} limit 1
|
update lz_flow_start set is_delete = 1 where id=#{id} limit 1
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<select id="selectListByTime">
|
||||||
|
select * from lz_flow_start where is_delete = 0 and
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|||||||
@ -78,7 +78,7 @@ public class MysqlMain {
|
|||||||
//list.add(new TablesBean("lz_result_model"));
|
//list.add(new TablesBean("lz_result_model"));
|
||||||
//list.add(new TablesBean("lz_result_score"));
|
//list.add(new TablesBean("lz_result_score"));
|
||||||
//list.add(new TablesBean("lz_result_taget_lib"));
|
//list.add(new TablesBean("lz_result_taget_lib"));
|
||||||
list.add(new TablesBean("lz_staff_role"));
|
list.add(new TablesBean("lz_flow_start"));
|
||||||
|
|
||||||
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
||||||
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user