Commit 1f9b6aae authored by chenzhao's avatar chenzhao

Merge branch 'develop_dl_plan6_temp' of…

Merge branch 'develop_dl_plan6_temp' of http://39.98.45.134:8090/moa/amos-boot-biz into develop_dl_plan6_temp
parents fa720d7c 45e45bd4
...@@ -163,7 +163,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate ...@@ -163,7 +163,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
break; break;
case "natural": case "natural":
// 新增基础信息 // 新增基础信息
model.setIsIot(false); model.setIsIot(true);
createWithModel(model); createWithModel(model);
WaterResourceNaturalDto waterResourceNaturalDto = new WaterResourceNaturalDto(); WaterResourceNaturalDto waterResourceNaturalDto = new WaterResourceNaturalDto();
BeanUtils.copyProperties(model, waterResourceNaturalDto); BeanUtils.copyProperties(model, waterResourceNaturalDto);
...@@ -172,6 +172,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate ...@@ -172,6 +172,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourceNaturalService.createWithModel(waterResourceNaturalDto); waterResourceNaturalService.createWithModel(waterResourceNaturalDto);
break; break;
case "industryPool": case "industryPool":
case "waterTank":
case "pool": case "pool":
// 新增基础信息 // 新增基础信息
model.setIsIot(true); model.setIsIot(true);
...@@ -183,6 +184,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate ...@@ -183,6 +184,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourcePoolService.createWithModel(waterResourcePoolDto); waterResourcePoolService.createWithModel(waterResourcePoolDto);
break; break;
} }
// 新增物联信息 // 新增物联信息
// if (model.getIsIot()) { // if (model.getIsIot()) {
// WaterResourceIotDto waterResourceIotDto = new WaterResourceIotDto(); // WaterResourceIotDto waterResourceIotDto = new WaterResourceIotDto();
......
...@@ -204,6 +204,15 @@ public class PointController extends AbstractBaseController { ...@@ -204,6 +204,15 @@ public class PointController extends AbstractBaseController {
public CommonResponse addPointXcdx(@ApiParam(value = "新增巡查对象", required = true) @RequestBody PointInputItemNewVo pointClassify){ public CommonResponse addPointXcdx(@ApiParam(value = "新增巡查对象", required = true) @RequestBody PointInputItemNewVo pointClassify){
try { try {
//增加判断
PointClassify PointClassifyk= iPointClassifyDao.getPointClassifyByPointIdandcode(pointClassify.getPointId(),pointClassify.getCode());
if(PointClassifyk!=null){
if(PointClassifyk.getId()!=pointClassify.getId()){
return CommonResponseUtil.failure("巡查对象code,不能重复!");
}
}
List<RoutePoint> routePointList = iRoutePointDao.queryByPointId(pointClassify.getPointId()); List<RoutePoint> routePointList = iRoutePointDao.queryByPointId(pointClassify.getPointId());
AgencyUserModel user = getUserInfo(); AgencyUserModel user = getUserInfo();
PointClassify newPointClassify = new PointClassify(); PointClassify newPointClassify = new PointClassify();
...@@ -334,6 +343,14 @@ public class PointController extends AbstractBaseController { ...@@ -334,6 +343,14 @@ public class PointController extends AbstractBaseController {
List<RoutePoint> routePointList = iRoutePointDao.queryByPointId(pointClassifys.get(0).getPointId()); List<RoutePoint> routePointList = iRoutePointDao.queryByPointId(pointClassifys.get(0).getPointId());
for (PointInputItemNewVo pointClassify : pointClassifys) { for (PointInputItemNewVo pointClassify : pointClassifys) {
PointClassify PointClassifyk= iPointClassifyDao.getPointClassifyByPointIdandcode(pointClassify.getPointId(),pointClassify.getCode());
if(PointClassifyk!=null){
if(PointClassifyk.getId()!=pointClassify.getId()){
return CommonResponseUtil.failure("巡查对象code,不能重复!");
}
}
PointClassify newPointClassify = new PointClassify(); PointClassify newPointClassify = new PointClassify();
newPointClassify.setEquipmentId(pointClassify.getEquipmentId()); newPointClassify.setEquipmentId(pointClassify.getEquipmentId());
newPointClassify.setName(pointClassify.getName()); newPointClassify.setName(pointClassify.getName());
......
package com.yeejoin.amos.patrol.business.dao.mapper; package com.yeejoin.amos.patrol.business.dao.mapper;
import com.yeejoin.amos.patrol.dao.entity.RoutePointItem; import com.yeejoin.amos.patrol.dao.entity.RoutePointItem;
public interface RoutePointItemMapper extends BaseMapper { public interface RoutePointItemMapper extends BaseMapper {
......
...@@ -50,4 +50,9 @@ public interface IPointClassifyDao extends BaseDao<PointClassify, Long> { ...@@ -50,4 +50,9 @@ public interface IPointClassifyDao extends BaseDao<PointClassify, Long> {
List<PointClassify> selectByOriginalId(String id); List<PointClassify> selectByOriginalId(String id);
PointClassify findByOriginalId(String originalId); PointClassify findByOriginalId(String originalId);
@Query(value = "select * from p_point_classify where point_id = ?1 and code = ?2 and is_delete = 0 ", nativeQuery = true)
PointClassify getPointClassifyByPointIdandcode(long id,String code);
} }
...@@ -30,7 +30,7 @@ patrol.fegin.name=AMOS-PATROL ...@@ -30,7 +30,7 @@ patrol.fegin.name=AMOS-PATROL
maintenance.feign.name=AMOS-MAINTENANCE-API maintenance.feign.name=AMOS-MAINTENANCE-API
precontrol.feign.name=JEPCC-PRECONTROL-SERVER precontrol.feign.name=JEPCC-PRECONTROL-SERVER
security.privilege.name=AMOS-API-PRIVILEGE security.privilege.name=AMOS-API-PRIVILEGE
security.systemctl.name=AMOS-API-SYSTEMCTL security.systemctl.name=AMOS-API-PRIVILEGE
#jpush #jpush
Push.fegin.name=AppMessagePushService Push.fegin.name=AppMessagePushService
dutyMode.fegin.name=AMOS-DUTYMODE dutyMode.fegin.name=AMOS-DUTYMODE
......
...@@ -84,7 +84,7 @@ mqtt.topic.person.sign=sign/data/syn ...@@ -84,7 +84,7 @@ mqtt.topic.person.sign=sign/data/syn
#人员打卡同步中心级 #人员打卡同步中心级
mqtt.topic.person.sign.zxj=sign/data/synZxj mqtt.topic.person.sign.zxj=sign/data/synZxj
security.systemctl.name=AMOS-API-SYSTEMCTL security.systemctl.name=AMOS-API-PRIVILEGE
jcs.company.topic.add=jcs/company/topic/add jcs.company.topic.add=jcs/company/topic/add
jcs.company.topic.delete=jcs/company/topic/delete jcs.company.topic.delete=jcs/company/topic/delete
......
...@@ -64,13 +64,13 @@ ...@@ -64,13 +64,13 @@
(`id`, `route_point_id`, `order_no`, `point_input_item_id`, `creator_id`, `create_date`, `point_classify_id`, `basis_json`) (`id`, `route_point_id`, `order_no`, `point_input_item_id`, `creator_id`, `create_date`, `point_classify_id`, `basis_json`)
VALUES( VALUES(
#{id}, #{id},
#{route_point_id}, #{routePointId},
#{order_no}, #{orderNo},
#{point_input_item_id}, #{pointInputItemId},
#{creator_id}, #{creatorId},
#{create_date}, #{createDate},
#{point_classify_id}, #{pointClassifyId},
#{basis_json}) #{basisJson})
</insert> </insert>
......
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