大屏工程管理修改
parent
b4e546c58f
commit
ec8dab461b
|
@ -73,4 +73,6 @@ public interface IFlowBusinessKeyService {
|
|||
* @return
|
||||
*/
|
||||
public List<FlowTaskEntity> findSafetyWorkList(FlowTaskEntity flowTaskEntity);
|
||||
|
||||
public List<FlowTaskEntity> listByCategory(FlowTaskEntity where);
|
||||
}
|
||||
|
|
|
@ -143,4 +143,9 @@ public class FlowBusinessKeyServiceImpl implements IFlowBusinessKeyService {
|
|||
public List<FlowTaskEntity> findSafetyWorkList(FlowTaskEntity flowTaskEntity) {
|
||||
return flowBusinessKeyMapper.findSafetyWorkList(flowTaskEntity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FlowTaskEntity> listByCategory(FlowTaskEntity where) {
|
||||
return flowBusinessKeyMapper.listByCategory(where);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,4 +66,5 @@ public interface FlowBusinessKeyMapper {
|
|||
*/
|
||||
public List<FlowTaskEntity> findSafetyWorkList(FlowTaskEntity flowTaskEntity);
|
||||
|
||||
public List<FlowTaskEntity> listByCategory(FlowTaskEntity where);
|
||||
}
|
||||
|
|
|
@ -297,7 +297,20 @@
|
|||
) a
|
||||
GROUP BY cat
|
||||
</select>
|
||||
|
||||
<select id="listByCategory" parameterType="com.ruoyi.system.domain.FlowTaskEntity" resultType="com.ruoyi.system.domain.FlowTaskEntity">
|
||||
SELECT * FROM vw_flow_all
|
||||
<where>
|
||||
<if test="category != null and category != ''"> and category = #{category}</if>
|
||||
<if test="deptId !=null and deptId>0">and businessDeptId=#{deptId}</if>
|
||||
<if test="projectId !=null and projectId>0">and businessKey=#{projectId}</if>
|
||||
<if test="prjIds !=null and prjIds.size()>0">
|
||||
and businessKey in
|
||||
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="listByUnit" parameterType="com.ruoyi.system.domain.FlowTaskEntity" resultType="com.ruoyi.system.domain.FlowTaskEntity">
|
||||
SELECT * FROM vw_flow_all WHERE finishTime IS NULL
|
||||
<if test="taskId!=null">
|
||||
|
|
|
@ -111,16 +111,29 @@ public class FloweController extends BaseController {
|
|||
|
||||
@PostMapping("/listByUnit")
|
||||
public TableDataInfo listByUnit(@RequestBody FlowTaskEntity where){
|
||||
startPage();
|
||||
List<FlowTaskEntity> list=flowBusinessKeyService.listByUnit(where);
|
||||
if(where.getDeptId()<=0){
|
||||
if (SecurityUtils.isUserB()) {
|
||||
where.setPrjIds(getProjectIds());
|
||||
}
|
||||
}
|
||||
startPage();
|
||||
List<FlowTaskEntity> list=flowBusinessKeyService.listByUnit(where);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PostMapping("/listByCategory")
|
||||
public TableDataInfo listByCategory(@RequestBody FlowTaskEntity where){
|
||||
if(where.getDeptId()<=0){
|
||||
if (SecurityUtils.isUserB()) {
|
||||
where.setPrjIds(getProjectIds());
|
||||
}
|
||||
}
|
||||
startPage();
|
||||
List<FlowTaskEntity> list=flowBusinessKeyService.listByCategory(where);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/listByState")
|
||||
public TableDataInfo listByState(@RequestBody FlowTaskEntity where){
|
||||
startPage();
|
||||
|
|
Loading…
Reference in New Issue