fei.wang
7 天以前 e15f561a1f9eddfde503d59baf45a860b131928e
src/main/java/com/flow/controller/OperationLogController.java
@@ -1,8 +1,10 @@
package com.flow.controller;
import com.flow.mapper.CompanyMapper;
import com.flow.pojo.Card;
import com.flow.pojo.Duanxinlog;
import com.flow.pojo.OperationLog;
import com.flow.pojo.TbFuwuqi;
import com.flow.service.OperationLogService;
import com.flow.util.result;
import com.flow.util.resultutil;
@@ -10,8 +12,10 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import java.util.List;
@RestController
@@ -27,6 +31,18 @@
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
    @PostMapping({"addcardopera"})
    public ModelAndView addBang(Card card) throws Exception {
        ModelAndView modelAndView = new ModelAndView();
        OperationLog operationLog = new OperationLog();
        operationLog.setCaozuotype("新增");
        operationLog.setCaozuocontent("新增卡号:"+card.getCardnumber());
        operationLog.setCaozuoname(card.getCaozuoname());
        operationLogService.addOperationLog(operationLog);
        modelAndView.setViewName("/page/index1.jsp");
        return modelAndView;
    }
}