| | |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.moon.server.entity.data.ColortabEntity"> |
| | | select * from lf.sys_colortab |
| | | select a.*, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName |
| | | from lf.sys_colortab a |
| | | <where> |
| | | <if test="name != null"> |
| | | upper(name) like #{name} |
| | |
| | | </select> |
| | | |
| | | <select id="selectAll" resultType="com.moon.server.entity.data.ColortabEntity"> |
| | | select * from lf.sys_colortab order by id desc; |
| | | select a.*, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName from lf.sys_colortab a order by id desc; |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.moon.server.entity.data.ColortabEntity"> |
| | | select * from lf.sys_colortab where id = #{id} |
| | | select a.*, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName from lf.sys_colortab a where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.moon.server.entity.data.ColortabEntity"> |