Commit 1b424c2f authored by 高建强's avatar 高建强

item:完善orgCode查询条件

parent f46854c4
...@@ -24,6 +24,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -24,6 +24,7 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -500,7 +501,9 @@ public class CheckController extends AbstractBaseController { ...@@ -500,7 +501,9 @@ public class CheckController extends AbstractBaseController {
params.put("userId", userId); params.put("userId", userId);
params.put("timeType", timeType); params.put("timeType", timeType);
params.put("result", result); params.put("result", result);
if (StringUtils.isNotBlank(orderRule)) {
params.put("orderRule", CheckRecordOrderByEnum.getEumByCode(orderRule).getOderBy()); params.put("orderRule", CheckRecordOrderByEnum.getEumByCode(orderRule).getOderBy());
}
params.put("beginTime", beginTime); params.put("beginTime", beginTime);
params.put("endTime", endTime); params.put("endTime", endTime);
params.put("person", person); params.put("person", person);
......
...@@ -1913,7 +1913,8 @@ ...@@ -1913,7 +1913,8 @@
pp.belong_system_name systemName, pp.belong_system_name systemName,
pp.address address, pp.address address,
pp.original_id equipId, pp.original_id equipId,
CONCAT(pp.address, pp.building_name) buildingName CONCAT(pp.address, pp.building_name) buildingName,
pc.org_code AS orgCode
FROM p_check pc FROM p_check pc
LEFT JOIN p_point pp ON pp.id = pc.point_id LEFT JOIN p_point pp ON pp.id = pc.point_id
) a ) a
...@@ -2013,7 +2014,8 @@ ...@@ -2013,7 +2014,8 @@
pp.belong_system_id systemId, pp.belong_system_id systemId,
pp.belong_system_name systemName, pp.belong_system_name systemName,
pp.address address, pp.address address,
CONCAT(pp.address, pp.building_name) buildingName CONCAT(pp.address, pp.building_name) buildingName,
pc.org_code AS orgCode
FROM p_check pc FROM p_check pc
LEFT JOIN p_point pp ON pp.id = pc.point_id LEFT JOIN p_point pp ON pp.id = pc.point_id
) a ) a
......
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