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
break;
case "natural":
// 新增基础信息
model.setIsIot(false);
model.setIsIot(true);
createWithModel(model);
WaterResourceNaturalDto waterResourceNaturalDto = new WaterResourceNaturalDto();
BeanUtils.copyProperties(model, waterResourceNaturalDto);
......@@ -172,6 +172,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourceNaturalService.createWithModel(waterResourceNaturalDto);
break;
case "industryPool":
case "waterTank":
case "pool":
// 新增基础信息
model.setIsIot(true);
......@@ -183,6 +184,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourcePoolService.createWithModel(waterResourcePoolDto);
break;
}
// 新增物联信息
// if (model.getIsIot()) {
// WaterResourceIotDto waterResourceIotDto = new WaterResourceIotDto();
......
......@@ -204,6 +204,15 @@ public class PointController extends AbstractBaseController {
public CommonResponse addPointXcdx(@ApiParam(value = "新增巡查对象", required = true) @RequestBody PointInputItemNewVo pointClassify){
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());
AgencyUserModel user = getUserInfo();
PointClassify newPointClassify = new PointClassify();
......@@ -334,6 +343,14 @@ public class PointController extends AbstractBaseController {
List<RoutePoint> routePointList = iRoutePointDao.queryByPointId(pointClassifys.get(0).getPointId());
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();
newPointClassify.setEquipmentId(pointClassify.getEquipmentId());
newPointClassify.setName(pointClassify.getName());
......
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 {
......
......@@ -50,4 +50,9 @@ public interface IPointClassifyDao extends BaseDao<PointClassify, Long> {
List<PointClassify> selectByOriginalId(String id);
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
maintenance.feign.name=AMOS-MAINTENANCE-API
precontrol.feign.name=JEPCC-PRECONTROL-SERVER
security.privilege.name=AMOS-API-PRIVILEGE
security.systemctl.name=AMOS-API-SYSTEMCTL
security.systemctl.name=AMOS-API-PRIVILEGE
#jpush
Push.fegin.name=AppMessagePushService
dutyMode.fegin.name=AMOS-DUTYMODE
......
......@@ -84,7 +84,7 @@ mqtt.topic.person.sign=sign/data/syn
#人员打卡同步中心级
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.delete=jcs/company/topic/delete
......
......@@ -64,13 +64,13 @@
(`id`, `route_point_id`, `order_no`, `point_input_item_id`, `creator_id`, `create_date`, `point_classify_id`, `basis_json`)
VALUES(
#{id},
#{route_point_id},
#{order_no},
#{point_input_item_id},
#{creator_id},
#{create_date},
#{point_classify_id},
#{basis_json})
#{routePointId},
#{orderNo},
#{pointInputItemId},
#{creatorId},
#{createDate},
#{pointClassifyId},
#{basisJson})
</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