DKlController.java 818 Bytes
package com.bsth.controller.zndd;


import com.bsth.controller.BaseController;
import com.bsth.entity.DKLInfo;
import com.bsth.service.DKLInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("dkl_logger")
public class DKlController extends BaseController<DKLInfo, Integer> {

    @Autowired
    DKLInfoService DKLInfoService;

    @RequestMapping(value = "updatedkl/{id}", method = RequestMethod.POST)
    public int updatedkl(@PathVariable("id") Integer id){
        return DKLInfoService.updatedkl(id);
    }
}