Commit cd9a7450 by 徐高华

企微订单查询

parent f3e6f2d5
package com.gic.haoban.manage.service.dao.mapper.fee;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrderAccount;
......@@ -46,5 +48,7 @@ public interface TabHaobanQywxFeeOrderAccountMapper {
* @date 2022-08-05 11:24:02
*/
int countOrderAccountStatus(@Param("status") Integer status,@Param("wxEnterpriseId") String wxEnterpriseId);
List<TabHaobanQywxFeeOrderAccount> listAccount(@Param("wxEnterpriseId")String wxEnterpriseId, @Param("orderId")String orderId);
}
package com.gic.haoban.manage.service.service.fee;
import java.util.List;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrderAccount;
/**
......@@ -28,5 +30,8 @@ public interface HaobanQywxFeeOrderAccountService {
* @date 2022-08-05 11:23:01
*/
int countOrderAccountStatus(Integer status,String wxEnterpriseId);
List<TabHaobanQywxFeeOrderAccount> listAccount(String wxEnterpriseId , String ordreId) ;
}
......@@ -4,6 +4,9 @@ import com.gic.commons.util.UniqueIdUtils;
import com.gic.haoban.manage.service.dao.mapper.fee.TabHaobanQywxFeeOrderAccountMapper;
import com.gic.haoban.manage.service.entity.fee.TabHaobanQywxFeeOrderAccount;
import com.gic.haoban.manage.service.service.fee.HaobanQywxFeeOrderAccountService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -44,5 +47,10 @@ public class HaobanQywxFeeOrderAccountServiceImpl implements HaobanQywxFeeOrderA
public int countOrderAccountStatus(Integer status, String wxEnterpriseId) {
return tabHaobanQywxFeeOrderAccountMapper.countOrderAccountStatus(status,wxEnterpriseId);
}
@Override
public List<TabHaobanQywxFeeOrderAccount> listAccount(String wxEnterpriseId, String ordreId) {
return this.tabHaobanQywxFeeOrderAccountMapper.listAccount(wxEnterpriseId,ordreId);
}
}
......@@ -25,7 +25,7 @@
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_order_account
where order_id = #{orderId} and active_code = #{activeCode} and wx_enterprise_id = #{wxEnterpriseId}
where wx_enterprise_id = #{wxEnterpriseId} and order_id = #{orderId} and active_code = #{activeCode}
</select>
<!--新增所有列-->
......@@ -77,6 +77,13 @@
from tab_haoban_qywx_fee_order_account
where wx_enterprise_id = #{wxEnterpriseId} and status = #{status}
</select>
<select id="listAccount" resultMap="TabHaobanQywxFeeOrderAccountMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_order_account
where wx_enterprise_id = #{wxEnterpriseId} and order_id = #{orderId} and status in (1,2,4,5,6)
</select>
</mapper>
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