|
@@ -49,8 +49,8 @@ public class PlanServiceImpl implements PlanService {
|
|
|
EquipmentMapper equipmentMapper;
|
|
|
@Autowired
|
|
|
GoodsMapper goodsMapper;
|
|
|
- @Autowired
|
|
|
- SysUserMapper sysUserMapper;
|
|
|
+// @Autowired
|
|
|
+// SysUserMapper sysUserMapper;
|
|
|
|
|
|
@Override
|
|
|
public int addPlan(PlanAddBo bo) {
|
|
@@ -117,7 +117,7 @@ public class PlanServiceImpl implements PlanService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public int checkPlan(PlanBo bo,Long userId) {
|
|
|
+ public int checkPlan(PlanBo bo,Long userId,String userName) {
|
|
|
QueryWrapper<Plan> planQueryWrapper = new QueryWrapper<>();
|
|
|
planQueryWrapper.eq("plan_id",bo.getPlanId());
|
|
|
planQueryWrapper.eq("deleted","0");
|
|
@@ -131,12 +131,12 @@ public class PlanServiceImpl implements PlanService {
|
|
|
int i = planMapper.updateById(plan);
|
|
|
if (i == 0)
|
|
|
return 0;
|
|
|
- SysUser sysUser = sysUserMapper.selectById(userId);
|
|
|
- PlanAudit audit = new PlanAudit(bo,userId.toString(),sysUser.getNickName());
|
|
|
+// SysUser sysUser = sysUserMapper.selectById(userId);
|
|
|
+ PlanAudit audit = new PlanAudit(bo,userId.toString(),userName);
|
|
|
int insert = planAuditMapper.insert(audit);
|
|
|
if (insert == 1){
|
|
|
CallBackBean callBackBean = new CallBackBean();
|
|
|
- callBackBean.setAuditPerson(sysUser.getNickName());
|
|
|
+ callBackBean.setAuditPerson(userName);
|
|
|
callBackBean.setAuditComment(bo.getAuditComment());
|
|
|
callBackBean.setAuditTime(LocalDateTime.now());
|
|
|
SendCallBackUtil.sendCallBack(app.getCallBack(),callBackBean);
|
|
@@ -199,7 +199,8 @@ public class PlanServiceImpl implements PlanService {
|
|
|
planQueryWrapper.eq("state",1);
|
|
|
planQueryWrapper.eq("deleted","0");
|
|
|
Plan plan = planMapper.selectOne(planQueryWrapper);
|
|
|
- pushVos.add(new PlanPushVo(item,plan));
|
|
|
+ if (plan != null)
|
|
|
+ pushVos.add(new PlanPushVo(item,plan));
|
|
|
}
|
|
|
return pushVos;
|
|
|
}
|