|
|
@ -31,6 +31,7 @@ import com.engine.organization.util.browser.OrganizationBrowserUtil;
|
|
|
|
import com.engine.organization.util.db.DBType;
|
|
|
|
import com.engine.organization.util.db.DBType;
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
import com.engine.organization.util.excel.ExcelUtil;
|
|
|
|
import com.engine.organization.util.excel.ExcelUtil;
|
|
|
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
@ -285,12 +286,13 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|
|
|
controlPolicyItem.setRules("required|string");
|
|
|
|
controlPolicyItem.setRules("required|string");
|
|
|
|
SearchConditionItem descriptionItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 200, "描述说明", "description");
|
|
|
|
SearchConditionItem descriptionItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 200, "描述说明", "description");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StaffPlanPO staffPlanPO = new StaffPlanPO();
|
|
|
|
// 编辑状态下赋值操作
|
|
|
|
// 编辑状态下赋值操作
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
if (!StringUtil.isEmpty(id)) {
|
|
|
|
if (!StringUtil.isEmpty(id)) {
|
|
|
|
StaffPO staffPO = getStaffMapper().getStaffByID(Integer.parseInt(id));
|
|
|
|
StaffPO staffPO = getStaffMapper().getStaffByID(Integer.parseInt(id));
|
|
|
|
OrganizationAssert.notNull(staffPO, "选择的数据不存在,或数据已删除");
|
|
|
|
OrganizationAssert.notNull(staffPO, "选择的数据不存在,或数据已删除");
|
|
|
|
|
|
|
|
staffPlanPO = getStaffPlanMapper().getStaffPlanByID(staffPO.getPlanId());
|
|
|
|
|
|
|
|
|
|
|
|
BrowserBean planIdItemBean = planIdItem.getBrowserConditionParam();
|
|
|
|
BrowserBean planIdItemBean = planIdItem.getBrowserConditionParam();
|
|
|
|
List<Map<String, Object>> planIdMaps = getStaffPlanMapper().listPlansByIds(DeleteParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
|
|
|
List<Map<String, Object>> planIdMaps = getStaffPlanMapper().listPlansByIds(DeleteParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
|
|
@ -317,9 +319,16 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|
|
|
descriptionItem.setValue(staffPO.getDescription());
|
|
|
|
descriptionItem.setValue(staffPO.getDescription());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
selectItems.add(planIdItem);
|
|
|
|
selectItems.add(planIdItem);
|
|
|
|
selectItems.add(ecCompanyItem);
|
|
|
|
if (StringUtil.isEmpty(id) || "1".equals(staffPlanPO.getControlDimension())) {
|
|
|
|
selectItems.add(ecDepartmentItem);
|
|
|
|
selectItems.add(ecCompanyItem);
|
|
|
|
selectItems.add(jobIdItem);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StringUtil.isEmpty(id) || "2".equals(staffPlanPO.getControlDimension())) {
|
|
|
|
|
|
|
|
selectItems.add(ecDepartmentItem);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StringUtil.isEmpty(id) || "3".equals(staffPlanPO.getControlDimension())) {
|
|
|
|
|
|
|
|
selectItems.add(jobIdItem);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
selectItems.add(staffNumItem);
|
|
|
|
selectItems.add(staffNumItem);
|
|
|
|
selectItems.add(controlPolicyItem);
|
|
|
|
selectItems.add(controlPolicyItem);
|
|
|
|
selectItems.add(descriptionItem);
|
|
|
|
selectItems.add(descriptionItem);
|
|
|
|