部门考核项查看
This commit is contained in:
parent
0e8b034c91
commit
adad656fd1
|
|
@ -14,14 +14,26 @@ import javax.validation.constraints.NotNull;
|
||||||
@ApiModel("部门普通考核项列表")
|
@ApiModel("部门普通考核项列表")
|
||||||
public class UnitStandardDto {
|
public class UnitStandardDto {
|
||||||
|
|
||||||
@NotNull(message = "用户id不能为空")
|
@NotNull(message = "用户不能为空")
|
||||||
@ApiModelProperty(value = "用户id",required = true)
|
@ApiModelProperty(value = "用户id",required = true)
|
||||||
private String userId;
|
private String userId;
|
||||||
|
|
||||||
|
@NotNull(message = "部门不能为空")
|
||||||
|
@ApiModelProperty(value = "部门id",required = true)
|
||||||
|
private String performId;
|
||||||
|
|
||||||
@NotNull(message = "考核不能为空")
|
@NotNull(message = "考核不能为空")
|
||||||
@ApiModelProperty(value = "考核id",required = true)
|
@ApiModelProperty(value = "考核id",required = true)
|
||||||
private String examineId;
|
private String examineId;
|
||||||
|
|
||||||
|
public String getPerformId() {
|
||||||
|
return performId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerformId(String performId) {
|
||||||
|
this.performId = performId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getExamineId() {
|
public String getExamineId() {
|
||||||
return examineId;
|
return examineId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,9 @@ public class SysUser implements Serializable {
|
||||||
@ApiModelProperty("职务id")
|
@ApiModelProperty("职务id")
|
||||||
private String listperformid;
|
private String listperformid;
|
||||||
|
|
||||||
|
@ApiModelProperty("部门id")
|
||||||
|
private String performId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 职务名
|
* 职务名
|
||||||
*/
|
*/
|
||||||
|
|
@ -256,6 +259,14 @@ public class SysUser implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
public String getPerformId() {
|
||||||
|
return performId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerformId(String performId) {
|
||||||
|
this.performId = performId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getUnitPath() {
|
public String getUnitPath() {
|
||||||
return unitPath;
|
return unitPath;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1896,6 +1896,7 @@ public class BaseController {
|
||||||
if(StringUtils.isNotBlank(sysUser.getSystitle())){
|
if(StringUtils.isNotBlank(sysUser.getSystitle())){
|
||||||
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(sysUser.getSystitle());
|
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(sysUser.getSystitle());
|
||||||
if(null != listPerform){
|
if(null != listPerform){
|
||||||
|
sysUser.setPerformId(listPerform.getSupclassid());
|
||||||
String titleName = listPerform.getPerformclassname();
|
String titleName = listPerform.getPerformclassname();
|
||||||
if(StringUtils.isNotBlank(sysUser.getSysunitorentname())){
|
if(StringUtils.isNotBlank(sysUser.getSysunitorentname())){
|
||||||
titleName = titleName.replace(sysUser.getSysunitorentname(),"");
|
titleName = titleName.replace(sysUser.getSysunitorentname(),"");
|
||||||
|
|
|
||||||
|
|
@ -508,7 +508,7 @@ public class ExamineController extends BaseController{
|
||||||
MultiResult<StandardInfo> result = new MultiResult<>();
|
MultiResult<StandardInfo> result = new MultiResult<>();
|
||||||
|
|
||||||
//部门id
|
//部门id
|
||||||
String unitId = getUnitId(unitStandardDto.getUserId());
|
String unitId = unitStandardDto.getPerformId();
|
||||||
//部门信息
|
//部门信息
|
||||||
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(unitId);
|
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(unitId);
|
||||||
if(null != listPerform && null != listPerform.getExamineState()){
|
if(null != listPerform && null != listPerform.getExamineState()){
|
||||||
|
|
@ -563,7 +563,7 @@ public class ExamineController extends BaseController{
|
||||||
MultiResult<StandardInfo> result = new MultiResult<>();
|
MultiResult<StandardInfo> result = new MultiResult<>();
|
||||||
|
|
||||||
//部门id
|
//部门id
|
||||||
String unitId = getUnitId(unitStandardDto.getUserId());
|
String unitId = unitStandardDto.getPerformId();
|
||||||
//部门信息
|
//部门信息
|
||||||
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(unitId);
|
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(unitId);
|
||||||
if(null != listPerform && null != listPerform.getExamineState()){
|
if(null != listPerform && null != listPerform.getExamineState()){
|
||||||
|
|
@ -590,7 +590,7 @@ public class ExamineController extends BaseController{
|
||||||
public MultiResult<StandardInfo> unitStandardList(@Valid UnitStandardDto unitStandardDto)throws Exception{
|
public MultiResult<StandardInfo> unitStandardList(@Valid UnitStandardDto unitStandardDto)throws Exception{
|
||||||
MultiResult<StandardInfo> result = new MultiResult<>();
|
MultiResult<StandardInfo> result = new MultiResult<>();
|
||||||
//部门id
|
//部门id
|
||||||
String unitId = getUnitId(unitStandardDto.getUserId());
|
String unitId = unitStandardDto.getPerformId();
|
||||||
//部门信息
|
//部门信息
|
||||||
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(unitId);
|
ListPerform listPerform = listPerformMapper.selectByPrimaryKey(unitId);
|
||||||
if(null != listPerform && null != listPerform.getExamineState()){
|
if(null != listPerform && null != listPerform.getExamineState()){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user