|
|
@ -1,13 +1,23 @@ |
|
|
package com.xm.core.ctrl; |
|
|
package com.xm.core.ctrl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.mdp.core.entity.Tips; |
|
|
|
|
|
import com.mdp.core.err.BizException; |
|
|
|
|
|
import com.mdp.core.utils.RequestUtils; |
|
|
|
|
|
import com.mdp.mybatis.PageUtils; |
|
|
|
|
|
import com.mdp.qx.HasQx; |
|
|
|
|
|
import com.xm.core.entity.XmExchange; |
|
|
import com.xm.core.service.XmExchangeService; |
|
|
import com.xm.core.service.XmExchangeService; |
|
|
import io.swagger.annotations.Api; |
|
|
|
|
|
|
|
|
import io.swagger.annotations.*; |
|
|
import org.apache.commons.logging.Log; |
|
|
import org.apache.commons.logging.Log; |
|
|
import org.apache.commons.logging.LogFactory; |
|
|
import org.apache.commons.logging.LogFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* url编制采用rest风格,如对XM.xm_exchange 功能表的操作有增删改查,对应的url分别为:<br> |
|
|
* url编制采用rest风格,如对XM.xm_exchange 功能表的操作有增删改查,对应的url分别为:<br> |
|
|
@ -32,7 +42,6 @@ public class XmExchangeController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
@ApiOperation( value = "查询功能表信息列表",notes="listXmExchange,条件之间是 and关系,模糊查询写法如 {studentName:'%才哥%'}") |
|
|
@ApiOperation( value = "查询功能表信息列表",notes="listXmExchange,条件之间是 and关系,模糊查询写法如 {studentName:'%才哥%'}") |
|
|
@ApiImplicitParams({ |
|
|
@ApiImplicitParams({ |
|
|
@ApiImplicitParam(name="id",value="评论编号,主键",required=false), |
|
|
@ApiImplicitParam(name="id",value="评论编号,主键",required=false), |
|
|
@ -79,15 +88,14 @@ public class XmExchangeController { |
|
|
m.put("tips", tips); |
|
|
m.put("tips", tips); |
|
|
return m; |
|
|
return m; |
|
|
} |
|
|
} |
|
|
**/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation( value = "新增一条功能表信息",notes="addXmExchange,主键如果为空,后台自动生成") |
|
|
@ApiOperation( value = "新增一条功能表信息",notes="addXmExchange,主键如果为空,后台自动生成") |
|
|
@ApiResponses({ |
|
|
@ApiResponses({ |
|
|
@ApiResponse(code = 200,response=XmExchange.class,message = "{tips:{isOk:true/false,msg:'成功/失败原因',tipscode:'失败时错误码'},data:数据对象}") |
|
|
@ApiResponse(code = 200,response=XmExchange.class,message = "{tips:{isOk:true/false,msg:'成功/失败原因',tipscode:'失败时错误码'},data:数据对象}") |
|
|
}) |
|
|
}) |
|
|
@RequestMapping(value="/add",method=RequestMethod.POST) |
|
|
|
|
|
|
|
|
@RequestMapping(value="/add",method= RequestMethod.POST) |
|
|
public Map<String,Object> addXmExchange(@RequestBody XmExchange xmExchange) { |
|
|
public Map<String,Object> addXmExchange(@RequestBody XmExchange xmExchange) { |
|
|
Map<String,Object> m = new HashMap<>(); |
|
|
Map<String,Object> m = new HashMap<>(); |
|
|
Tips tips=new Tips("成功新增一条数据"); |
|
|
Tips tips=new Tips("成功新增一条数据"); |
|
|
@ -114,9 +122,9 @@ public class XmExchangeController { |
|
|
m.put("tips", tips); |
|
|
m.put("tips", tips); |
|
|
return m; |
|
|
return m; |
|
|
} |
|
|
} |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation( value = "删除一条功能表信息",notes="delXmExchange,仅需要上传主键字段") |
|
|
@ApiOperation( value = "删除一条功能表信息",notes="delXmExchange,仅需要上传主键字段") |
|
|
@ApiResponses({ |
|
|
@ApiResponses({ |
|
|
@ApiResponse(code = 200, message = "{tips:{isOk:true/false,msg:'成功/失败原因',tipscode:'失败时错误码'}}") |
|
|
@ApiResponse(code = 200, message = "{tips:{isOk:true/false,msg:'成功/失败原因',tipscode:'失败时错误码'}}") |
|
|
@ -139,8 +147,6 @@ public class XmExchangeController { |
|
|
return m; |
|
|
return m; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
/** |
|
|
|
|
|
@ApiOperation( value = "根据主键修改一条功能表信息",notes="editXmExchange") |
|
|
@ApiOperation( value = "根据主键修改一条功能表信息",notes="editXmExchange") |
|
|
@ApiResponses({ |
|
|
@ApiResponses({ |
|
|
@ApiResponse(code = 200,response=XmExchange.class, message = "{tips:{isOk:true/false,msg:'成功/失败原因',tipscode:'失败时错误码'},data:数据对象}") |
|
|
@ApiResponse(code = 200,response=XmExchange.class, message = "{tips:{isOk:true/false,msg:'成功/失败原因',tipscode:'失败时错误码'},data:数据对象}") |
|
|
@ -162,7 +168,6 @@ public class XmExchangeController { |
|
|
m.put("tips", tips); |
|
|
m.put("tips", tips); |
|
|
return m; |
|
|
return m; |
|
|
} |
|
|
} |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|