Commit ca0ef364 authored by 张永's avatar 张永

获取付款方式

parent 9527b5b9
...@@ -17,6 +17,7 @@ import com.egolm.common.bean.Rjx; ...@@ -17,6 +17,7 @@ import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.JdbcTemplate; import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.shop.api.service.CommonService; import com.egolm.shop.api.service.CommonService;
import com.egolm.shop.common.XException; import com.egolm.shop.common.XException;
import com.egolm.shop.common.utils.I18NUtils;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
...@@ -78,6 +79,28 @@ public class CommonController { ...@@ -78,6 +79,28 @@ public class CommonController {
return Rjx.jsonOk().set("list", list).toJson(); return Rjx.jsonOk().set("list", list).toJson();
} }
@ApiOperation("获取付款方式")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "shopNo", dataType = "String", required = false, value = "参数名"),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = false, value = "终端标识", defaultValue = "wechat"),
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = false, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "")
})
@RequestMapping(value = "/getPayTypeList",method=RequestMethod.GET)
public String getPayTypeList(HttpServletRequest request) {
String langID = request.getParameter("langID");
String shopNo = request.getParameter("shopNo");
if(!StringUtil.isNotEmpty(shopNo)) {
return Rjx.json().setCode(-1).setMessage(I18NUtils.getMessage(shopNo, "Msg_Parameter_empty")).toJson();
}
String sql = "SELECT Ord = b.nOrd, PayTypeID=b.sPayTypeID, PayType = b.sPayType, PayTypeDesc = b.sPayTypeDesc,PayTypeLogoUrl = b.sUrl "
+ " FROM tShopPayType a,tPayType b,tShop s WHERE a.sPayTypeID = b.sPayTypeID AND a.nShopID = s.nShopID AND s.sShopNO = ? ORDER BY b.nOrd";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql,shopNo);
return Rjx.jsonOk().set("list", list).toJson();
}
@ApiOperation("获取省市区数据") @ApiOperation("获取省市区数据")
@ApiImplicitParams({ @ApiImplicitParams({
......
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