{"id":13343048,"url":"https://github.com/MoneyHacker/common-dao","last_synced_at":"2025-03-12T04:31:59.763Z","repository":{"id":92790477,"uuid":"160484241","full_name":"MoneyHacker/common-dao","owner":"MoneyHacker","description":"common-dao,MyBatis,通用Dao组件","archived":false,"fork":false,"pushed_at":"2019-03-02T06:26:56.000Z","size":79,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-24T15:38:04.550Z","etag":null,"topics":["common-dao","mybatis-mapper","mybatis-xml","xml"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MoneyHacker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-05T08:19:09.000Z","updated_at":"2019-03-02T06:26:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfa4bc4e-f6db-4f7e-bb64-2a0cdc33e3d7","html_url":"https://github.com/MoneyHacker/common-dao","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoneyHacker%2Fcommon-dao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoneyHacker%2Fcommon-dao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoneyHacker%2Fcommon-dao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoneyHacker%2Fcommon-dao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoneyHacker","download_url":"https://codeload.github.com/MoneyHacker/common-dao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158977,"owners_count":20245668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["common-dao","mybatis-mapper","mybatis-xml","xml"],"created_at":"2024-07-29T19:30:36.772Z","updated_at":"2025-03-12T04:31:59.756Z","avatar_url":"https://github.com/MoneyHacker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 一 通用Dao组件,Common-dao, Mybaits 一个链接可以查询多个数据表\n- 每张表只需要生成Bean和xml文件即可\n- 一个Dao可以查询同一个链接池关联数据库下所有表\n- Bean 及 xml快速生成,可参考项目\u003ca href=\"https://github.com/MoneyHacker/generator\"\u003egenerator\u003c/a\u003e\n# 二示例,具体其它方法可以查看ICommonDao接口和测试类DaoTester\n\n    @Resource\n    private ICommonDao commonDao;\n    @Test\n    public void test() {\n        SysUser user = commonDao.get(1L, SysUser.class);\n        Assert.assertNotNull(user);\n        //根据内置sql查询,按条件查询\n        user = commonDao.get(SysUser.class,\"userName\",\"aaa\");\n        Assert.assertNotNull(user);\n        //根据自己定义sql查询,sqlId是在xml的sqlId\n        List\u003cSysUser\u003e userList =  commonDao.getListBySqlId(SysUser.class, \"selectByIds\",\"list\", Arrays.asList(1L,2L));\n        Assert.assertNotNull(userList);\n    }\n\n# 三 交流(QQ群：51567067) 支持\n\u003cimg src=\"https://github.com/MoneyHacker/simple/blob/master/simple_wx.jpg\" alt=\"微信\" width=\"300px\" height=\"300px\"/\u003e\u003cimg src=\"https://github.com/MoneyHacker/simple/blob/master/simple_zfb.png\" alt=\"支付宝\" width=\"300px\" height=\"300px\"/\u003e\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMoneyHacker%2Fcommon-dao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMoneyHacker%2Fcommon-dao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMoneyHacker%2Fcommon-dao/lists"}