package com.hx.phip.tool.order;
|
|
import com.hx.common.service.CommonService;
|
import com.hx.mybatisTool.SqlSentence;
|
import com.hx.phiappt.model.consume.ConsumePayItem;
|
import com.hx.phip.dao.mapper.ConsumePayItemMapper;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
/**订单工具类*/
|
public class OrderTool {
|
|
/**获取一级子单的支付方式
|
* @param orderOneId 子单标识
|
* @param commonService 医生
|
* @return 支付方式集合
|
*/
|
public static List<ConsumePayItem> getOrderOnePay(String orderOneId, CommonService commonService){
|
SqlSentence sqlSentence = new SqlSentence();
|
Map<String,Object> values = new HashMap<>();
|
|
values.put("typeId",orderOneId);
|
sqlSentence.sqlSentence("SELECT * FROM consume_pay_item WHERE isDel = 0 AND typeId = #{m.typeId}",values);
|
return commonService.selectList(ConsumePayItemMapper.class,sqlSentence);
|
}
|
|
|
|
}
|