Commit 46eeef6d by Administrator

Merge branch 'tzq' into 'develop'

Tzq

See merge request 8timerv2/8timerapiv200!269
parents 199b578f c4f75224
......@@ -36,8 +36,7 @@ public class JxglServiceImpl implements JxglService {
performanceRating.setName("C");
performanceRating.setSectionMinScore(0);
performanceRating.setSectionMaxScore(60);
performanceRating.setRanks(0);
performanceRating.setRanks(1);
res = !performanceRating.insert() && res ? false : res;
performanceRating.setId(null);
......@@ -45,7 +44,7 @@ public class JxglServiceImpl implements JxglService {
performanceRating.setName("B");
performanceRating.setSectionMinScore(60);
performanceRating.setSectionMaxScore(80);
performanceRating.setRanks(0);
performanceRating.setRanks(2);
res = !performanceRating.insert() && res ? false : res;
performanceRating.setId(null);
......@@ -53,7 +52,7 @@ public class JxglServiceImpl implements JxglService {
performanceRating.setName("A");
performanceRating.setSectionMinScore(80);
performanceRating.setSectionMaxScore(100);
performanceRating.setRanks(0);
performanceRating.setRanks(3);
res = !performanceRating.insert() && res ? false : res;
return res;
......
......@@ -127,6 +127,9 @@ public class SpmkController {
@Autowired
private SpmkInitiatorConfigMapper spmkInitiatorConfigMapper;
@Autowired
private SpmkAssoBusinessFactory spmkAssoBusinessFactory;
private boolean ISFIRST = true; // 第一次启动审批流程
//TODO 审批模板组
......@@ -146,7 +149,6 @@ public class SpmkController {
return spmkApprovalTemplateG.insertOrUpdate() ?
ResultUtil.data(spmkApprovalTemplateG) : ResultUtil.error();
}
/**
......@@ -160,10 +162,8 @@ public class SpmkController {
if (spmkApprovalTemplateMapper.selectCount(new QueryWrapper<SpmkApprovalTemplate>().lambda().eq(SpmkApprovalTemplate::getApprovalTemplateGId, id)) > 0 )
return ResultUtil.error("审批模板组存在 模板,不可直接删除!");
return SpmkApprovalTemplateG.builder().id(id).build().deleteById() ?
ResultUtil.success() : ResultUtil.error("没有找到该对象");
}
/**
......@@ -652,9 +652,6 @@ public class SpmkController {
return ResultUtil.data(adD);
}
@Autowired
private SpmkAssoBusinessFactory spmkAssoBusinessFactory;
//TODO 审批人审批
/**
* 审批人审批
......
......@@ -1799,7 +1799,7 @@ public class YgglController {
@ApiOperation(value = "71.获取用户头像", httpMethod = "POST", notes = "接口发布说明")
@ApiOperationSupport(order = 71)
public Result<List<YgglMainEmp>> headphotos(@CurrentUser UserBean userBean, @RequestBody List<Integer> empNumList) {
if (empNumList.size() == 0) {
if (empNumList == null || empNumList.size() == 0) {
return ResultUtil.error("请输入empNum数组");
}
List<YgglMainEmp> yglList = YgglMainEmp.builder().build()
......
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