| | |
| | | " `create_time` DATETIME NULL,\n" + |
| | | " PRIMARY KEY (`id`));"; |
| | | |
| | | /**用户对应的电池组id*/ |
| | | public static String BattGroupIdsOfUser =" (select distinct db_battinf.tb_battinf.battgroupid " + |
| | | "from " + |
| | | "db_battinf.tb_battinf," + |
| | | "db_user.tb_user_battgroup_baojigroup_battgroup," + |
| | | "db_user.tb_user_battgroup_baojigroup_usr," + |
| | | "db_user.tb_user_inf " + |
| | | "where db_user.tb_user_battgroup_baojigroup_battgroup.BattGroupId=db_battinf.tb_battinf.BattGroupId " + |
| | | "and db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id=db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id " + |
| | | "and db_user.tb_user_inf.uid=db_user.tb_user_battgroup_baojigroup_usr.uid " + |
| | | "and db_user.tb_user_inf.uid=? )"; |
| | | } |