Commit af469051 authored by 廖旭伟's avatar 廖旭伟

窗口人员自评考核审核时可以修改分数

parent ed37fe3e
...@@ -3,6 +3,8 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -3,6 +3,8 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformEntity; import com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformEntity;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.window.model.WindowWorkmanPerformEntity;
import lombok.Data; import lombok.Data;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -19,5 +21,5 @@ public class CheckWindowWorkmanPerformVo extends BaseEntityLong { ...@@ -19,5 +21,5 @@ public class CheckWindowWorkmanPerformVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */ /** 序号,主键,自增长列表 */
private List <Long> idList; private List <Long> idList;
private WindowWorkmanPerformEntity windowWorkmanPerform;
} }
\ No newline at end of file
...@@ -20,6 +20,7 @@ import com.mortals.xhx.module.dept.model.DeptPerformStatQuery; ...@@ -20,6 +20,7 @@ import com.mortals.xhx.module.dept.model.DeptPerformStatQuery;
import com.mortals.xhx.module.staff.model.*; import com.mortals.xhx.module.staff.model.*;
import com.mortals.xhx.module.staff.service.StaffPerformSummaryService; import com.mortals.xhx.module.staff.service.StaffPerformSummaryService;
import com.mortals.xhx.module.staff.service.StaffService; import com.mortals.xhx.module.staff.service.StaffService;
import com.mortals.xhx.module.window.service.WindowWorkmanPerformService;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -61,6 +62,8 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp ...@@ -61,6 +62,8 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
private ICacheService cacheService; private ICacheService cacheService;
@Autowired @Autowired
private StaffService staffService; private StaffService staffService;
@Autowired
private WindowWorkmanPerformService windowWorkmanPerformService;
@Override @Override
public void examine(CheckWindowWorkmanPerformEntity entity, Context context) throws AppException { public void examine(CheckWindowWorkmanPerformEntity entity, Context context) throws AppException {
...@@ -71,6 +74,9 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp ...@@ -71,6 +74,9 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
if (temp == null) { if (temp == null) {
throw new AppException("核查记录ID不正确"); throw new AppException("核查记录ID不正确");
} }
if(entity.getWindowWorkmanPerform() != null){
windowWorkmanPerformService.update(entity.getWindowWorkmanPerform(),context);
}
if (context != null && context.getUser() != null) { if (context != null && context.getUser() != null) {
IUser user = context.getUser(); IUser user = context.getUser();
entity.setUpdateUserId(user.getId()); entity.setUpdateUserId(user.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment