From 04bc2d9b97c61ea79017d05f81053e719742f82f Mon Sep 17 00:00:00 2001 From: whyclj <1525436766@qq.com> Date: 星期三, 19 十二月 2018 15:41:01 +0800 Subject: [PATCH] Merge branch 'dev_lxw' of https://whyclj@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw --- gx_tieta/src/com/fgkj/services/BattInfServices.java | 32 ++++++++++++++++++++++++++++++-- 1 files changed, 30 insertions(+), 2 deletions(-) diff --git a/gx_tieta/src/com/fgkj/services/BattInfServices.java b/gx_tieta/src/com/fgkj/services/BattInfServices.java index 7f09cfc..c71ac71 100644 --- a/gx_tieta/src/com/fgkj/services/BattInfServices.java +++ b/gx_tieta/src/com/fgkj/services/BattInfServices.java @@ -999,8 +999,36 @@ //System.out.println(model.getData()); return model; } - - public static void main(String[] args) { + //澶撮儴鏌ュ嚭宸插畨瑁呯殑鎵�鏈夋満鎴� + public ServiceModel serchByDeviceId(Object obj){ + int devNum=(new BattInfImpl()).serchByDeviceId(obj); //鎬昏澶囨暟(宸插畨瑁�) + model.setCode(1); + model.setSum(devNum); + model.setMsg("鏌ヨ鎴愬姛!"); + return model; + } + //澶撮儴鏌ュ嚭宸插畨瑁呯殑鐢垫睜鍗曚綋 + public ServiceModel serchByInstall_count(Object obj){ + int devNum=(new BattInfImpl()).serchByInstall_count(obj); //鎬昏澶囨暟(宸插畨瑁�) + model.setCode(1); + model.setSum(devNum); + model.setMsg("鏌ヨ鎴愬姛!"); + return model; + } + + //娣诲姞鎿嶄綔鏃舵煡璇㈠嚭璁惧id + public ServiceModel searchmaxdev_id(){ + int dev_id=BattinfGroupFactory.searchmaxdev_id(); + model.setData(dev_id); + return model; + } + //娣诲姞鎿嶄綔鏃舵煡璇㈠嚭鐢垫睜缁刬d + public ServiceModel searchMaxBattgroupId(){ + int battgroupid=BattinfGroupFactory.searchMaxBattgroupId(); + model.setData(battgroupid); + return model; + } + public static void main(String[] args) { //new BattInfServices().findMenu(); BattInf b=new BattInf(); //b.setBattGroupId(1000005); -- Gitblit v1.9.1