Merge remote-tracking branch 'origin/0205cmt' into 0205cmt
commit
5c48a7f55b
|
@ -11,6 +11,7 @@ import com.zcloud.service.gatemachine.GateAreaService;
|
|||
import com.zcloud.util.DateUtil;
|
||||
import com.zcloud.util.ReturnMap;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
@ -147,4 +148,17 @@ public class AnemometerController extends BaseController {
|
|||
returnMap.put("varList",dataList);
|
||||
return returnMap;
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/listInfoPage")
|
||||
@ResponseBody
|
||||
public ReturnMap listInfoPage(Page page) {
|
||||
ReturnMap returnMap = new ReturnMap();
|
||||
PageData pageData = this.getPageData();
|
||||
page.setPd(pageData);
|
||||
List<PageData> data = anemometerLocalService.getInfolistpage(page);
|
||||
returnMap.put("varList", data);
|
||||
returnMap.put("page", page);
|
||||
return returnMap;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -516,6 +516,17 @@ public class MapController extends BaseController {
|
|||
varList = usersService.findEightsByUserId(pd);
|
||||
map.put("info",byCardNo);
|
||||
map.put("varList", varList);
|
||||
}else {
|
||||
String result = HttpUtil.get("https://60.2.110.85:7812/mapi/v1/queryWorkCardLocation?deviceNo="+pd.getString("cardNo"));
|
||||
Map<String,Object> resultMap = (Map<String, Object>) JSON.parse(result);
|
||||
String data = resultMap.get("data").toString();
|
||||
List<PageData> dataList = JSONArray.parseArray(data,PageData.class);
|
||||
PageData pageData = new PageData();
|
||||
pageData.put("id",dataList.get(0).getString("devidno"));
|
||||
pageData.put("DEPARTMENT_NAME",dataList.get(0).getString("deptId"));
|
||||
pageData.put("NAME",dataList.get(0).getString("fullName"));
|
||||
pageData.put("POST_NAME",dataList.get(0).getString("workType"));
|
||||
map.put("info",pageData);
|
||||
}
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.zcloud.mapper.datasource.anemometer;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -43,4 +44,6 @@ public interface AnemometerLocalMapper {
|
|||
void BatchinsertInfo(List<PageData> listPd);
|
||||
|
||||
|
||||
List<PageData> getInfolistPage(Page page);
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.zcloud.service.announcement;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -41,4 +42,6 @@ public interface AnemometerLocalService {
|
|||
* @throws Exception
|
||||
*/
|
||||
public void BatchinsertInfo(List<PageData> listPd);
|
||||
|
||||
public List<PageData> getInfolistpage(Page page);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.zcloud.service.announcement.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.anemometer.AnemometerLocalMapper;
|
||||
import com.zcloud.service.announcement.AnemometerLocalService;
|
||||
|
@ -50,4 +51,9 @@ public class AnemometerLocalServiceImpl implements AnemometerLocalService {
|
|||
public void BatchinsertInfo(List<PageData> listPd) {
|
||||
anemometerLocalMapper.BatchinsertInfo(listPd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> getInfolistpage(Page page) {
|
||||
return anemometerLocalMapper.getInfolistPage(page);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,19 @@
|
|||
where
|
||||
f.FNAME = #{FNAME}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getInfolistPage" parameterType="page" resultType="pd">
|
||||
SELECT
|
||||
r.*
|
||||
FROM
|
||||
bus_anemometer_machine f
|
||||
LEFT JOIN bus_anemometer_local r ON f.FNAME = r.FNAME
|
||||
WHERE
|
||||
f.FNAME = #{pd.FNAME}
|
||||
ORDER BY
|
||||
r.FTIME DESC
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue