126 lines
2.5 KiB
Plaintext
126 lines
2.5 KiB
Plaintext
package com.securityControl.task.service.impl;
|
|
|
|
|
|
import com.securityControl.common.core.utils.aes.ListHelper;
|
|
import com.securityControl.task.domain.vo.ClassMettingCheckVo;
|
|
import com.securityControl.task.domain.vo.JjPeoson;
|
|
import com.securityControl.task.domain.vo.UserVo;
|
|
import com.securityControl.task.domain.vo.WorkTeamVo;
|
|
import com.securityControl.task.mapper.TaskScheduleMapper;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import sun.reflect.generics.tree.VoidDescriptor;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 任务管理服务层
|
|
*/
|
|
@Service
|
|
@Slf4j
|
|
public class TaskScheduleService {
|
|
|
|
|
|
@Autowired
|
|
private TaskScheduleMapper mapper;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 查询未分配的站班会数据
|
|
* @return
|
|
*/
|
|
public List<String> getWfpList(Integer param) {
|
|
return mapper.getWfpList(param);
|
|
}
|
|
|
|
/**
|
|
* 查询角色
|
|
* @return
|
|
*/
|
|
public List<UserVo> getAllDcUsers(String type) {
|
|
return mapper.getAllDcUsers(type);
|
|
}
|
|
|
|
/**
|
|
* 插入督查分配
|
|
* @param check
|
|
* @param fpc
|
|
*/
|
|
public void insertCheck(ClassMettingCheckVo check, List<String> fpc) {
|
|
mapper.insertCheck(check,fpc);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getFpNum(String id) {
|
|
return mapper.getFpNum(id);
|
|
}
|
|
|
|
/**
|
|
* 查询全部数量站班会数量
|
|
* @return
|
|
*/
|
|
public Integer getAllClassNum() {
|
|
return mapper.getAllClassNum();
|
|
}
|
|
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public void updaeUserInformation() {
|
|
try{
|
|
mapper.updaeUserInformation();
|
|
}catch (Exception e){
|
|
log.error(e.toString(),e);
|
|
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 删除已分配的数据
|
|
* @param user
|
|
*/
|
|
public void delUser(UserVo user) {
|
|
mapper.delUser(user.getId());
|
|
}
|
|
|
|
|
|
/**
|
|
* 查询属于变电站的数据集合
|
|
* @param
|
|
* @return
|
|
*/
|
|
public List<String> getBDZlist(Integer param) {
|
|
return mapper.getBDZlist(param);
|
|
}
|
|
|
|
public Integer getAllBDZClassNum() {
|
|
return mapper.getAllBDZClassNum();
|
|
}
|
|
|
|
public Integer delNotJsbUser(UserVo user) {
|
|
return mapper.delNotJsbUser(user);
|
|
}
|
|
|
|
public Integer delNsbUser(UserVo user) {
|
|
return mapper.delNsbUser(user);
|
|
}
|
|
|
|
public List<String> getJsbList(String userId) {
|
|
return mapper.getJsbList(userId);
|
|
}
|
|
}
|