登记方案 职等职级接口

pull/5/MERGE
dxfeng 3 years ago
parent c32eeed79c
commit 4f51589a84

@ -5,12 +5,11 @@ import com.engine.organization.enums.OperateTypeEnum;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* @Author weaver_cl * @Author dxfeng
* @Description: TODO * @Description: TODO
* @Date 2022/4/27 * @Date 2022/5/9
* @Version V1.0 * @Version V1.0
**/ **/
@Target({ElementType.PARAMETER, ElementType.METHOD}) @Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Documented @Documented

@ -6,12 +6,10 @@ import com.cloudstore.eccom.pc.table.WeaTableType;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* * @Author dxfeng
* <p>Copyright: Copyright (c) 2022</p> * @Description: TODO
* <p>Company: </p> * @Date 2022/5/9
* * @Version V1.0
* @author qiantao
* @version 1.0
**/ **/
@Target({ElementType.TYPE}) @Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

@ -3,12 +3,10 @@ package com.engine.organization.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* * @Author dxfeng
* <p>Copyright: Copyright (c) 2022</p> * @Description: TODO
* <p>Company: </p> * @Date 2022/5/9
* * @Version V1.0
* @author qiantao
* @version 1.0
**/ **/
@Target({ElementType.FIELD}) @Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

@ -3,12 +3,10 @@ package com.engine.organization.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* * @Author dxfeng
* <p>Copyright: Copyright (c) 2022</p> * @Description: TODO
* <p>Company: </p> * @Date 2022/5/9
* * @Version V1.0
* @author qiantao
* @version 1.0
**/ **/
@Target({ElementType.ANNOTATION_TYPE}) @Target({ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

@ -83,7 +83,7 @@ public class SchemeDTO {
.schemeNo(param.getSchemeNo() == null ? null : param.getSchemeNo()) .schemeNo(param.getSchemeNo() == null ? null : param.getSchemeNo())
.schemeName(param.getSchemeName() == null ? null : param.getSchemeName()) .schemeName(param.getSchemeName() == null ? null : param.getSchemeName())
.schemeDescription(param.getSchemeDescription() == null ? null : param.getSchemeDescription()) .schemeDescription(param.getSchemeDescription() == null ? null : param.getSchemeDescription())
.forbiddenTag(param.getForbiddenTag() == null ? 0 : param.getForbiddenTag() ? 1 : 0) .forbiddenTag(param.getForbiddenTag() == null ? null : param.getForbiddenTag() ? 1 : 0)
.deleteType(0) .deleteType(0)
.createTime(new Date()) .createTime(new Date())
.updateTime(new Date()) .updateTime(new Date())

@ -39,6 +39,9 @@ public class SchemeTableVO {
private Long id; private Long id;
/**
*
*/
@OrganizationTableColumn(text = "编号", width = "25%", column = "scheme_no") @OrganizationTableColumn(text = "编号", width = "25%", column = "scheme_no")
private String schemeNo; private String schemeNo;
/** /**
@ -47,11 +50,15 @@ public class SchemeTableVO {
@OrganizationTableColumn(text = "方案名称", width = "25%", column = "scheme_name") @OrganizationTableColumn(text = "方案名称", width = "25%", column = "scheme_name")
private String schemeName; private String schemeName;
//薪资档案引用 /**
*
*/
@OrganizationTableColumn(text = "方案说明", width = "25%", column = "scheme_description") @OrganizationTableColumn(text = "方案说明", width = "25%", column = "scheme_description")
private String schemeDescription; private String schemeDescription;
//默认使用 /**
*
*/
@OrganizationTableColumn(text = "禁用标记", width = "25%", column = "forbidden_tag") @OrganizationTableColumn(text = "禁用标记", width = "25%", column = "forbidden_tag")
private Integer forbiddenTag; private Integer forbiddenTag;
} }

@ -28,7 +28,8 @@
, t.update_time , t.update_time
</sql> </sql>
<select id="listSchemesByIds" parameterType="com.engine.organization.entity.scheme.po.SchemePO" resultMap="BaseResultMap"> <select id="listSchemesByIds" parameterType="com.engine.organization.entity.scheme.po.SchemePO"
resultMap="BaseResultMap">
select select
<include refid="baseColumns"/> <include refid="baseColumns"/>
from jcl_org_scheme t from jcl_org_scheme t
@ -67,9 +68,7 @@
<if test="schemeDescription != null "> <if test="schemeDescription != null ">
scheme_description, scheme_description,
</if> </if>
<if test="forbiddenTag != null ">
forbidden_tag, forbidden_tag,
</if>
</trim> </trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=","> <trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="creator != null"> <if test="creator != null">
@ -96,9 +95,7 @@
<if test="schemeDescription != null "> <if test="schemeDescription != null ">
#{schemeDescription}, #{schemeDescription},
</if> </if>
<if test="forbiddenTag != null "> 0,
#{forbiddenTag},
</if>
</trim> </trim>
</insert> </insert>
@ -106,13 +103,13 @@
update jcl_org_scheme update jcl_org_scheme
<set> <set>
creator=#{creator}, creator=#{creator},
delete_type=#{deleteType},
create_time=#{createTime},
update_time=#{updateTime}, update_time=#{updateTime},
scheme_no=#{schemeNo}, scheme_no=#{schemeNo},
scheme_name=#{schemeName}, scheme_name=#{schemeName},
scheme_description=#{schemeDescription}, scheme_description=#{schemeDescription},
<if test="forbiddenTag != null ">
forbidden_tag=#{forbiddenTag}, forbidden_tag=#{forbiddenTag},
</if>
</set> </set>
WHERE id = #{id} AND delete_type = 0 WHERE id = #{id} AND delete_type = 0
</update> </update>

@ -61,7 +61,7 @@ public interface SchemeService {
/** /**
* *
* *
* @param params * @param params
* @return * @return

@ -5,6 +5,7 @@ import com.api.browser.bean.SearchConditionItem;
import com.cloudstore.eccom.result.WeaResultMsg; import com.cloudstore.eccom.result.WeaResultMsg;
import com.engine.core.impl.Service; import com.engine.core.impl.Service;
import com.engine.organization.component.OrganizationWeaTable; import com.engine.organization.component.OrganizationWeaTable;
import com.engine.organization.entity.TopMenuBtn;
import com.engine.organization.entity.scheme.dto.SchemeDTO; import com.engine.organization.entity.scheme.dto.SchemeDTO;
import com.engine.organization.entity.scheme.param.SchemeSearchParam; import com.engine.organization.entity.scheme.param.SchemeSearchParam;
import com.engine.organization.entity.scheme.po.SchemePO; import com.engine.organization.entity.scheme.po.SchemePO;
@ -106,10 +107,10 @@ public class SchemeServiceImpl extends Service implements SchemeService {
Map<String, Object> apiDatas = new HashMap<>(); Map<String, Object> apiDatas = new HashMap<>();
List<SearchConditionItem> selectItems = new ArrayList<>(); List<SearchConditionItem> selectItems = new ArrayList<>();
List<SearchConditionGroup> addGroups = new ArrayList<>(); List<SearchConditionGroup> addGroups = new ArrayList<>();
SearchConditionItem schemeNameCondition = OrganizationFormItemUtil.inputItem(user, 2, 16, 3, 50, "方案名称", "schemeName"); SearchConditionItem schemeNameCondition = OrganizationFormItemUtil.inputItem(user, 2, 17, 3, 50, "方案名称", "schemeName");
schemeNameCondition.setRules("required"); schemeNameCondition.setRules("required|string");
SearchConditionItem schemeNoCondition = OrganizationFormItemUtil.inputItem(user, 2, 16, 3, 50, "方案编号", "schemeNo"); SearchConditionItem schemeNoCondition = OrganizationFormItemUtil.inputItem(user, 2, 17, 3, 50, "方案编号", "schemeNo");
schemeNoCondition.setRules("required"); schemeNoCondition.setRules("required|string");
SearchConditionItem textareaItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 60, "方案说明", "schemeDescription"); SearchConditionItem textareaItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 60, "方案说明", "schemeDescription");
// 编辑状态下赋值操作 // 编辑状态下赋值操作
@ -133,9 +134,14 @@ public class SchemeServiceImpl extends Service implements SchemeService {
@Override @Override
public Map<String, Object> getTableBtn() { public Map<String, Object> getTableBtn() {
Map<String, Object> apiDatas = new HashMap<>(); Map<String, Object> btnDatas = new HashMap<>();
ArrayList<TopMenuBtn> btnList = new ArrayList<>();
return apiDatas; // 新建
btnList.add(TopMenuBtn.builder().isBatch("1").isTop("1").menuFun("new").menuIcon("icon-coms-New-Flow").menuName("新建").type( "BTN_Addnew").build());
// 批量删除
btnList.add(TopMenuBtn.builder().isBatch("1").isTop("1").menuFun("batchDelete").menuIcon("icon-coms-Batch-delete").menuName("批量删除").type( "BTN_BatchDelete").build());
btnDatas.put("topMenu",btnList);
return btnDatas;
} }
/** /**

@ -43,8 +43,7 @@ public class SchemeController {
@GET @GET
@Path("/getTable") @Path("/getTable")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public ReturnResult listScheme(@Context HttpServletRequest request, @Context HttpServletResponse response public ReturnResult listScheme(@Context HttpServletRequest request, @Context HttpServletResponse response) {
) {
try { try {
User user = HrmUserVarify.getUser(request, response); User user = HrmUserVarify.getUser(request, response);
Map<String, Object> map = ParamUtil.request2Map(request); Map<String, Object> map = ParamUtil.request2Map(request);
@ -166,5 +165,17 @@ public class SchemeController {
} }
} }
@GET
@Path("/getTableBtn")
@Produces(MediaType.APPLICATION_JSON)
public ReturnResult getTableBtn(@Context HttpServletRequest request, @Context HttpServletResponse response) {
try {
User user = HrmUserVarify.getUser(request, response);
return ReturnResult.successed(getSchemeWrapper(user).getTableBtn());
} catch (Exception e) {
return ReturnResult.exceptionHandle(e.getMessage());
}
}
} }

@ -72,11 +72,30 @@ public class SchemeWrapper extends Service {
} }
/**
*
* @param params
* @return
*/
public Map<String, Object> getSearchCondition(Map<String, Object> params) { public Map<String, Object> getSearchCondition(Map<String, Object> params) {
return getSchemeService(user).getSearchCondition(params); return getSchemeService(user).getSearchCondition(params);
} }
/**
*
* @param params
* @return
*/
public Map<String, Object> getSchemeForm(Map<String, Object> params) { public Map<String, Object> getSchemeForm(Map<String, Object> params) {
return getSchemeService(user).getSchemeForm(params); return getSchemeService(user).getSchemeForm(params);
} }
/**
*
* @return
*/
public Map<String, Object> getTableBtn() {
return getSchemeService(user).getTableBtn();
}
} }

Loading…
Cancel
Save