Commit 2f60e777 by liuyang

1.查询最新设备日志信息

parent a3daa8c8
...@@ -166,16 +166,17 @@ public class ServiceHPSB002 extends ServiceBase { ...@@ -166,16 +166,17 @@ public class ServiceHPSB002 extends ServiceBase {
} }
public EiInfo insertHgSb010(EiInfo inInfo) { public EiInfo queryMaxDate(EiInfo inInfo) {
Map map = new HashMap<>(); Map map = new HashMap<>();
map.put("maxDate", DateUtils.formatShort(DateUtils.shortDate())); map.put("maxDate", DateUtils.formatShort(DateUtils.shortDate()));
List<HPSB002> hpsb002s = DaoBase.getInstance().query("HPSB002.queryMaxDate", map); List<HPSB002> hpsb002s = DaoBase.getInstance().query("HPSB002.queryMaxDate", map);
if (CollectionUtils.isNotEmpty(hpsb002s)) { /*if (CollectionUtils.isNotEmpty(hpsb002s)) {
for (HPSB002 hpsb002: hpsb002s) { for (HPSB002 hpsb002: hpsb002s) {
hpsb002.setCompanyCode("Q24072514"); hpsb002.setCompanyCode("Q24072514");
DaoUtils.insert("HPSB002.insertHgSb010", hpsb002); DaoUtils.insert("HPSB002.insertHgSb010", hpsb002);
} }
} }*/
inInfo.getBlock(EiConstant.resultBlock).setRows(hpsb002s);
return inInfo; return inInfo;
} }
} }
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