Pu Zhibing
2 天以前 e809f5955584e600d8612540ea814977c49774c2
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TAdditionalFeeController.java
@@ -4,8 +4,8 @@
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.core.base.controller.BaseController;
import com.stylefeng.guns.core.beetl.ShiroExtUtil;
import com.stylefeng.guns.core.common.constant.factory.PageFactory;
import com.stylefeng.guns.core.shiro.ShiroKit;
import com.stylefeng.guns.core.util.DateUtil;
import com.stylefeng.guns.core.util.ToolUtil;
import com.stylefeng.guns.modular.system.model.TAdditionalFee;
@@ -15,24 +15,29 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
@Controller
@RequestMapping("/tAdditionalFee")
public class TAdditionalFeeController extends BaseController {
    private String PREFIX = "/system/tAdditionalFee/";
    @Autowired
    private ITAdditionalFeeService additionalFeeService;
    @Autowired
    private ShiroExtUtil shiroExtUtil;
    @RequestMapping("")
    public String index(){
    public String index() {
        return PREFIX + "tAdditionalFee.html";
    }
    ///   跳转添加
    @RequestMapping("/tAdditionalFee_add")
    public String tAdditionalFee_add(){
    public String tAdditionalFee_add() {
        return PREFIX + "tAdditionalFee_add.html";
    }
@@ -49,8 +54,9 @@
        if (ToolUtil.isNotEmpty(state)){
            wrapper.eq("state",state);
        }
        page.setRecords(additionalFeeService.selectMapsPage(page,wrapper).getRecords());
        Integer objectId = shiroExtUtil.getUser().getObjectId();
        wrapper.eq("companyId", objectId);
        page.setRecords(additionalFeeService.selectMapsPage(page, wrapper).getRecords());
        return super.packForBT(page);
    }
@@ -68,7 +74,7 @@
    @RequestMapping("/add")
    @ResponseBody
    public Object add(TAdditionalFee additionalFee){
        Integer companyId = ShiroKit.getUser().getObjectId();
        Integer companyId = shiroExtUtil.getUser().getObjectId();
        additionalFee.setCreateTime(DateUtil.parseTime(DateUtil.getTime()));
        additionalFee.setState(1);
        additionalFee.setCompanyId(companyId);