|
@@ -31,12 +31,12 @@
|
|
|
id = #{id})
|
|
|
</update>
|
|
|
|
|
|
- <select id="findList" resultType="com.jeeplus.pubmodules.oss.domain.WorkAttachment">
|
|
|
+ <select id="findList" resultType="com.jeeplus.pubmodules.oss.service.dto.AttachmentDTO">
|
|
|
SELECT a.id, a.url, a.type, a.attachment_id, a.attachment_name, a.attachment_flag,
|
|
|
a.module_type, a.attachment_type, a.file_size, a.sort, a.description,
|
|
|
- a.create_date, a.create_by as "create_by.id", su.name as "createBy.name" , a.update_date, a.update_by as "updateBy.id", a.del_flag
|
|
|
+ a.create_time, a.create_by_id as "create_by.id", su.name as "createBy.name" , a.update_time, a.update_by_id as "updateBy.id", a.del_flag
|
|
|
FROM work_attachment a
|
|
|
- left join sys_user su on su.id = a.create_by
|
|
|
+ left join sys_user su on su.id = a.create_by_id
|
|
|
${ew.customSqlSegment}
|
|
|
ORDER BY a.sort ASC;
|
|
|
</select>
|
|
@@ -44,10 +44,10 @@
|
|
|
<insert id="insertWorkAttachment">
|
|
|
INSERT INTO work_attachment (
|
|
|
id,
|
|
|
- create_by,
|
|
|
- create_date,
|
|
|
- update_by,
|
|
|
- update_date,
|
|
|
+ create_by_id,
|
|
|
+ create_time,
|
|
|
+ update_by_id,
|
|
|
+ update_time,
|
|
|
del_flag,
|
|
|
url,
|
|
|
type,
|
|
@@ -60,9 +60,9 @@
|
|
|
VALUES(
|
|
|
#{workAttachment.id},
|
|
|
#{userDto.id},
|
|
|
- #{workAttachment.createDate},
|
|
|
+ #{workAttachment.createTime},
|
|
|
#{userDto.id},
|
|
|
- #{workAttachment.updateDate},
|
|
|
+ #{workAttachment.updateTime},
|
|
|
#{workAttachment.delFlag},
|
|
|
#{workAttachment.url},
|
|
|
#{workAttachment.type},
|
|
@@ -74,12 +74,12 @@
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
|
- <select id="getByAttachmentIdAndUrlAndAttachmentFlag" resultType="com.jeeplus.pubmodules.oss.domain.WorkAttachment">
|
|
|
+ <select id="getByAttachmentIdAndUrlAndAttachmentFlag" resultType="com.jeeplus.pubmodules.oss.service.dto.AttachmentDTO">
|
|
|
SELECT a.id, a.url, a.type, a.attachment_id, a.attachment_name, a.attachment_flag,
|
|
|
a.module_type, a.attachment_type, a.file_size, a.sort, a.description,
|
|
|
- a.create_date, a.create_by as "create_by.id", su.name as "createBy.name" , a.update_date, a.update_by as "updateBy.id", a.del_flag
|
|
|
+ a.create_time, a.create_by_id as "create_by.id", su.name as "createBy.name" , a.update_time, a.update_by_id as "updateBy.id", a.del_flag
|
|
|
FROM work_attachment a
|
|
|
- left join sys_user su on su.id = a.create_by
|
|
|
+ left join sys_user su on su.id = a.create_by_id
|
|
|
<where>
|
|
|
a.del_flag = 0
|
|
|
<if test="attachmentId != null and attachmentId != ''">
|