|
@@ -34,6 +34,7 @@ import cn.iselab.mooctest.site.web.logic.ReportLogic;
|
|
|
import cn.iselab.mooctest.site.web.util.Converter;
|
|
import cn.iselab.mooctest.site.web.util.Converter;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.apache.shiro.authz.UnauthorizedException;
|
|
import org.apache.shiro.authz.UnauthorizedException;
|
|
|
|
|
+import org.json.JSONArray;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import cn.iselab.mooctest.site.web.data.wrapper.BugVOWrapper;
|
|
import cn.iselab.mooctest.site.web.data.wrapper.BugVOWrapper;
|
|
@@ -179,7 +180,6 @@ public class ReportLogicImpl implements ReportLogic {
|
|
|
private Report updateReportInfo(Report report, ReportVO reportVO) {
|
|
private Report updateReportInfo(Report report, ReportVO reportVO) {
|
|
|
|
|
|
|
|
report.setBugAmount(reportVO.getBugAmount());
|
|
report.setBugAmount(reportVO.getBugAmount());
|
|
|
- report.setDescription(reportVO.getDescription());
|
|
|
|
|
report.setDeviceBrand(reportVO.getDeviceBrand());
|
|
report.setDeviceBrand(reportVO.getDeviceBrand());
|
|
|
report.setDeviceModel(reportVO.getDeviceModel());
|
|
report.setDeviceModel(reportVO.getDeviceModel());
|
|
|
report.setDeviceOs(reportVO.getDeviceOs());
|
|
report.setDeviceOs(reportVO.getDeviceOs());
|
|
@@ -189,7 +189,10 @@ public class ReportLogicImpl implements ReportLogic {
|
|
|
report.setReportLocation(reportVO.getReportLocation());
|
|
report.setReportLocation(reportVO.getReportLocation());
|
|
|
report.setScriptLocation(reportVO.getScriptLocation());
|
|
report.setScriptLocation(reportVO.getScriptLocation());
|
|
|
report.setStatus(reportVO.getStatus());
|
|
report.setStatus(reportVO.getStatus());
|
|
|
-
|
|
|
|
|
|
|
+ if(reportVO.getReportCases()!=null) {
|
|
|
|
|
+ JSONArray jsonArray = new JSONArray(reportVO.getReportCases());
|
|
|
|
|
+ report.setDescription(jsonArray.toString());
|
|
|
|
|
+ }
|
|
|
return report;
|
|
return report;
|
|
|
}
|
|
}
|
|
|
public void updateMongoReport(ReportVO reportVO, BugVO bugVO, long caseTakeId) throws Exception{
|
|
public void updateMongoReport(ReportVO reportVO, BugVO bugVO, long caseTakeId) throws Exception{
|