|
@@ -229,12 +229,12 @@ public class CaseLogicImpl implements CaseLogic {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void update(CaseExtendsVO caseExtendsVO, Long caseExtendsId) {
|
|
public void update(CaseExtendsVO caseExtendsVO, Long caseExtendsId) {
|
|
|
- CaseExtends caseExtends = caseService.getCaseExtendsById(caseExtendsId);
|
|
|
|
|
|
|
+ CaseExtends caseExtends = caseService.getCaseExtendsById(caseExtendsVO.getId());
|
|
|
if (caseExtends == null)
|
|
if (caseExtends == null)
|
|
|
throw new IllegalArgumentException("Cannot find the caseExtends");
|
|
throw new IllegalArgumentException("Cannot find the caseExtends");
|
|
|
Timestamp timestamp = caseExtends.getCreateTime();
|
|
Timestamp timestamp = caseExtends.getCreateTime();
|
|
|
Converter.copy(caseExtends, caseExtendsVO);
|
|
Converter.copy(caseExtends, caseExtendsVO);
|
|
|
- caseExtends.setId(caseExtendsId);
|
|
|
|
|
|
|
+ //caseExtends.setId(caseExtendsId);
|
|
|
caseExtends.setCreateTime(timestamp);
|
|
caseExtends.setCreateTime(timestamp);
|
|
|
caseExtends.setOwnerId(caseExtendsVO.getManagerId());
|
|
caseExtends.setOwnerId(caseExtendsVO.getManagerId());
|
|
|
caseService.save(caseExtends);
|
|
caseService.save(caseExtends);
|
|
@@ -257,6 +257,7 @@ public class CaseLogicImpl implements CaseLogic {
|
|
|
throw new IllegalArgumentException();
|
|
throw new IllegalArgumentException();
|
|
|
|
|
|
|
|
CaseExtendsVO re = Converter.convert(CaseExtendsVO.class, caseExtends);
|
|
CaseExtendsVO re = Converter.convert(CaseExtendsVO.class, caseExtends);
|
|
|
|
|
+ re.setManagerId(caseExtends.getOwnerId());
|
|
|
App app = targetService.findById(caseExtends.getAppId());
|
|
App app = targetService.findById(caseExtends.getAppId());
|
|
|
re.setTargetName(app.getName());
|
|
re.setTargetName(app.getName());
|
|
|
re.setTargetType(app.getTargetType());
|
|
re.setTargetType(app.getTargetType());
|