简阳编制增加详情
This commit is contained in:
parent
8221b98624
commit
808939c0fd
|
|
@ -22,9 +22,13 @@ import lombok.NoArgsConstructor;
|
|||
@OrganizationTable(pageId = "80e7830c-18e8-4e14-8241-18821195ef31",
|
||||
fields = "t.id," +
|
||||
"t.lastname," +
|
||||
"t.mobile," +
|
||||
"t.companystartdate," +
|
||||
"t.sex",
|
||||
"t.workcode," +
|
||||
"t.sex," +
|
||||
"t.status," +
|
||||
"t.managerid," +
|
||||
"t.jobtitle," +
|
||||
"t.loginid," +
|
||||
"t.seclevel",
|
||||
fromSql = "FROM hrmresource t ",
|
||||
orderby = "id",
|
||||
primarykey = "id",
|
||||
|
|
@ -35,17 +39,26 @@ public class EmployeeTableVO {
|
|||
@OrganizationTableColumn(column = "id", display = false)
|
||||
private Long id;
|
||||
|
||||
@OrganizationTableColumn(text = "姓名", width = "25%", column = "lastname")
|
||||
@OrganizationTableColumn(text = "姓名", width = "10%", column = "lastname")
|
||||
private String lastname;
|
||||
|
||||
@OrganizationTableColumn(text = "性别", width = "25%", column = "sex",transmethod = "com.engine.organization.transmethod.JobTransMethod.getSexName")
|
||||
@OrganizationTableColumn(text = "编号", width = "10%", column = "workcode")
|
||||
private String workcode;
|
||||
|
||||
@OrganizationTableColumn(text = "性别", width = "10%", column = "sex",transmethod = "com.engine.organization.transmethod.JobTransMethod.getSexName")
|
||||
private String sex;
|
||||
|
||||
@OrganizationTableColumn(text = "手机", width = "25%", column = "mobile")
|
||||
private String mobile;
|
||||
@OrganizationTableColumn(text = "直接上级", width = "10%", column = "managerid",transmethod = "com.engine.organization.transmethod.ManagerDetachTransMethod.getManagerName")
|
||||
private String managerid;
|
||||
|
||||
@OrganizationTableColumn(text = "入职日期", width = "25%", column = "companystartdate")
|
||||
private String companystartdate;
|
||||
@OrganizationTableColumn(text = "岗位", width = "10%", column = "jobtitle",transmethod = "com.engine.organization.transmethod.JobTransMethod.getJobTitleName")
|
||||
private String jobtitle;
|
||||
|
||||
@OrganizationTableColumn(text = "登录名", width = "10%", column = "loginid")
|
||||
private String loginid;
|
||||
|
||||
@OrganizationTableColumn(text = "安全级别", width = "10%", column = "seclevel")
|
||||
private String seclevel;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,11 @@ import lombok.NoArgsConstructor;
|
|||
operates = {
|
||||
@OrganizationTableOperate(text = "编辑"),
|
||||
@OrganizationTableOperate(index = "1", text = "删除"),
|
||||
@OrganizationTableOperate(index = "2", text = "变更")
|
||||
}, tableType = WeaTableType.CHECKBOX
|
||||
@OrganizationTableOperate(index = "2", text = "变更"),
|
||||
@OrganizationTableOperate(index = "3", text = "详情")
|
||||
}, tableType = WeaTableType.CHECKBOX,
|
||||
operatePopedom = @OperatePopedom(transmethod = "com.engine.organization.util.ConfigTrans.formatStaffOperates", otherpara = "column:control_dimension")
|
||||
|
||||
|
||||
)
|
||||
public class StaffTableVO {
|
||||
|
|
@ -35,11 +38,7 @@ public class StaffTableVO {
|
|||
*/
|
||||
@OrganizationTableColumn(column = "id", display = false)
|
||||
private Long id;
|
||||
/**
|
||||
* 是否被引用
|
||||
*/
|
||||
@OrganizationTableColumn(column = "isUsed", display = false)
|
||||
private Integer isUsed;
|
||||
|
||||
/**
|
||||
* 方案id
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -149,4 +149,6 @@ public interface JobMapper {
|
|||
List<String> isAllowDelete(@Param("jobId") Long jobId);
|
||||
|
||||
JobPO getJobByResource(@Param("resourcePO") ResourcePO resourcePO);
|
||||
|
||||
String selectJobTitleById(@Param("id") String id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -512,12 +512,21 @@
|
|||
t.ec_department = h.departmentid
|
||||
where h.status < 4
|
||||
</select>
|
||||
|
||||
<select id="isAllowDelete" resultType="java.lang.String">
|
||||
select t.id
|
||||
from jcl_org_job t
|
||||
inner join hrmresource h on t.ec_jobtitle = h.jobtitle and t.ec_company = h.subcompanyid1 and
|
||||
t.ec_department = h.departmentid and t.id = #{jobId} and h.status < 4
|
||||
</select>
|
||||
|
||||
<select id="selectJobTitleById" resultType="java.lang.String">
|
||||
select jobtitlename
|
||||
from hrmjobtitles where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getJobByResource" resultType="com.engine.organization.entity.job.po.JobPO">
|
||||
select
|
||||
<include refid="baseColumns"/>
|
||||
|
|
|
|||
|
|
@ -52,6 +52,12 @@ public class JobTransMethod {
|
|||
return schemeMapper.getSchemeByID(Long.parseLong(schemeId)).getSchemeName();
|
||||
}
|
||||
|
||||
public static String getJobTitleName(String jobTitle) {
|
||||
JobMapper jobMapper = MapperProxyFactory.getProxy(JobMapper.class);
|
||||
return jobMapper.selectJobTitleById(jobTitle);
|
||||
}
|
||||
|
||||
|
||||
public static String getIsKeySpan(String isKey) {
|
||||
if ("1".equals(isKey)) {
|
||||
return "是";
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ public class ConfigTrans {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public static List<Object> formatSourceOperates(String id, String isDefault) {
|
||||
List list = Lists.newArrayList();
|
||||
list.add(true);
|
||||
|
|
@ -34,7 +35,9 @@ public class ConfigTrans {
|
|||
public static List<Object> formatStaffOperates(String id, String isDefault) {
|
||||
List list = Lists.newArrayList();
|
||||
list.add(true);
|
||||
if ("0".equals(isDefault)) {
|
||||
list.add(true);
|
||||
list.add(true);
|
||||
if ("3".equals(isDefault)) {
|
||||
list.add(true);
|
||||
} else {
|
||||
list.add(false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue