update code
parent
1c107346dc
commit
9a3f8bfee8
|
@ -45,11 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="selectLastPhotography" parameterType="SurProjectPhotography" resultMap="SurProjectPhotographyResult">
|
||||
<include refid="selectSurProjectPhotographyVo"/>
|
||||
<where>
|
||||
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>
|
||||
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||
</where>
|
||||
ORDER BY video_date DESC LIMIT 0,1
|
||||
ORDER BY video_date
|
||||
</select>
|
||||
|
||||
<insert id="insertSurProjectPhotography" parameterType="SurProjectPhotography" useGeneratedKeys="true" keyProperty="id">
|
||||
|
|
Loading…
Reference in New Issue