资料中心
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
<?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.adc.da.slrs.fileMaterialCenter.dao.FileMaterialDao">
|
||||
|
||||
<update id="topping">
|
||||
UPDATE file_material
|
||||
SET is_top = (
|
||||
(
|
||||
SELECT
|
||||
Max(is_top)
|
||||
FROM
|
||||
(SELECT * FROM file_material) AS x
|
||||
) + 1
|
||||
)
|
||||
WHERE
|
||||
id = #{id}
|
||||
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user