|
@@ -125,9 +125,12 @@ public class ApiAppDeviceLogController {
|
|
|
param.getCheckStatus().toString() + ")");
|
|
|
}
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(param.getSn())) {
|
|
|
+ sql.append(" AND sn like '%" + param.getSn() + "%'");
|
|
|
+ }
|
|
|
+
|
|
|
log.info("SQL: {}", sql.toString());
|
|
|
|
|
|
- param.addParam(QueryParamExp.like("sn", "%".concat(param.getSn()).concat("%")));
|
|
|
ApiPageDTO page = appDeviceService.getListBySQL(sql.toString(), new HashMap<>(), param);
|
|
|
if (null != page.getData()) {
|
|
|
// 组装数据
|
|
@@ -270,7 +273,7 @@ public class ApiAppDeviceLogController {
|
|
|
// 组装数据
|
|
|
List<Map<String, Object>> list = (List<Map<String, Object>>) page.getData();
|
|
|
for (Map<String, Object> p : list) {
|
|
|
- AppDevice device = new AppDevice();
|
|
|
+ AppDevice device = appDeviceService.getOne(QueryParamExp.eq("sn",p.get("sn")));
|
|
|
device.setImei(ObjectUtil.obj2String(p.get("imei")));
|
|
|
appDeviceService.addImeiTitle(device);
|
|
|
|
|
@@ -279,6 +282,7 @@ public class ApiAppDeviceLogController {
|
|
|
p.put("deliver_time", DateUtils.toString(ObjectUtil.obj2Date(p.get("deliver_time")), DateUtils.YMD));
|
|
|
p.put("add_time", DateUtils.toString(ObjectUtil.obj2Date(p.get("add_time")), DateUtils.YMDHMS));
|
|
|
p.put("operator", "admin");
|
|
|
+ p.put("instorageTime", device.getInstorageTime());
|
|
|
}
|
|
|
page.setData(list);
|
|
|
}
|