曾富康
2026-06-16 e006264e926df1fd089a92a017cfd2b53c4fa2dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.stylefeng.guns.modular.system.controller.general;
 
import com.stylefeng.guns.core.base.controller.BaseController;
import com.stylefeng.guns.modular.system.model.TSysPaymentMode;
import com.stylefeng.guns.modular.system.service.ITSysPaymentModeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
 
 
@Controller
@RequestMapping("/tSysPaymentMode")
public class TSysPaymentModeController extends BaseController {
 
    @Autowired
    private ITSysPaymentModeService sysPaymentModeService;
 
    @RequestMapping("/index")
    public String index(Model model) {
        TSysPaymentMode paymentMode = sysPaymentModeService.getPaymentMode();
        model.addAttribute("paymentMode", paymentMode);
        return "system/tOpenCity/tSysPaymentMode.html";
    }
 
    @RequestMapping("/setUp")
    @ResponseBody
    public Object setUp(Integer privateType, Integer taxiType) {
        TSysPaymentMode paymentMode = sysPaymentModeService.getPaymentMode();
        paymentMode.setPrivateType(privateType);
        paymentMode.setTaxiType(2);
        sysPaymentModeService.updatePaymentMode(paymentMode);
        return SUCCESS_TIP;
    }
}