|
|
@@ -8,7 +8,6 @@ import com.railway.business.catenary.enums.JcebStatusEnum;
|
|
|
import com.railway.common.core.domain.entity.SysUser;
|
|
|
import com.railway.common.enums.PostTypeEnum;
|
|
|
import com.railway.common.utils.SecurityUtils;
|
|
|
-import com.railway.common.utils.bean.BeanUtils;
|
|
|
|
|
|
/**
|
|
|
* @author ZhaoMn
|
|
|
@@ -17,9 +16,14 @@ public class JcebQueryUtil {
|
|
|
|
|
|
private static JcebQueryParamVo getJcebQuery(){
|
|
|
SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
|
+ JcebQueryParamVo jcebQuery = new JcebQueryParamVo();
|
|
|
+ if(user.isAdmin()){
|
|
|
+ jcebQuery.setSubmitState(JcebStatusEnum.REPORTED.getCode());
|
|
|
+ jcebQuery.setCreateBy(null);
|
|
|
+ return jcebQuery;
|
|
|
+ }
|
|
|
String post = user.getPost();
|
|
|
PostTypeEnum postType = PostTypeEnum.ofValue(post);
|
|
|
- JcebQueryParamVo jcebQuery = new JcebQueryParamVo();
|
|
|
if(postType == PostTypeEnum.LEADER){
|
|
|
jcebQuery.setSubmitState(JcebStatusEnum.REPORTED.getCode());
|
|
|
jcebQuery.setDeptId(user.getDeptId());
|