|
@ -7,6 +7,8 @@ import cn.stylefeng.guns.zjxlUtil.PageUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
@ -26,6 +28,8 @@ import java.util.List;
|
|
|
@Api(description = "系统管理字典")
|
|
|
public class ZjxlSystemDictController extends BaseController {
|
|
|
|
|
|
private Logger logger = (Logger) LoggerFactory.getLogger(ZjxlSystemDictController.class);
|
|
|
|
|
|
@Autowired
|
|
|
private ZjxlSystemDictService systemDictService;
|
|
|
|
|
@ -71,6 +75,10 @@ public class ZjxlSystemDictController extends BaseController {
|
|
|
@ApiOperation(value = "删除字典")
|
|
|
public String deleteSystemDict(@ApiParam(name = "id", value = "systemDictId", required = false) @RequestParam(value = "id", required = false)String id){
|
|
|
try {
|
|
|
if (id == null) {
|
|
|
logger.info("删除合作伙伴:id====="+id);
|
|
|
return write(-1,"获取参数失败");
|
|
|
}
|
|
|
return write(200,"删除成功","data",systemDictService.deleteSystemDict(id));
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
@ -83,6 +91,10 @@ public class ZjxlSystemDictController extends BaseController {
|
|
|
public String updateSystemDict(@ApiParam(name = "id", value = "systemDictId", required = false) @RequestParam(value = "id", required = false)String id,
|
|
|
@ApiParam(name = "isLine", value = "是否上线", required = false) @RequestParam(value = "isLine", required = false)Integer isLine){
|
|
|
try {
|
|
|
if (id == null || isLine == null){
|
|
|
logger.info("修改是否上线:id====="+id+",isLine===="+isLine);
|
|
|
return write(-1,"获取参数失败");
|
|
|
}
|
|
|
return write(200,"修改上线成功","data",systemDictService.updateSystemDict(id,isLine));
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|