|
@@ -283,6 +283,10 @@ public class EnvironmentServiceImpl implements IEnvironmentService {
|
|
JSONObject zsJo = new JSONObject();
|
|
JSONObject zsJo = new JSONObject();
|
|
zsJa.add(zsJo);
|
|
zsJa.add(zsJo);
|
|
zsJo.put("zsid", zsid);
|
|
zsJo.put("zsid", zsid);
|
|
|
|
+ zsJo.put("isQuanKong",false);
|
|
|
|
+ if (zsid == 367 || zsid == 378 || zsid == 379){
|
|
|
|
+ zsJo.put("isQuanKong",true);
|
|
|
|
+ }
|
|
zsJo.put("zsmc", zsdaEntity.getZSMC());
|
|
zsJo.put("zsmc", zsdaEntity.getZSMC());
|
|
for (DaLqdaEntity lqdaEntity : lqdaEntityList) {
|
|
for (DaLqdaEntity lqdaEntity : lqdaEntityList) {
|
|
if (lqdaEntity.getZSID() == zsid) {
|
|
if (lqdaEntity.getZSID() == zsid) {
|
|
@@ -306,7 +310,10 @@ public class EnvironmentServiceImpl implements IEnvironmentService {
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
@DS("slave")
|
|
@DS("slave")
|
|
- public Result getLastEnvByLq(Integer lqid) {
|
|
|
|
|
|
+ public Result getLastEnvByLq(Integer lqid,Integer zsid) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
String todayDate = new DateUtil().formatDate(new Date());
|
|
String todayDate = new DateUtil().formatDate(new Date());
|
|
System.out.println(" todayDate>>"+todayDate);
|
|
System.out.println(" todayDate>>"+todayDate);
|
|
System.out.println(" lqid>>"+lqid);
|
|
System.out.println(" lqid>>"+lqid);
|
|
@@ -334,6 +341,7 @@ public class EnvironmentServiceImpl implements IEnvironmentService {
|
|
} else {
|
|
} else {
|
|
envJo.put("temp", "");
|
|
envJo.put("temp", "");
|
|
}
|
|
}
|
|
|
|
+ envJo.put("zsid",zsid);
|
|
return new Result(ResultCode.SUCCESS, envJo);
|
|
return new Result(ResultCode.SUCCESS, envJo);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -437,7 +445,7 @@ public class EnvironmentServiceImpl implements IEnvironmentService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @DS("third")
|
|
|
|
|
|
+ @DS("master")
|
|
public Result getEnvDetails() {
|
|
public Result getEnvDetails() {
|
|
/** */
|
|
/** */
|
|
EnvironmentDataEntity environmentData = environmentDataRepo.getOneLastEnvData();
|
|
EnvironmentDataEntity environmentData = environmentDataRepo.getOneLastEnvData();
|