风速仪台账信息接口

0927cmt
zhaoyu 2024-06-07 11:19:22 +08:00
parent 074cd05192
commit c96f661e27
5 changed files with 39 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}
}

View File

@ -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>