Pre Merge pull request !103 from reset/develop
commit
7fb969798b
@ -0,0 +1,71 @@
|
|||||||
|
-- 等级方案
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220601,'等级方案权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220601,7,'等级方案权限','等级方案权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220601,8,'Scheme Right','Scheme Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220601,'等级方案权限','Scheme:All',-20220601) ;
|
||||||
|
|
||||||
|
-- 职等
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220602,'职等权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220602,7,'职等权限','职等权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220602,8,'Level Right','Level Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220602,'职等权限','Level:All',-20220602) ;
|
||||||
|
|
||||||
|
-- 职级
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220603,'职级权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220603,7,'职级权限','职级权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220603,8,'Grade Right','Grade Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220603,'职级权限','Grade:All',-20220603) ;
|
||||||
|
|
||||||
|
-- 岗位序列
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220604,'岗位序列权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220604,7,'岗位序列权限','岗位序列权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220604,8,'Sequence Right','Sequence Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220604,'岗位序列权限','Sequence:All',-20220604) ;
|
||||||
|
|
||||||
|
-- 职务分类
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220605,'职务分类权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220605,7,'职务分类权限','职务分类权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220605,8,'Post Right','Post Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220605,'职务分类权限','Post:All',-20220605) ;
|
||||||
|
|
||||||
|
-- 职务信息
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220606,'职务信息权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220606,7,'职务信息权限','职务信息权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220606,8,'PostInfo Right','PostInfo Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220606,'职务信息权限','PostInfo:All',-20220606) ;
|
||||||
|
|
||||||
|
-- 集团管理
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220607,'集团管理权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220607,7,'集团管理权限','集团管理权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220607,8,'Group Right','Group Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220607,'集团管理权限','Group:All',-20220607) ;
|
||||||
|
|
||||||
|
-- 公司/分部管理
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220608,'公司/分部管理权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220608,7,'公司/分部管理权限','公司/分部管理权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220608,8,'Company Right','Company Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220608,'公司/分部管理权限','Company:All',-20220608) ;
|
||||||
|
|
||||||
|
-- 部门管理
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220609,'部门管理权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220609,7,'部门管理权限','部门管理权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220609,8,'Department Right','Department Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220609,'部门管理权限','Department:All',-20220609) ;
|
||||||
|
|
||||||
|
-- 岗位管理
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220610,'岗位管理权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220610,7,'岗位管理权限','岗位管理权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220610,8,'Job Right','Job Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220610,'岗位管理权限','Job:All',-20220610) ;
|
||||||
|
|
||||||
|
-- 编制方案
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220611,'编制方案权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220611,7,'编制方案权限','编制方案权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220611,8,'StaffPlan Right','StaffPlan Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220611,'编制方案权限','StaffPlan:All',-20220611) ;
|
||||||
|
|
||||||
|
-- 编制表
|
||||||
|
insert into SystemRights (id,rightdesc,righttype) values (-20220612,'编制表权限','0');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220612,7,'编制表权限','编制表权限');
|
||||||
|
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (-20220612,8,'Staff Right','Staff Right');
|
||||||
|
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (-20220612,'编制表权限','Staff:All',-20220612) ;
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.api.organization.web;
|
||||||
|
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author weaver_cl
|
||||||
|
* @Description:
|
||||||
|
* @Date 2022/6/13
|
||||||
|
* @Version V1.0
|
||||||
|
**/
|
||||||
|
@Path("/bs/hrmorganization/fieldDefined")
|
||||||
|
public class FieldDefinedController extends com.engine.organization.web.FieldDefinedController {
|
||||||
|
}
|
@ -0,0 +1,116 @@
|
|||||||
|
package com.engine.organization.entity;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.api.browser.bean.SearchConditionOption;
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/13
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public class SelectOptionParam {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下拉框Json转换
|
||||||
|
*
|
||||||
|
* @param customValue
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static List<SearchConditionOption> convertJsonToListOption(String customValue) {
|
||||||
|
List<SearchConditionOption> selectOptions = new ArrayList<>();
|
||||||
|
JSONArray objects = JSONObject.parseArray(customValue);
|
||||||
|
if (objects.size() < 3) {
|
||||||
|
return selectOptions;
|
||||||
|
}
|
||||||
|
JSONObject o = (JSONObject) objects.get(2);
|
||||||
|
JSONArray datas = o.getJSONArray("datas");
|
||||||
|
if (!datas.isEmpty()) {
|
||||||
|
int size = datas.size();
|
||||||
|
for (int i = 0; i < size; i++) {
|
||||||
|
JSONObject jsonObject = (JSONObject) datas.get(i);
|
||||||
|
SearchConditionOption option = new SearchConditionOption(StringUtils.isEmpty(jsonObject.getString("key")) ? i + "" : jsonObject.getString("key"), jsonObject.getString("option"));
|
||||||
|
selectOptions.add(option);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return selectOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取自定义浏览按钮标识
|
||||||
|
*
|
||||||
|
* @param customValue
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String getCustomBrowserId(String customValue) {
|
||||||
|
try {
|
||||||
|
JSONArray objects = JSONObject.parseArray(customValue);
|
||||||
|
if (null != objects && objects.size() > 2) {
|
||||||
|
JSONObject object = (JSONObject) objects.get(2);
|
||||||
|
return object.getString("value");
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
return customValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取自定义浏览按钮标识
|
||||||
|
*
|
||||||
|
* @param customValue
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String getCustomBrowserValueSpan(String customValue) {
|
||||||
|
JSONArray objects = JSONObject.parseArray(customValue);
|
||||||
|
if (null != objects && objects.size() > 2) {
|
||||||
|
JSONObject object = (JSONObject) objects.get(2);
|
||||||
|
return object.getString("valueSpan");
|
||||||
|
}
|
||||||
|
return customValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取文本长度
|
||||||
|
*
|
||||||
|
* @param customValue
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String getTextLength(String customValue) {
|
||||||
|
JSONArray objects = JSONObject.parseArray(customValue);
|
||||||
|
|
||||||
|
if (null != objects && objects.size() > 2) {
|
||||||
|
return objects.get(2).toString();
|
||||||
|
}
|
||||||
|
return customValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取下拉框信息
|
||||||
|
*
|
||||||
|
* @param customValue
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static List<Object> getSelectFields(String customValue) {
|
||||||
|
List<Object> selectFields = new ArrayList<>();
|
||||||
|
JSONArray objects = JSONObject.parseArray(customValue);
|
||||||
|
if (objects.size() < 3) {
|
||||||
|
return selectFields;
|
||||||
|
}
|
||||||
|
JSONObject o = (JSONObject) objects.get(2);
|
||||||
|
JSONArray datas = o.getJSONArray("datas");
|
||||||
|
if (!datas.isEmpty()) {
|
||||||
|
int size = datas.size();
|
||||||
|
for (int i = 0; i < size; i++) {
|
||||||
|
selectFields.add(datas.get(i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return selectFields;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
package com.engine.organization.entity.department.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/02
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DepartmentMergeParam {
|
||||||
|
/**
|
||||||
|
* 所选部门
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 合并部门
|
||||||
|
*/
|
||||||
|
private Long department;
|
||||||
|
/**
|
||||||
|
* 合并后名称
|
||||||
|
*/
|
||||||
|
private String mergeName;
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.engine.organization.entity.department.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/02
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DepartmentMoveParam {
|
||||||
|
private Long id;
|
||||||
|
private String moveType;
|
||||||
|
private Long company;
|
||||||
|
private Long department;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.engine.organization.entity.department.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/01
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DeptCopyParam {
|
||||||
|
private String ids;
|
||||||
|
|
||||||
|
private String company;
|
||||||
|
/**
|
||||||
|
* 是否复制岗位
|
||||||
|
*/
|
||||||
|
private String copyJob;
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.engine.organization.entity.extend;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/13
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public enum ExtendInfoOperateType {
|
||||||
|
LIST("list"),
|
||||||
|
SEARCH("search"),
|
||||||
|
EDIT("edit"),
|
||||||
|
ADD("add");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
ExtendInfoOperateType(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.engine.organization.entity.extend.bo;
|
||||||
|
|
||||||
|
import com.engine.organization.entity.extend.po.ExtendGroupPO;
|
||||||
|
import com.engine.organization.entity.extend.po.ExtendTitlePO;
|
||||||
|
import com.engine.organization.entity.fieldset.vo.TypeTreeVO;
|
||||||
|
import com.engine.organization.mapper.extend.ExtendTitleMapper;
|
||||||
|
import com.engine.organization.util.db.MapperProxyFactory;
|
||||||
|
import com.google.common.collect.Lists;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author weaver_cl
|
||||||
|
* @Description:
|
||||||
|
* @Date 2022/6/14
|
||||||
|
* @Version V1.0
|
||||||
|
**/
|
||||||
|
public class ExtendGroupBO {
|
||||||
|
|
||||||
|
public static List<TypeTreeVO> buildTypeTree(List<ExtendGroupPO> extendGroupPOS) {
|
||||||
|
|
||||||
|
if (CollectionUtils.isEmpty(extendGroupPOS)) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
List<TypeTreeVO> typeTreeVOS = extendGroupPOS.stream().map(e ->
|
||||||
|
TypeTreeVO.builder()
|
||||||
|
.canClick(true)
|
||||||
|
.addChild(e.getPid() == null)
|
||||||
|
.domid(String.valueOf(e.getId()))
|
||||||
|
.childs(Lists.newArrayList())
|
||||||
|
.hasGroup(isHasGroup(e.getId()))
|
||||||
|
.isShow(e.getIsShow())
|
||||||
|
.key(e.getId())
|
||||||
|
.name(e.getGroupName())
|
||||||
|
.viewAttr(e.getIsSystemDefault() == 0 ? 1 : 2)
|
||||||
|
.pid(e.getPid())
|
||||||
|
.build()).collect(Collectors.toList());
|
||||||
|
|
||||||
|
//获取非一级
|
||||||
|
Map<Long, List<TypeTreeVO>> collects = typeTreeVOS.stream().filter(item -> item.getPid() != null).collect(Collectors.groupingBy(TypeTreeVO::getPid));
|
||||||
|
|
||||||
|
return typeTreeVOS.stream().peek(e -> {
|
||||||
|
e.setChilds(collects.get(e.getKey()));
|
||||||
|
e.setHaschild(collects.get(e.getKey()) != null && collects.get(e.getKey()).size() > 0);
|
||||||
|
}).filter(item -> item.getPid() == null).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private static boolean isHasGroup(Long id) {
|
||||||
|
List<ExtendTitlePO> titlesByGroupID = MapperProxyFactory.getProxy(ExtendTitleMapper.class).getTitlesByGroupID(id);
|
||||||
|
return titlesByGroupID.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取对应表名
|
||||||
|
*
|
||||||
|
* @param extendGroupPO
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String getTableNameByGroupPO(ExtendGroupPO extendGroupPO) {
|
||||||
|
String tableName = "";
|
||||||
|
switch (extendGroupPO.getExtendType()) {
|
||||||
|
case 1:
|
||||||
|
tableName = "JCL_ORG_COMP";
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
tableName = "JCL_ORG_DEPT";
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
tableName = "JCL_ORG_JOB";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (extendGroupPO.getIsSystemDefault() == 0) {
|
||||||
|
|
||||||
|
} else if (null == extendGroupPO.getPid()) {
|
||||||
|
tableName += "EXT";
|
||||||
|
} else {
|
||||||
|
tableName += "EXT_DT1";
|
||||||
|
}
|
||||||
|
return tableName;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
package com.engine.organization.entity.extend.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import weaver.general.StringUtil;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/16
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ExtendFieldSearchParam {
|
||||||
|
private String id;
|
||||||
|
private Long groupId;
|
||||||
|
private Long groupType;
|
||||||
|
|
||||||
|
|
||||||
|
public Collection<Long> getId() {
|
||||||
|
if (StringUtil.isEmpty(id)) {
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
return Arrays.stream(id.split(",")).map(Long::parseLong).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.engine.organization.entity.extend.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/16
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ExtendInfoChangeParam {
|
||||||
|
private String fieldids;
|
||||||
|
private String fieldnames;
|
||||||
|
private Long groupid;
|
||||||
|
private Long scopeid;
|
||||||
|
}
|
@ -0,0 +1,130 @@
|
|||||||
|
package com.engine.organization.entity.extend.param;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.engine.hrm.biz.FieldParam;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import weaver.general.Util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/15
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ExtendInfoFieldParam {
|
||||||
|
private Long id;
|
||||||
|
// field_name
|
||||||
|
private String fieldname;
|
||||||
|
// field_name_desc
|
||||||
|
private String fieldlabel;
|
||||||
|
|
||||||
|
private Object fieldType;
|
||||||
|
|
||||||
|
private String enable;
|
||||||
|
|
||||||
|
private String required;
|
||||||
|
|
||||||
|
private String isModify;
|
||||||
|
|
||||||
|
private String key;
|
||||||
|
|
||||||
|
public String getControlType() {
|
||||||
|
JSONArray fieldType = (JSONArray) this.getFieldType();
|
||||||
|
String fieldHtmlType = Util.null2String(fieldType.get(0));
|
||||||
|
if (fieldHtmlType.equals("input")) {
|
||||||
|
fieldHtmlType = "1";
|
||||||
|
} else if (fieldHtmlType.equals("textarea")) {
|
||||||
|
fieldHtmlType = "2";
|
||||||
|
} else if (fieldHtmlType.equals("browser")) {
|
||||||
|
fieldHtmlType = "3";
|
||||||
|
} else if (fieldHtmlType.equals("check")) {
|
||||||
|
fieldHtmlType = "4";
|
||||||
|
} else if (fieldHtmlType.equals("select")) {
|
||||||
|
fieldHtmlType = "5";
|
||||||
|
} else if (fieldHtmlType.equals("upload")) {
|
||||||
|
fieldHtmlType = "6";
|
||||||
|
}
|
||||||
|
return fieldHtmlType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBrowserType(String controlType) {
|
||||||
|
String browserType = "1";
|
||||||
|
JSONArray fieldType = (JSONArray) this.getFieldType();
|
||||||
|
if (fieldType.size() > 1) {
|
||||||
|
browserType = Util.null2String(fieldType.get(1));
|
||||||
|
}
|
||||||
|
if (controlType.equals("1")) {
|
||||||
|
if (browserType.equals("text")) {
|
||||||
|
browserType = "1";
|
||||||
|
} else if (browserType.equals("int")) {
|
||||||
|
browserType = "2";
|
||||||
|
} else if (browserType.equals("float")) {
|
||||||
|
browserType = "3";
|
||||||
|
} else if (browserType.equals("file")) {
|
||||||
|
browserType = "1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (controlType.equals("2")) {
|
||||||
|
browserType = "1";
|
||||||
|
} else if (controlType.equals("3")) {
|
||||||
|
browserType = Util.null2String(((JSONObject) fieldType.get(1)).get("value"));
|
||||||
|
} else if (controlType.equals("4")) {
|
||||||
|
browserType = "1";
|
||||||
|
} else if (controlType.equals("5")) {
|
||||||
|
browserType = "1";
|
||||||
|
} else if (controlType.equals("6")) {
|
||||||
|
if (browserType.equals("file")) {
|
||||||
|
browserType = "1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return browserType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDbType(String controlType, String browserType) {
|
||||||
|
FieldParam fp = new FieldParam();
|
||||||
|
if (controlType.equals("1")) {
|
||||||
|
JSONArray fieldType = (JSONArray) this.getFieldType();
|
||||||
|
String dbLength = "100";
|
||||||
|
if (fieldType.size() > 2) {
|
||||||
|
dbLength = fieldType.get(2).toString();
|
||||||
|
}
|
||||||
|
fp.setSimpleText(Util.getIntValue(browserType, -1), dbLength);
|
||||||
|
} else if (controlType.equals("2")) {
|
||||||
|
fp.setText();
|
||||||
|
} else if (controlType.equals("3")) {
|
||||||
|
fp.setBrowser(Util.getIntValue(browserType, -1));
|
||||||
|
} else if (controlType.equals("4")) {
|
||||||
|
fp.setCheck();
|
||||||
|
} else if (controlType.equals("5")) {
|
||||||
|
fp.setSelect();
|
||||||
|
} else if (controlType.equals("6")) {
|
||||||
|
fp.setAttach();
|
||||||
|
}
|
||||||
|
return fp.getFielddbtype();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String toDbc(String input) {
|
||||||
|
if (StringUtils.isBlank(input)) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
char[] c = input.toCharArray();
|
||||||
|
for (int i = 0; i < c.length; i++) {
|
||||||
|
if (c[i] == 12288) {
|
||||||
|
c[i] = (char) 32;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (c[i] > 65280 && c[i] < 65375) {
|
||||||
|
c[i] = (char) (c[i] - 65248);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return new String(c);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.engine.organization.entity.extend.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/15
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ExtendTitleSaveParam {
|
||||||
|
private String data;
|
||||||
|
private Long groupType;
|
||||||
|
private Long id;
|
||||||
|
private String groupName;
|
||||||
|
private String isShow;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package com.engine.organization.entity.extend.po;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/14
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ExtendTitlePO {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组标识
|
||||||
|
*/
|
||||||
|
private Long groupId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组名称
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
/**
|
||||||
|
* 展示排序
|
||||||
|
*/
|
||||||
|
private Integer showOrder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否展示
|
||||||
|
*/
|
||||||
|
private String isShow;
|
||||||
|
|
||||||
|
private Integer isSystemDefault;
|
||||||
|
|
||||||
|
private Long creator;
|
||||||
|
private Integer deleteType;
|
||||||
|
private Date createTime;
|
||||||
|
private Date updateTime;
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.engine.organization.entity.fieldset.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author weaver_cl
|
||||||
|
* @Description:
|
||||||
|
* @Date 2022/6/15
|
||||||
|
* @Version V1.0
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class FieldTypeTreeParam {
|
||||||
|
|
||||||
|
private String data; //信息维护json数据
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String isShow;
|
||||||
|
|
||||||
|
private String groupOrder;
|
||||||
|
|
||||||
|
private List<FieldTypeTreeParam> childs;
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
package com.engine.organization.entity.fieldset.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author weaver_cl
|
||||||
|
* @description:
|
||||||
|
* @Date 2022/6/13
|
||||||
|
* @Version V1.0
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class TypeTreeVO {
|
||||||
|
|
||||||
|
//是否可以增加子节点
|
||||||
|
private boolean addChild;
|
||||||
|
|
||||||
|
private boolean canCanceled;
|
||||||
|
|
||||||
|
//当前节点是否可点击
|
||||||
|
private boolean canClick;
|
||||||
|
|
||||||
|
//树id
|
||||||
|
private String domid;
|
||||||
|
|
||||||
|
//是否存在分组
|
||||||
|
private boolean hasGroup;
|
||||||
|
|
||||||
|
//是否有子节点
|
||||||
|
private boolean haschild;
|
||||||
|
|
||||||
|
//是否是叶子节点
|
||||||
|
private boolean isLeaf;
|
||||||
|
|
||||||
|
//是否是父节点
|
||||||
|
private boolean isParent;
|
||||||
|
|
||||||
|
//是否默认选中
|
||||||
|
private boolean isSelected;
|
||||||
|
|
||||||
|
//是否展示
|
||||||
|
private String isShow;
|
||||||
|
|
||||||
|
//是否默认展开
|
||||||
|
private boolean isopen;
|
||||||
|
|
||||||
|
//键
|
||||||
|
private Long key;
|
||||||
|
|
||||||
|
//树名称
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
//子节点
|
||||||
|
private List<TypeTreeVO> childs;
|
||||||
|
|
||||||
|
//
|
||||||
|
private int viewAttr;
|
||||||
|
|
||||||
|
private ArrayList<TypeTreeVO> subs;
|
||||||
|
|
||||||
|
//父节点id
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.engine.organization.entity.job.param;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/01
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class JobCopyParam {
|
||||||
|
private String ids;
|
||||||
|
|
||||||
|
private String department;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.engine.organization.entity.job.vo;
|
||||||
|
|
||||||
|
import com.cloudstore.eccom.pc.table.WeaTableType;
|
||||||
|
import com.engine.organization.annotation.OrganizationTable;
|
||||||
|
import com.engine.organization.annotation.TableTitle;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/02
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@OrganizationTable(pageId = "434c1b24-e248-11ec-8a67-00e04c680716",
|
||||||
|
tableType = WeaTableType.NONE)
|
||||||
|
public class SingleJobTreeVO {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@TableTitle(title = "编号", dataIndex = "jobNo", key = "jobNo")
|
||||||
|
private String jobNo;
|
||||||
|
|
||||||
|
@TableTitle(title = "名称", dataIndex = "jobName", key = "jobName")
|
||||||
|
private String jobName;
|
||||||
|
|
||||||
|
@TableTitle(title = "上级岗位", dataIndex = "parentJobName", key = "parentJobName")
|
||||||
|
private String parentJobName;
|
||||||
|
|
||||||
|
private Long parentJob;
|
||||||
|
|
||||||
|
private Long parentDept;
|
||||||
|
|
||||||
|
private List<SingleJobTreeVO> children;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package com.engine.organization.entity.staff.po;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author:dxfeng
|
||||||
|
* @createTime: 2022/06/07
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class StaffsPO {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 编制ID
|
||||||
|
*/
|
||||||
|
private Long staffId;
|
||||||
|
/**
|
||||||
|
* 业务类型
|
||||||
|
*/
|
||||||
|
private Integer businessType;
|
||||||
|
/**
|
||||||
|
* 编制变动数
|
||||||
|
*/
|
||||||
|
private Integer changeNum;
|
||||||
|
/**
|
||||||
|
* 业务来源
|
||||||
|
*/
|
||||||
|
private Integer businessSource;
|
||||||
|
/**
|
||||||
|
* 关联流程
|
||||||
|
*/
|
||||||
|
private Integer requestId;
|
||||||
|
|
||||||
|
private Long creator;
|
||||||
|
private int deleteType;
|
||||||
|
private Date createTime;
|
||||||
|
private Date updateTime;
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue