| | |
| | | return Integer.parseInt(businessMachineRecordInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getAssetsMachineRecords(Map info) { |
| | | List<Map> machineRecordInfos = sqlSessionTemplate.selectList("machineRecordServiceDaoImpl.getAssetsMachineRecords", info); |
| | | return machineRecordInfos; |
| | | } |
| | | |
| | | @Override |
| | | public int saveMachineRecords(Map info) { |
| | | int saveFlag = sqlSessionTemplate.update("machineRecordServiceDaoImpl.saveMachineRecords", info); |
| | | |
| | | if (saveFlag < 1) { |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "添加数据失败:" + JSONObject.toJSONString(info)); |
| | | } |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | } |