|
|
|
@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -20,7 +21,7 @@ public class PayCirController {
|
|
|
|
|
PayCirService payCirService;
|
|
|
|
|
|
|
|
|
|
@PostMapping("/pay")
|
|
|
|
|
public void payAmountCir(HttpServletRequest request, HttpServletResponse response){
|
|
|
|
|
public void payAmountCir(HttpServletRequest request, HttpServletResponse response)throws IOException {
|
|
|
|
|
long checkNum = Long.parseLong(request.getParameter("checkNum"));
|
|
|
|
|
double pay = Double.parseDouble(request.getParameter("amount"));
|
|
|
|
|
HttpSession session = request.getSession();
|
|
|
|
@ -30,8 +31,8 @@ public class PayCirController {
|
|
|
|
|
Map map = new HashMap();
|
|
|
|
|
map.put("value",result);
|
|
|
|
|
if(result==1){
|
|
|
|
|
|
|
|
|
|
String json = JSONObject.toJSONString(map);
|
|
|
|
|
response.getWriter().print(json);
|
|
|
|
|
}else if(result==-2){
|
|
|
|
|
//return"/未贷款该业务!";
|
|
|
|
|
}else if(result==-3){
|
|
|
|
|