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.
22 lines
737 B
22 lines
737 B
<?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.epmet.dao.InfoProfileDao">
|
|
|
|
|
|
<update id="addReadTotal" parameterType="java.lang.String">
|
|
UPDATE info_profile
|
|
SET read_total = read_total + 1,
|
|
UPDATED_TIME = NOW()
|
|
WHERE
|
|
INFO_ID = #{infoId}
|
|
AND DEL_FLAG = '0'
|
|
</update>
|
|
|
|
<select id="selectByInfoId" parameterType="java.lang.String" resultType="com.epmet.entity.InfoProfileEntity">
|
|
select ip.*
|
|
from info_profile ip
|
|
where ip.del_flag='0'
|
|
and ip.info_id=#{infoId}
|
|
</select>
|
|
</mapper>
|