|
|
|
@ -4,16 +4,18 @@ import cn.chjyj.szwh.controller.BaseController; |
|
|
|
import cn.chjyj.szwh.service.AccountCloseService; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* 对账控制器 |
|
|
|
*/ |
|
|
|
@RestController |
|
|
|
@RequestMapping("//admin/order.AccountClose") |
|
|
|
@RequestMapping("/admin/order.AccountClose") |
|
|
|
public class AdminAccountCloseController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private AccountCloseService accountCloseService; |
|
|
|
@ -29,4 +31,22 @@ public class AdminAccountCloseController extends BaseController { |
|
|
|
jsonObject.put("data",map); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/setPaySetting") |
|
|
|
public JSONObject setPaySetting(HttpServletRequest request){ |
|
|
|
String alipay= request.getParameter("alipay"); |
|
|
|
int ialipay = Integer.valueOf(alipay); |
|
|
|
|
|
|
|
String wechatPay= request.getParameter("wechat_pay"); |
|
|
|
int iwechat = Integer.valueOf(wechatPay); |
|
|
|
|
|
|
|
String ebankPay = request.getParameter("ebank_pay"); |
|
|
|
int iebank= Integer.valueOf(ebankPay); |
|
|
|
|
|
|
|
accountCloseService.setPaySetting(ialipay,iwechat,iebank); |
|
|
|
|
|
|
|
jsonObject.put("code",200); |
|
|
|
jsonObject.put("msg","成功"); |
|
|
|
return jsonObject; |
|
|
|
} |
|
|
|
} |
|
|
|
|