Antiloveg 8 years ago
parent
commit
ce73aa0383

+ 1 - 1
src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

@@ -1084,7 +1084,7 @@
   	left join user_identity ui on ui.uid = a.owner_id
   	left join organization_identity oi on oi.uid = a.owner_id
   	left join achievement_interest ai on ai.achievement_id = a.id and ai.uid = #{0}
-  	left join achievement_order ao on ao.achievement_id = a.id and ao.uid = #{0}
+  	left join achievement_order ao on ao.achievement_id = a.id and ao.uid = #{0}  and ao.status <![CDATA[ <> ]]> 6
   	where a.id = #{1}
   </select>
   

+ 1 - 1
src/main/java/com/goafanti/common/mapper/DemandMapper.xml

@@ -983,7 +983,7 @@
   	left join user_identity ui on ui.uid = d.employer_id
   	left join organization_identity oi on oi.uid = d.employer_id
   	left join demand_interest di on di.demand_id = d.id and di.uid = #{0}
-  	left join demand_order do on do.demand_id = d.id and do.uid = #{0}
+  	left join demand_order do on do.demand_id = d.id and do.uid = #{0} and do.status <![CDATA[ <> ]]> 6
   	where d.id = #{1}
   </select>