Commit f7a62708 authored by tangwei's avatar tangwei

修改bug

parent 4aeaec93
...@@ -8,11 +8,8 @@ import javax.persistence.Entity; ...@@ -8,11 +8,8 @@ import javax.persistence.Entity;
import javax.persistence.NamedQuery; import javax.persistence.NamedQuery;
import javax.persistence.OneToMany; import javax.persistence.OneToMany;
import javax.persistence.Table; import javax.persistence.Table;
import org.hibernate.annotations.Where; import org.hibernate.annotations.Where;
import org.springframework.data.annotation.Transient; import javax.persistence.Transient;
/** /**
* The persistent class for the p_route database table. * The persistent class for the p_route database table.
* *
...@@ -33,7 +30,7 @@ public class Route extends BasicEntity { ...@@ -33,7 +30,7 @@ public class Route extends BasicEntity {
/** /**
* 巡查点下是否存在巡查对象 * 巡查点下是否存在巡查对象
* */ * */
@Transient
private String isExist; private String isExist;
/** /**
...@@ -98,7 +95,7 @@ public class Route extends BasicEntity { ...@@ -98,7 +95,7 @@ public class Route extends BasicEntity {
*/ */
@Column(name="boss_name") @Column(name="boss_name")
private String bossName; private String bossName;
@Transient
public String getIsExist() { public String getIsExist() {
return isExist; return isExist;
} }
......
...@@ -471,6 +471,14 @@ public class InputItemController extends AbstractBaseController { ...@@ -471,6 +471,14 @@ public class InputItemController extends AbstractBaseController {
if (ObjectUtils.isEmpty(user)) { if (ObjectUtils.isEmpty(user)) {
return CommonResponseUtil.failure("用户session过期"); return CommonResponseUtil.failure("用户session过期");
} }
List dt=new ArrayList<>();
if(param.getDataJson()==null){
param.setDataJson(dt);
}
if(param.getPictureJson()==null){
param.setPictureJson(dt );
}
try { try {
InputItem inputItem = new InputItem(); InputItem inputItem = new InputItem();
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
...@@ -519,7 +527,7 @@ public class InputItemController extends AbstractBaseController { ...@@ -519,7 +527,7 @@ public class InputItemController extends AbstractBaseController {
map.put("CheckValidDown",param.getCheckValidDown().equals("false")?false:true); map.put("CheckValidDown",param.getCheckValidDown().equals("false")?false:true);
map.put("CheckOkUp",param.getCheckOkUp().equals("false")?false:true); map.put("CheckOkUp",param.getCheckOkUp().equals("false")?false:true);
map.put("CheckOkDown",param.getCheckOkDown().equals("false")?false:true); map.put("CheckOkDown",param.getCheckOkDown().equals("false")?false:true);
map.put("Precision",param.getPrecision()); map.put("Precision",param.getPrecision()!=null?param.getPrecision():0);
inputItem.setDataJson(JSONObject.toJSONString(map)); inputItem.setDataJson(JSONObject.toJSONString(map));
} }
if (!ObjectUtils.isEmpty(param.getId())) { if (!ObjectUtils.isEmpty(param.getId())) {
......
...@@ -223,7 +223,7 @@ public class PlanTaskController extends AbstractBaseController { ...@@ -223,7 +223,7 @@ public class PlanTaskController extends AbstractBaseController {
/** /**
* 执行计划导出 * 执行计划导出
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "执行计划导出", notes = "执行计划导出") @ApiOperation(value = "执行计划导出", notes = "执行计划导出")
@GetMapping (value = "/reportPlanTaskNew", produces = "application/vnd.ms-excel;charset=UTF-8") @GetMapping (value = "/reportPlanTaskNew", produces = "application/vnd.ms-excel;charset=UTF-8")
public void planTaskReportNew( public void planTaskReportNew(
...@@ -239,6 +239,7 @@ public class PlanTaskController extends AbstractBaseController { ...@@ -239,6 +239,7 @@ public class PlanTaskController extends AbstractBaseController {
String fileName = "计划执行" + new Date().getTime(); String fileName = "计划执行" + new Date().getTime();
FileHelper.exportExcel(list, "计划执行", "计划执行", PlanTaskVo.class, fileName + ".xls", response); FileHelper.exportExcel(list, "计划执行", "计划执行", PlanTaskVo.class, fileName + ".xls", response);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} }
} }
......
...@@ -313,7 +313,7 @@ public class RouteServiceImpl implements IRouteService { ...@@ -313,7 +313,7 @@ public class RouteServiceImpl implements IRouteService {
RoutePointItem item = new RoutePointItem(); RoutePointItem item = new RoutePointItem();
item.setPointInputItemId((Long) ref.get("id")); item.setPointInputItemId((Long) ref.get("id"));
item.setRoutePointId(rp.getId()); item.setRoutePointId(rp.getId());
item.setPointClassifyId(Long.valueOf(ref.get("classifyId").toString())); item.setPointClassifyId(ref.containsKey("classifyId")?Long.valueOf(ref.get("classifyId").toString()):null);
item.setOrderNo(orderNum[0]++); item.setOrderNo(orderNum[0]++);
item.setPointId(pointId); item.setPointId(pointId);
item.setIsDelete(false); item.setIsDelete(false);
......
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