This commit is contained in:
2025-05-22 17:35:00 +08:00
parent dfc3947e9b
commit bef80caa1d
5 changed files with 131 additions and 154 deletions
+29 -30
View File
@@ -1,37 +1,36 @@
<?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="lingtao.net.dao.BugMapper">
<select id="getBugs" parameterType="Bug" resultType="Bug">
SELECT
*
FROM
bug
<where>
<if test="createBy !=null and createBy != '' ">
createBy like '%${createBy}%'
</if>
</where>
ORDER BY id DESC
</select>
<select id="getBugs" parameterType="Bug" resultType="Bug">
SELECT
*
FROM
bug
<where>
<if test="createBy !=null and createBy != '' ">
createBy like '%${createBy}%'
</if>
</where>
ORDER BY id DESC
</select>
<insert id="addBug" parameterType="Bug">
INSERT INTO bug
(
id,
product,
bugRemark,
createBy,
createDate
)
VALUES
(
NULL,
#{product},
#{bugRemark},
#{createBy},
now()
)
<insert id="addBug" parameterType="Bug">
INSERT INTO bug
(id,
product,
bugRemark,
createBy,
createDate)
VALUES (NULL,
#{product},
#{bugRemark},
#{createBy},
now())
</insert>
<update id="updateBug" parameterType="Bug">
update bug
set answer = #{answer}
where id = #{id}
</update>
</mapper>