|
@@ -164,11 +164,17 @@ public class EartagController {
|
|
* @Time : 18:28
|
|
* @Time : 18:28
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/listEartagOnlineCountByEarmarkAndDate",method = RequestMethod.GET)
|
|
@RequestMapping(value = "/listEartagOnlineCountByEarmarkAndDate",method = RequestMethod.GET)
|
|
- public Result listEartagCountByEarmarkAndDate(@RequestParam(value = "earmark",required = true) String earmark,@RequestParam(value = "pastDays",required = true) Integer pastDays) throws ParseException {
|
|
|
|
|
|
+ public Result listEartagCountByEarmarkAndDate(@RequestParam(value = "earmark",required = true) String earmark,
|
|
|
|
+ @RequestParam(value = "pastDays",required = true) Integer pastDays,
|
|
|
|
+ @RequestParam(value = "showMode",required = true) Integer showMode) throws ParseException {
|
|
log.info("<listEartagOnlineCountByEarmarkAndDate> 输入参数 earmark>>"+earmark);
|
|
log.info("<listEartagOnlineCountByEarmarkAndDate> 输入参数 earmark>>"+earmark);
|
|
log.info("<listEartagOnlineCountByEarmarkAndDate> 输入参数 pastDays>"+pastDays);
|
|
log.info("<listEartagOnlineCountByEarmarkAndDate> 输入参数 pastDays>"+pastDays);
|
|
|
|
+ log.info("<listEartagOnlineStatusByEarmarkAndDate> 输入参数 showMode>"+showMode);
|
|
|
|
+ if(showMode == null){
|
|
|
|
+ showMode = 1;
|
|
|
|
+ }
|
|
//
|
|
//
|
|
- return eartagService.listEartagOnlineCountByEarmarkAndDate(earmark,pastDays);
|
|
|
|
|
|
+ return eartagService.listEartagOnlineCountByEarmarkAndDate(earmark,pastDays,showMode);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -182,7 +188,8 @@ public class EartagController {
|
|
* @Time : 19:52
|
|
* @Time : 19:52
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/listEartagOnlineStatusByEarmarkAndDate",method = RequestMethod.GET)
|
|
@RequestMapping(value = "/listEartagOnlineStatusByEarmarkAndDate",method = RequestMethod.GET)
|
|
- public Result listEartagOnlineStatusByEarmarkAndDate(@RequestParam(value = "earmark",required = true) String earmark,@RequestParam(value = "pastDays",required = true) Integer pastDays) throws ParseException {
|
|
|
|
|
|
+ public Result listEartagOnlineStatusByEarmarkAndDate(@RequestParam(value = "earmark",required = true) String earmark,
|
|
|
|
+ @RequestParam(value = "pastDays",required = true) Integer pastDays) throws ParseException {
|
|
log.info("<listEartagOnlineStatusByEarmarkAndDate> 输入参数 earmark>>"+earmark);
|
|
log.info("<listEartagOnlineStatusByEarmarkAndDate> 输入参数 earmark>>"+earmark);
|
|
log.info("<listEartagOnlineStatusByEarmarkAndDate> 输入参数 pastDays>"+pastDays);
|
|
log.info("<listEartagOnlineStatusByEarmarkAndDate> 输入参数 pastDays>"+pastDays);
|
|
//
|
|
//
|
|
@@ -200,7 +207,8 @@ public class EartagController {
|
|
* @Time : 20:43
|
|
* @Time : 20:43
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/listEartagOnlineAllStatus",method = RequestMethod.GET)
|
|
@RequestMapping(value = "/listEartagOnlineAllStatus",method = RequestMethod.GET)
|
|
- public Result listEartagOnlineAllStatus(@RequestParam(value = "farmId",required = true) String farmId,@RequestParam(value = "days",required = true) Integer days) throws ParseException {
|
|
|
|
|
|
+ public Result listEartagOnlineAllStatus(@RequestParam(value = "farmId",required = true) String farmId,
|
|
|
|
+ @RequestParam(value = "days",required = true) Integer days) throws ParseException {
|
|
log.info("<listEartagOnlineAllStatus>输入参数 farmId>>"+farmId);
|
|
log.info("<listEartagOnlineAllStatus>输入参数 farmId>>"+farmId);
|
|
log.info("<listEartagOnlineAllStatus>输入参数 days>>"+days);
|
|
log.info("<listEartagOnlineAllStatus>输入参数 days>>"+days);
|
|
if(days == null){
|
|
if(days == null){
|
|
@@ -213,7 +221,7 @@ public class EartagController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Method : listEartagOnlineCount
|
|
* @Method : listEartagOnlineCount
|
|
- * @Description : 裂变展示某一天的在线记录
|
|
|
|
|
|
+ * @Description : 列表展示某一天的在线记录
|
|
* @Params : [farmId, addDate, pageNo, pageSize]
|
|
* @Params : [farmId, addDate, pageNo, pageSize]
|
|
* @Return : com.huimv.eartag2.common.utils.Result
|
|
* @Return : com.huimv.eartag2.common.utils.Result
|
|
*
|
|
*
|
|
@@ -223,7 +231,7 @@ public class EartagController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/listOnlineEartagCount",method = RequestMethod.GET)
|
|
@RequestMapping(value = "/listOnlineEartagCount",method = RequestMethod.GET)
|
|
public Result listEartagOnlineCount(@RequestParam(value = "farmId",required = true) String farmId,
|
|
public Result listEartagOnlineCount(@RequestParam(value = "farmId",required = true) String farmId,
|
|
- @RequestParam(value = "date",required = false) String addDate,
|
|
|
|
|
|
+ @RequestParam(value = "addDate",required = false) String addDate,
|
|
@RequestParam(value = "pageNo",required = true) Integer pageNo,
|
|
@RequestParam(value = "pageNo",required = true) Integer pageNo,
|
|
@RequestParam(value = "pageSize",required = true) Integer pageSize,
|
|
@RequestParam(value = "pageSize",required = true) Integer pageSize,
|
|
@RequestParam(value = "showMode",required = true) Integer showMode) throws ParseException {
|
|
@RequestParam(value = "showMode",required = true) Integer showMode) throws ParseException {
|
|
@@ -240,8 +248,8 @@ public class EartagController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @Method : getEartagDeviceByEarmarkAndAddDate
|
|
|
|
- * @Description :
|
|
|
|
|
|
+ * @Method : listEartagDeviceByEarmarkAndAddDate
|
|
|
|
+ * @Description : 根据耳标和日期,查询关联设备记录
|
|
* @Params : [earmark, addDate]
|
|
* @Params : [earmark, addDate]
|
|
* @Return : com.huimv.eartag2.common.utils.Result
|
|
* @Return : com.huimv.eartag2.common.utils.Result
|
|
*
|
|
*
|
|
@@ -249,16 +257,16 @@ public class EartagController {
|
|
* @Date : 2022/3/10
|
|
* @Date : 2022/3/10
|
|
* @Time : 22:33
|
|
* @Time : 22:33
|
|
*/
|
|
*/
|
|
- @RequestMapping(value = "/getEartagDeviceByEarmarkAndAddDate",method = RequestMethod.GET)
|
|
|
|
- public Result getEartagDeviceByEarmarkAndAddDate(@RequestParam(value = "earmark",required = true) String earmark,
|
|
|
|
|
|
+ @RequestMapping(value = "/listEartagDeviceByEarmarkAndAddDate",method = RequestMethod.GET)
|
|
|
|
+ public Result listEartagDeviceByEarmarkAndAddDate(@RequestParam(value = "earmark",required = true) String earmark,
|
|
@RequestParam(value = "addDate",required = false) String addDate) throws ParseException {
|
|
@RequestParam(value = "addDate",required = false) String addDate) throws ParseException {
|
|
- log.info("<getEartagDeviceByEarmarkAndAddDate>输入参数 earmark>>"+earmark);
|
|
|
|
- log.info("<getEartagDeviceByEarmarkAndAddDate>输入参数 addDate>>"+addDate);
|
|
|
|
|
|
+ log.info("<listEartagDeviceByEarmarkAndAddDate>输入参数 earmark>>"+earmark);
|
|
|
|
+ log.info("<listEartagDeviceByEarmarkAndAddDate>输入参数 addDate>>"+addDate);
|
|
if(addDate == null){
|
|
if(addDate == null){
|
|
addDate = new DateUtil().getTodayDateText();
|
|
addDate = new DateUtil().getTodayDateText();
|
|
}
|
|
}
|
|
//
|
|
//
|
|
- return eartagService.getEartagDeviceByEarmarkAndAddDate(earmark,addDate);
|
|
|
|
|
|
+ return eartagService.listEartagDeviceByEarmarkAndAddDate(earmark,addDate);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|