| | |
| | | return Integer.parseInt(businessOaWorkflowFormInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | /** |
| | | * 查询是否有表 |
| | | * @param info |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map> hasTable(Map info) { |
| | | List<Map> rows = sqlSessionTemplate.selectList("oaWorkflowFormServiceDaoImpl.hasTable", info); |
| | | return rows; |
| | | } |
| | | /** |
| | | * 查询是否有表 |
| | | * @param info |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int createTable(Map info) { |
| | | int flag = sqlSessionTemplate.update("oaWorkflowFormServiceDaoImpl.createTable", info); |
| | | return flag; |
| | | } |
| | | |
| | | @Override |
| | | public int queryOaWorkflowFormDataCount(Map paramIn) { |
| | | logger.debug("查询queryOaWorkflowFormDataCount数据 入参 info : {}",paramIn); |
| | | |
| | | List<Map> businessOaWorkflowFormInfos = sqlSessionTemplate.selectList("oaWorkflowFormServiceDaoImpl.queryOaWorkflowFormDataCount", paramIn); |
| | | if (businessOaWorkflowFormInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessOaWorkflowFormInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> queryOaWorkflowFormDatas(Map paramIn) { |
| | | logger.debug("查询queryOaWorkflowFormDatas信息 入参 info : {}",paramIn); |
| | | |
| | | List<Map> businessOaWorkflowFormInfos = sqlSessionTemplate.selectList("oaWorkflowFormServiceDaoImpl.queryOaWorkflowFormDatas",paramIn); |
| | | |
| | | return businessOaWorkflowFormInfos; |
| | | } |
| | | |
| | | @Override |
| | | public int saveOaWorkflowFormDataInfo(Map paramIn) { |
| | | logger.debug("保存saveOaWorkflowFormDataInfo 入参 info : {}",paramIn); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("oaWorkflowFormServiceDaoImpl.saveOaWorkflowFormDataInfo",paramIn); |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | } |