Commit 6f7f3d72 authored by maoying's avatar maoying

四川三维接口调整

parent 43316bc7
...@@ -257,16 +257,25 @@ public class View3dController extends BaseController { ...@@ -257,16 +257,25 @@ public class View3dController extends BaseController {
String token = this.getToken(); String token = this.getToken();
String appKey = this.getAppKey(); String appKey = this.getAppKey();
String product = this.getProduct(); String product = this.getProduct();
return view3dService.retrieve3All(params.getType(),
return view3dService.retrieveAll(params.getType(), params.getRiskSourceId(),
params.getRiskSourceId(), params.getAreaId(),
params.getInputText(), params.getEquipmentId(),
params.getCurrent(), params.getInputText(),
params.getPageSize(), params.getCurrent(),
orgCode, params.getPageSize(),
params.getDataLevel(), orgCode,
params.getProtectObjName(), params.getDataLevel(),
token,appKey,product); token,appKey,product);
// return view3dService.retrieveAll(params.getType(),
// params.getRiskSourceId(),
// params.getInputText(),
// params.getCurrent(),
// params.getPageSize(),
// orgCode,
// params.getDataLevel(),
// params.getProtectObjName(),
// token,appKey,product);
} }
@Permission @Permission
......
...@@ -4,6 +4,7 @@ import java.util.List; ...@@ -4,6 +4,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import com.yeejoin.amos.fas.business.bo.FireEquipmentBo;
import com.yeejoin.amos.fas.dao.dto.EquipmentDTO; import com.yeejoin.amos.fas.dao.dto.EquipmentDTO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -24,4 +25,6 @@ public interface ImpEquipMapper extends BaseMapper { ...@@ -24,4 +25,6 @@ public interface ImpEquipMapper extends BaseMapper {
List<EquipmentDTO> reservePage(@Param("start") long start,@Param("length") int length); List<EquipmentDTO> reservePage(@Param("start") long start,@Param("length") int length);
Set<String> getAllCode(); Set<String> getAllCode();
FireEquipmentBo findImpEquipById (@Param("id") Long id);
} }
...@@ -171,6 +171,7 @@ public class FireEquipServiceImpl implements IFireEquipService { ...@@ -171,6 +171,7 @@ public class FireEquipServiceImpl implements IFireEquipService {
break; break;
case extinguisher: case extinguisher:
case hydrant: case hydrant:
case fireEquipment:
case monitorEquipment: case monitorEquipment:
FireEquipmentBo fireEquipment = fireEquipMapper.findFireEquipById(id); FireEquipmentBo fireEquipment = fireEquipMapper.findFireEquipById(id);
fireEquipment.setEquipClassify(Integer.parseInt(EquipClassifyEnum.EQUIPMENT.getCode())); fireEquipment.setEquipClassify(Integer.parseInt(EquipClassifyEnum.EQUIPMENT.getCode()));
...@@ -189,6 +190,10 @@ public class FireEquipServiceImpl implements IFireEquipService { ...@@ -189,6 +190,10 @@ public class FireEquipServiceImpl implements IFireEquipService {
returnEntity = fireDetection; returnEntity = fireDetection;
break; break;
case impEquipment:
FireEquipmentBo impEquipment = impEquipMapper.findImpEquipById(id);
returnEntity = impEquipment;
break;
default: default:
throw new Exception("类型有误."); throw new Exception("类型有误.");
......
...@@ -420,6 +420,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService { ...@@ -420,6 +420,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
} }
x.setTime(DateFormatUtils.format(new Date(), "HH:mm:ss")); x.setTime(DateFormatUtils.format(new Date(), "HH:mm:ss"));
} }
x.setStepStatus(x.getCheckYesOrNo());
x.setBatchNo(batchNo); x.setBatchNo(batchNo);
x.setCaseId(contingencyPlanId); x.setCaseId(contingencyPlanId);
x.setButtonJson(buttonJson); x.setButtonJson(buttonJson);
......
...@@ -9,5 +9,7 @@ public enum FireEquipmentType { ...@@ -9,5 +9,7 @@ public enum FireEquipmentType {
pool,//消防水池 pool,//消防水池
fireChamber,//消防小室 fireChamber,//消防小室
fireFoamRoom,//消防泡沫间 fireFoamRoom,//消防泡沫间
fireDetection //火探 fireDetection, //火探
fireEquipment,
impEquipment
} }
...@@ -93,4 +93,16 @@ ...@@ -93,4 +93,16 @@
<select id="getAllCode" resultType="string"> <select id="getAllCode" resultType="string">
select distinct code from f_equipment select distinct code from f_equipment
</select> </select>
<select id="findImpEquipById" resultType="com.yeejoin.amos.fas.business.bo.FireEquipmentBo">
SELECT
id,
`name`,
`code`,
IFNULL(address,'') as 'productionArea'
FROM
f_equipment
WHERE
id = ${id}
</select>
</mapper> </mapper>
\ No newline at end of file
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