fix:修复测试计划空指针异常
This commit is contained in:
parent
2ff9cdde0c
commit
6e13f0b85b
|
@ -150,8 +150,8 @@ public class TestPlanService {
|
||||||
if (!StringUtils.isBlank(testPlan.getStatus())) {
|
if (!StringUtils.isBlank(testPlan.getStatus())) {
|
||||||
BeanUtils.copyBean(testPlans, getTestPlan(testPlan.getId()));
|
BeanUtils.copyBean(testPlans, getTestPlan(testPlan.getId()));
|
||||||
String context = getTestPlanContext(testPlans, NoticeConstants.Event.UPDATE);
|
String context = getTestPlanContext(testPlans, NoticeConstants.Event.UPDATE);
|
||||||
User user = userMapper.selectByPrimaryKey(testPlan.getCreator());
|
User user = userMapper.selectByPrimaryKey(testPlans.getCreator());
|
||||||
Map<String, Object> paramMap = getTestPlanParamMap(testPlan);
|
Map<String, Object> paramMap = getTestPlanParamMap(testPlans);
|
||||||
paramMap.put("creator", user.getName());
|
paramMap.put("creator", user.getName());
|
||||||
NoticeModel noticeModel = NoticeModel.builder()
|
NoticeModel noticeModel = NoticeModel.builder()
|
||||||
.context(context)
|
.context(context)
|
||||||
|
@ -533,8 +533,8 @@ public class TestPlanService {
|
||||||
try {
|
try {
|
||||||
BeanUtils.copyBean(_testPlans, testPlans);
|
BeanUtils.copyBean(_testPlans, testPlans);
|
||||||
String context = getTestPlanContext(_testPlans, NoticeConstants.Event.UPDATE);
|
String context = getTestPlanContext(_testPlans, NoticeConstants.Event.UPDATE);
|
||||||
User user = userMapper.selectByPrimaryKey(testPlan.getCreator());
|
User user = userMapper.selectByPrimaryKey(_testPlans.getCreator());
|
||||||
Map<String, Object> paramMap = getTestPlanParamMap(testPlan);
|
Map<String, Object> paramMap = getTestPlanParamMap(_testPlans);
|
||||||
paramMap.put("creator", user.getName());
|
paramMap.put("creator", user.getName());
|
||||||
NoticeModel noticeModel = NoticeModel.builder()
|
NoticeModel noticeModel = NoticeModel.builder()
|
||||||
.context(context)
|
.context(context)
|
||||||
|
|
Loading…
Reference in New Issue