非标功能完善

pull/237/head
Chengliang 1 year ago
parent 6154ece836
commit fcb53a4ff0

@ -26,7 +26,7 @@ public class CusBowserTreeBO {
.domid("sel_" + item.getId()) .domid("sel_" + item.getId())
.hasChild(item.getIsParent()) .hasChild(item.getIsParent())
.isLeaf(!item.getIsParent()) .isLeaf(!item.getIsParent())
.isopen(false) .isopen(true)
.key(getKey(item)) .key(getKey(item))
.name(item.getName()) .name(item.getName())
.build()).collect(Collectors.toList()); .build()).collect(Collectors.toList());

@ -106,7 +106,7 @@
select select
<include refid="baseColumns"/> <include refid="baseColumns"/>
from hrmsubcompany t from hrmsubcompany t
WHERE id IN WHERE (t.canceled is null or t.canceled != '1') and id IN
<foreach collection="ids" index="index" open="(" item="id" separator="," close=")"> <foreach collection="ids" index="index" open="(" item="id" separator="," close=")">
<if test="(index % 999) == 998"> NULL) OR id IN(</if>#{id} <if test="(index % 999) == 998"> NULL) OR id IN(</if>#{id}
</foreach> </foreach>
@ -117,25 +117,25 @@
<include refid="baseColumns"/> <include refid="baseColumns"/>
FROM FROM
hrmsubcompany t hrmsubcompany t
WHERE t.SUPSUBCOMID = 0 WHERE t.SUPSUBCOMID = 0 and (t.canceled is null or t.canceled != '1')
</select> </select>
<select id="hasSubs" resultType="java.lang.String"> <select id="hasSubs" resultType="java.lang.String">
select supsubcomid select supsubcomid
from hrmsubcompany from hrmsubcompany
where 1=1 where (canceled is null or canceled != '1')
<include refid="subsWhere"/> <include refid="subsWhere"/>
union union
select subcompanyid1 select subcompanyid1
from hrmdepartment from hrmdepartment
where 1=1 where (canceled is null or canceled != '1')
<include refid="subsWhere"/> <include refid="subsWhere"/>
</select> </select>
<select id="hasDetachSubs" resultType="java.lang.String"> <select id="hasDetachSubs" resultType="java.lang.String">
select supsubcomid select supsubcomid
from hrmsubcompany from hrmsubcompany
where 1=1 where (canceled is null or canceled != '1')
<include refid="subsWhere"/> <include refid="subsWhere"/>
and id in and id in
<foreach collection="companyIds" open="(" item="id" separator="," close=")"> <foreach collection="companyIds" open="(" item="id" separator="," close=")">
@ -144,7 +144,7 @@
union union
select subcompanyid1 select subcompanyid1
from hrmdepartment from hrmdepartment
where 1=1 where (canceled is null or canceled != '1')
<include refid="subsWhere"/> <include refid="subsWhere"/>
and subcompanyid1 in and subcompanyid1 in
<foreach collection="companyIds" open="(" item="id" separator="," close=")"> <foreach collection="companyIds" open="(" item="id" separator="," close=")">

@ -51,7 +51,7 @@
select select
<include refid="baseColumns"/> <include refid="baseColumns"/>
from hrmdepartment t from hrmdepartment t
where 1=1 where (t.canceled is null or t.canceled != '1')
<include refid="likeSQL"/> <include refid="likeSQL"/>
<if test=" departmentPO.subCompanyId1 != null "> <if test=" departmentPO.subCompanyId1 != null ">
and t.subCompanyId1 = #{departmentPO.subCompanyId1} and t.subCompanyId1 = #{departmentPO.subCompanyId1}
@ -137,7 +137,7 @@
<select id="hasSubs" resultType="java.lang.String"> <select id="hasSubs" resultType="java.lang.String">
select distinct supDepId select distinct supDepId
from hrmdepartment from hrmdepartment
where 1=1 where (canceled is null or canceled != '1')
<include refid="com.engine.organization.mapper.comp.CompMapper.subsWhere"/> <include refid="com.engine.organization.mapper.comp.CompMapper.subsWhere"/>
</select> </select>
<select id="countUsedInJob" resultType="java.lang.Integer"> <select id="countUsedInJob" resultType="java.lang.Integer">

@ -373,7 +373,7 @@ public class ChartServiceImpl extends Service implements ChartService {
chartPO.setFname(name); chartPO.setFname(name);
// 岗位处理后的ID // 岗位处理后的ID
chartPO.setParentId(parentId); chartPO.setParentId(parentId);
chartPO.setExpand("0"); chartPO.setExpand("1");
chartPO.setHasChildren("0"); chartPO.setHasChildren("0");
chartPO.setBelongto(Util.null2String(belongTo)); chartPO.setBelongto(Util.null2String(belongTo));
chartPO.setCompanyWorkYear(companyWorkYear); chartPO.setCompanyWorkYear(companyWorkYear);

@ -94,9 +94,12 @@ public class FunctionOutStaffServiceImpl {
.sum(); .sum();
staffPO.setPermanentNum(sum); staffPO.setPermanentNum(sum);
Integer sums = staffPO.getPermanentNum() + staffPO.getFreezeNum(); Integer sums = staffPO.getPermanentNum() + staffPO.getFreezeNum();
//强控策略下不容许超编 //强控策略下不容许超编
if (staffPO.getControlPolicy().equals(HARDCONTROLLER)) { if (staffPO.getControlPolicy().equals(HARDCONTROLLER)) {
OrganizationAssert.isFalse(sums.compareTo(staffPO.getStaffNum()) > 0,"强控策略下不容许超编"); //冻结数释放
OrganizationAssert.isFalse((sums > staffPO.getStaffNum() && staffPO.getFreezeNum() > 0),"强控策略下请先释放当前冻结数后再完成入职操作");
OrganizationAssert.isFalse( sums > staffPO.getStaffNum(),"强控策略下不容许超编");
} }
//向上部门 分部在编数调整 //向上部门 分部在编数调整
upwardReviewSums(param); upwardReviewSums(param);

@ -190,6 +190,10 @@ public class OrganizationFormItemUtil {
CustomBrowserBean customBrowserBean = JSONObject.parseObject(s, CustomBrowserBean.class); CustomBrowserBean customBrowserBean = JSONObject.parseObject(s, CustomBrowserBean.class);
customBrowserBean.setHasLeftTree(true); customBrowserBean.setHasLeftTree(true);
customBrowserBean.setLeftToSearchKey("treeKey"); customBrowserBean.setLeftToSearchKey("treeKey");
Map<String,Object> map = new HashMap<>(2);
map.put("width",988);
customBrowserBean.setModalStyle(map);
browser.setBrowserConditionParam(customBrowserBean); browser.setBrowserConditionParam(customBrowserBean);
} }
return browser; return browser;

Loading…
Cancel
Save