|
@@ -2,8 +2,8 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.caimei.mapper.cmMapper.ImageMapper">
|
|
|
<insert id="insertImage" keyColumn="id" keyProperty="id" parameterType="com.caimei.model.po.ImagePo" useGeneratedKeys="true">
|
|
|
- insert into cm_brand_image(authUserId, title, zipUrl, auditStatus, status, createTime, auditBy, auditTime, checkFlag)
|
|
|
- values (#{authUserId}, #{title}, #{zipUrl}, #{auditStatus}, #{status}, #{createTime}, #{auditBy}, #{auditTime}, #{checkFlag})
|
|
|
+ insert into cm_brand_image(authUserId, title, zipUrl, auditStatus, status, createTime, auditBy, auditTime)
|
|
|
+ values (#{authUserId}, #{title}, #{zipUrl}, #{auditStatus}, #{status}, #{createTime}, #{auditBy}, #{auditTime})
|
|
|
</insert>
|
|
|
<insert id="insertImageDetail">
|
|
|
insert into cm_brand_image_detail(imageId, image)
|
|
@@ -14,8 +14,7 @@
|
|
|
set title = #{title},
|
|
|
zipUrl = #{zipUrl},
|
|
|
status = #{status},
|
|
|
- auditStatus = #{auditStatus},
|
|
|
- checkFlag = #{checkFlag}
|
|
|
+ auditStatus = #{auditStatus}
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
<update id="updateImageStatusByImageId">
|
|
@@ -46,7 +45,7 @@
|
|
|
<select id="getImageList" resultType="com.caimei.model.vo.ImageListVo">
|
|
|
select a.id as imageId,a.title as imageTitle,
|
|
|
a.auditStatus,a.invalidReason,a.status,a.createTime,
|
|
|
- au.name as auditBy,a.auditTime,a.checkFlag
|
|
|
+ au.name as auditBy,a.auditTime
|
|
|
from cm_brand_image a
|
|
|
left join cm_brand_auth_user au on a.auditBy = au.authUserId
|
|
|
where a.authUserId = #{authUserId}
|