17 lines
741 B
XML
17 lines
741 B
XML
<?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.bonus.bm.dao.LogDao" >
|
|
|
|
<select id="findInNum" resultType="com.bonus.bm.beans.LogBean" parameterType="com.bonus.bm.beans.LogBean">
|
|
SELECT if(mt.NUM='' OR mt.num is null,0,ROUND(mt.num)) as inNum FROM mm_type mt
|
|
WHERE mt.ID=#{typeId}
|
|
</select>
|
|
|
|
<insert id="insertLog" parameterType="com.bonus.bm.beans.LogBean">
|
|
INSERT INTO `bm_logs`(`model`, `fun`, `task`, `type_id`, `description`, `time`, `creator`)
|
|
VALUES
|
|
(#{model}, #{fun}, #{task}, #{typeId}, #{description}, #{time}, #{creator})
|
|
</insert>
|
|
|
|
|
|
</mapper> |