第一种解决方法:在sql中使用别名 <select id="getRoleList" resultType="com.ttpfx.domain.Role"> select ID as id, ROLE_NAME as name, ROLE_DESC as description from role; </select> 第二种解决方法:使用resultMap <?xml version="1.0" encoding=…
/****** Object: StoredProcedure [dbo].[getSplitValue] Script Date: 03/13/2014 13:58:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[getSplitValue] AS --定义获取GUID ) SET @NEWID= REPLACE(NEWID(),'-','') --判断临时表数据是否存在,如果…