高效能源监控管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mh.system.mapper.SysParamsMapper">
<resultMap type="SysParams" id="SysParamsResult">
<id property="id" column="id" />
<result property="proName" column="pro_name" />
<result property="logo" column="logo" />
<result property="proArea" column="pro_area" />
<result property="proAddr" column="pro_addr" />
<result property="buildingArea" column="building_area" />
<result property="operateStartTime" column="operate_start_time" />
</resultMap>
<select id="selectSysParamsList" parameterType="SysParams" resultMap="SysParamsResult">
select id, pro_name, logo, pro_area, pro_addr, building_area, operate_start_time from sys_params limit 1
</select>
<update id="updateLogo">
update sys_params set logo=#{logo}, update_by = #{userName}, update_time = current_timestamp where id=#{proId}
</update>
</mapper>