|
@@ -46,6 +46,48 @@
|
|
OR shot = #{designUserId})
|
|
OR shot = #{designUserId})
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="queryMaterialsByDesignLeader" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
+ SELECT
|
|
|
|
+ t2.id as orderId,
|
|
|
|
+ t2.order_title as orderTitle,
|
|
|
|
+ (SELECT realname from sys_user where id=t2.create_by) as createBy,
|
|
|
|
+ (SELECT realname from sys_user where id=t2.design) as designLeader,
|
|
|
|
+ t2.start_date as startDate,
|
|
|
|
+ t2.end_date as endDate,
|
|
|
|
+ t2.attachment_url as attachmentUrl,
|
|
|
|
+ t2.attachment_name as attachmentName,
|
|
|
|
+ t2.order_remark as orderRemark,
|
|
|
|
+ (SELECT project_name from ctop_project where id=t1.project_id) as projectName,
|
|
|
|
+ t1.id as materialId,
|
|
|
|
+ t1.project_id as projectId,
|
|
|
|
+ t1.material_code as materialCode,
|
|
|
|
+ t1.material_name as materialName,
|
|
|
|
+ t1.material_type as materialType,
|
|
|
|
+ t1.material_status as materialStatus,
|
|
|
|
+ t1.script_id as scriptId,
|
|
|
|
+ t1.script_status as scriptStatus,
|
|
|
|
+ t1.script_advise as scriptAdvise,
|
|
|
|
+ t1.video_id as videoId,
|
|
|
|
+ t1.video_status as videoStatus,
|
|
|
|
+ t1.video_advise as videoAdvise,
|
|
|
|
+ t1.shot,
|
|
|
|
+ (SELECT realname from sys_user where id=t1.shot) as shotName,
|
|
|
|
+ t1.clip,
|
|
|
|
+ (SELECT realname from sys_user where id=t1.clip) as clipName,
|
|
|
|
+ t1.plan,
|
|
|
|
+ (SELECT realname from sys_user where id=t1.plan) as planName
|
|
|
|
+ FROM
|
|
|
|
+ ctop_platform_material t1
|
|
|
|
+ LEFT JOIN ctop_platform_order t2 ON t1.order_code = t2.order_code
|
|
|
|
+ WHERE
|
|
|
|
+ t1.material_status in
|
|
|
|
+ <foreach item="item" index="index" collection="materialStatus"
|
|
|
|
+ open="(" separator="," close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ And t2.design=#{designLeader}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="queryMaterialsByOperatorUserId" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="queryMaterialsByOperatorUserId" resultType="com.alibaba.fastjson.JSONObject">
|
|
SELECT
|
|
SELECT
|
|
t2.id as orderId,
|
|
t2.id as orderId,
|