parent
efd5d8d14d
commit
db4e04451e
@ -0,0 +1,29 @@
|
|||||||
|
package au.com.royalpay.payment.manage.bill.bean;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by wangning on 11/02/2018.
|
||||||
|
*/
|
||||||
|
public class NewBillBean {
|
||||||
|
|
||||||
|
private BigDecimal amount;
|
||||||
|
|
||||||
|
private String currency;
|
||||||
|
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getAmount() {
|
||||||
|
return amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAmount(BigDecimal amount) {
|
||||||
|
this.amount = amount;
|
||||||
|
}
|
||||||
|
}
|
@ -1,12 +1,24 @@
|
|||||||
package au.com.royalpay.payment.manage.bill.core;
|
package au.com.royalpay.payment.manage.bill.core;
|
||||||
|
|
||||||
import com.google.gson.JsonObject;
|
import au.com.royalpay.payment.manage.bill.bean.NewBillBean;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by wangning on 11/02/2018.
|
* Created by wangning on 11/02/2018.
|
||||||
*/
|
*/
|
||||||
public interface BillService {
|
public interface BillService {
|
||||||
|
|
||||||
JsonObject getByBillId(String bill_id,int client_id);
|
JSONObject getBillDetail(String billId,int client_id);
|
||||||
|
|
||||||
|
void updateBillStatus(String billId,String status);
|
||||||
|
|
||||||
|
void removeBill(String billId);
|
||||||
|
|
||||||
|
JSONObject save(int client_id,NewBillBean newBillBean);
|
||||||
|
|
||||||
|
List<JSONObject> getBills(int client_id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="au.com.royalpay.payment.manage.mappers.bill.BillOrderMapper">
|
||||||
|
<select id="findByBillIdWithWechatInfo" resultType="com.alibaba.fastjson.JSONObject">
|
||||||
|
select o.client_id,o.order_id,o.count,o.order_total_amount,o.order_status,o.create_time,o.currency,o.customer_id
|
||||||
|
r.nickname,r.headimg
|
||||||
|
from pmt_bill_order o left join sys_customer_relation r on r.wechat_openid = o.customer_id and o.channel = 'Wechat' and o.bill_id = #{bill_id}
|
||||||
|
</select>
|
||||||
|
<select id="findByBillIdWithAlipayInfo" resultType="com.alibaba.fastjson.JSONObject">
|
||||||
|
select o.client_id,o.order_id,o.count,o.order_total_amount,o.order_status,o.create_time,o.currency,o.customer_id
|
||||||
|
r.nickname,r.headimg
|
||||||
|
from pmt_bill_order o left join sys_customer_relation_alipay r on r.alipay_uid = o.customer_id and o.channel = 'Alipay' and o.bill_id = #{bill_id}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
||||||
<mapper namespace="au.com.royalpay.payment.manage.mappers.bill.BillOrderRelationMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
Loading…
Reference in new issue