update code

dev_xds
haha 2024-05-03 20:56:28 +08:00
parent 1c107346dc
commit 9a3f8bfee8
1 changed files with 3 additions and 5 deletions

View File

@ -45,11 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectLastPhotography" parameterType="SurProjectPhotography" resultMap="SurProjectPhotographyResult">
<include refid="selectSurProjectPhotographyVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
ORDER BY video_date DESC LIMIT 0,1
where DATE_FORMAT(video_date,'%Y-%m')=Date_Format(now(),'%Y-%m') and is_del =0
<if test="projectId != null "> and project_id = #{projectId}</if>
ORDER BY video_date
</select>
<insert id="insertSurProjectPhotography" parameterType="SurProjectPhotography" useGeneratedKeys="true" keyProperty="id">