Commit 8395e03e by jianan

续年佣金计算-已退保10

parent 65642149
...@@ -21,4 +21,6 @@ public interface AgPoOrderCommissionMapper { ...@@ -21,4 +21,6 @@ public interface AgPoOrderCommissionMapper {
void updateBycommissionNo(AgPoOrderCommission orderCommission); void updateBycommissionNo(AgPoOrderCommission orderCommission);
AgPoOrderCommission selectByCommissionNo(String commissionNo); AgPoOrderCommission selectByCommissionNo(String commissionNo);
List<AgPoOrderCommission> selectByOrderId(Long orderId);
} }
\ No newline at end of file
...@@ -36,4 +36,5 @@ public interface AclCustomerFortuneMapper { ...@@ -36,4 +36,5 @@ public interface AclCustomerFortuneMapper {
List<AclCustomerFortuneStatistics> findBypractitionerIds(@Param("list")List<Long> practitionerIds, @Param("time")Integer time); List<AclCustomerFortuneStatistics> findBypractitionerIds(@Param("list")List<Long> practitionerIds, @Param("time")Integer time);
List<AclCustomerFortune> queryLifeFortuneListByOrderId(Long orderId);
} }
\ No newline at end of file
...@@ -27,4 +27,6 @@ public interface AclCustomerFortuneDALService { ...@@ -27,4 +27,6 @@ public interface AclCustomerFortuneDALService {
List<AclCustomerFortune> findByOrderId(Long orderId); List<AclCustomerFortune> findByOrderId(Long orderId);
List<AclCustomerFortuneStatistics> findBypractitionerIds(List<Long> practitionerIds, Integer time); List<AclCustomerFortuneStatistics> findBypractitionerIds(List<Long> practitionerIds, Integer time);
List<AclCustomerFortune> queryLifeFortuneListByOrderId(Long orderId);
} }
...@@ -54,4 +54,9 @@ public class AclCustomerFortuneDALServiceImpl implements AclCustomerFortuneDALSe ...@@ -54,4 +54,9 @@ public class AclCustomerFortuneDALServiceImpl implements AclCustomerFortuneDALSe
public List<AclCustomerFortuneStatistics> findBypractitionerIds(List<Long> practitionerIds, Integer time) { public List<AclCustomerFortuneStatistics> findBypractitionerIds(List<Long> practitionerIds, Integer time) {
return aclCustomerFortuneMapper.findBypractitionerIds(practitionerIds, time); return aclCustomerFortuneMapper.findBypractitionerIds(practitionerIds, time);
} }
@Override
public List<AclCustomerFortune> queryLifeFortuneListByOrderId(Long orderId) {
return aclCustomerFortuneMapper.queryLifeFortuneListByOrderId(orderId);
}
} }
...@@ -350,4 +350,11 @@ ...@@ -350,4 +350,11 @@
from ag_po_order_commission from ag_po_order_commission
where commission_no = #{commissionNo,jdbcType=VARCHAR} where commission_no = #{commissionNo,jdbcType=VARCHAR}
</select> </select>
<select id="selectByOrderId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_po_order_commission
where order_id = #{orderId,jdbcType=VARCHAR}
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -938,4 +938,15 @@ ...@@ -938,4 +938,15 @@
GROUP BY f.customer_id GROUP BY f.customer_id
</select> </select>
<select id="queryLifeFortuneListByOrderId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_acl_customer_fortune f
left join (select p.customer_id p_customer_id, s.practitioner_type_id from ag_acl_practitioner p left join ag_acl_practitioner_setting s on p.id = s.practitioner_id) p
on f.customer_id = p.p_customer_id
where 1=1
and p.practitioner_type_id = 28
and f.order_id = #{orderId,jdbcType=BIGINT}
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment