parent
c34fe50549
commit
eaf4a778dd
|
@ -118,6 +118,12 @@ public class ModelServiceImpl extends ServiceImpl<ModelMapper,ModelProduct> impl
|
||||||
|
|
||||||
ModelVersion modelVersion = modelVersionMapper.selectByProductId(responseModelProduct.getId());
|
ModelVersion modelVersion = modelVersionMapper.selectByProductId(responseModelProduct.getId());
|
||||||
|
|
||||||
|
if (modelVersion == null){
|
||||||
|
|
||||||
|
//跳出循环
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (userIdMax == 0){
|
if (userIdMax == 0){
|
||||||
//收藏为空
|
//收藏为空
|
||||||
modelVersion.setIsCollect(0);
|
modelVersion.setIsCollect(0);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectCollectWorkFlow" resultType="com.mcwl.resource.domain.response.ResponseCollect">
|
<select id="selectCollectWorkFlow" resultType="com.mcwl.resource.domain.response.ResponseCollect">
|
||||||
SELECT w.cover_path as file_path,v.file_name,w.workflow_name as product_name,u.nick_name,v.file_size,c.create_time
|
SELECT c.product_id as id,w.cover_path as file_path,v.file_name,w.workflow_name as product_name,u.nick_name,v.file_size,c.create_time
|
||||||
FROM collect as c
|
FROM collect as c
|
||||||
LEFT JOIN work_flow_version as v on c.product_id = v.id
|
LEFT JOIN work_flow_version as v on c.product_id = v.id
|
||||||
LEFT JOIN work_flow as w on v.work_flow_id = w.id
|
LEFT JOIN work_flow as w on v.work_flow_id = w.id
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectCollectModel" resultType="com.mcwl.resource.domain.response.ResponseCollect">
|
<select id="selectCollectModel" resultType="com.mcwl.resource.domain.response.ResponseCollect">
|
||||||
SELECT m.surface_url as file_path,v.file_name,m.model_name as product_name,u.nick_name,v.file_size,c.create_time,v.model_version_type as type
|
SELECT c.product_id as id,m.surface_url as file_path,v.file_name,m.model_name as product_name,u.nick_name,v.file_size,c.create_time,v.model_version_type as type
|
||||||
FROM collect as c
|
FROM collect as c
|
||||||
LEFT JOIN model_version as v on c.product_id = v.id
|
LEFT JOIN model_version as v on c.product_id = v.id
|
||||||
LEFT JOIN model as m on v.model_id = m.id
|
LEFT JOIN model as m on v.model_id = m.id
|
||||||
|
|
Loading…
Reference in New Issue