完善业务字典模块接口必要参数
This commit is contained in:
parent
7b74f6b138
commit
9813f25ef6
@ -7,10 +7,7 @@ import com.xhpc.general.domain.XhpcDictionary;
|
||||
import com.xhpc.general.service.IXhpcDictBizService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -58,7 +55,7 @@ public class XhpcDictBizController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getDictionaryItem")
|
||||
public AjaxResult getADictionaryItem(Long id){
|
||||
public AjaxResult getADictionaryItem(@RequestParam("id") Long id){
|
||||
|
||||
return AjaxResult.success(xhpcDictBizService.selectDictionaryItem(id));
|
||||
}
|
||||
@ -73,7 +70,7 @@ public class XhpcDictBizController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/addDetailItem")
|
||||
public AjaxResult addDetailDictionaryItem(Long parentId, String code, String dictKey, String dictValue,Integer sort){
|
||||
public AjaxResult addDetailDictionaryItem(@RequestParam("parentId") Long parentId, String code, String dictKey, String dictValue,Integer sort){
|
||||
|
||||
return xhpcDictBizService.addAChildDictionaryItem(parentId, code, dictKey, dictValue, sort);
|
||||
}
|
||||
@ -85,13 +82,13 @@ public class XhpcDictBizController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/deleteChildDictionaryItem")
|
||||
public AjaxResult deleteChildDictionaryItem(Long id){
|
||||
public AjaxResult deleteChildDictionaryItem(@RequestParam Long id){
|
||||
|
||||
return xhpcDictBizService.deleteChildDictionaryItem(id);
|
||||
}
|
||||
|
||||
@PostMapping("/deleteFather")
|
||||
public AjaxResult deleteParentItem(Long id){
|
||||
public AjaxResult deleteParentItem(@RequestParam Long id){
|
||||
return xhpcDictBizService.deleteParentItem(id);
|
||||
}
|
||||
|
||||
@ -120,7 +117,7 @@ public class XhpcDictBizController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getChildItems")
|
||||
public TableDataInfo getSearchChildResult(Long parentId, String code, String name){
|
||||
public TableDataInfo getSearchChildResult(@RequestParam Long parentId, String code, String name){
|
||||
|
||||
startPage();
|
||||
List<XhpcDictionary> list=xhpcDictBizService.getDetailsItems(parentId, code, name);
|
||||
@ -137,7 +134,7 @@ public class XhpcDictBizController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/updateFatherItem")
|
||||
public AjaxResult updateFatherItem(Long dictBizId,String code,String keyValue,Integer sort){
|
||||
public AjaxResult updateFatherItem(@RequestParam Long dictBizId,String code,String keyValue,Integer sort){
|
||||
|
||||
return xhpcDictBizService.updateMainItem(dictBizId, code, keyValue, sort);
|
||||
}
|
||||
@ -153,7 +150,7 @@ public class XhpcDictBizController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/updateChildItem")
|
||||
public AjaxResult updateChildItem(Long parentId,Long id, String value, String key,Integer sort ){
|
||||
public AjaxResult updateChildItem(@RequestParam Long parentId,@RequestParam Long id, String value, String key,Integer sort ){
|
||||
|
||||
return xhpcDictBizService.updateChildItem(parentId, id, value, key, sort);
|
||||
}
|
||||
@ -165,12 +162,12 @@ public class XhpcDictBizController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/deleteChildItems")
|
||||
public AjaxResult deletChildItems(String ids){
|
||||
public AjaxResult deletChildItems(@RequestParam String ids){
|
||||
|
||||
return xhpcDictBizService.deleteChildItems(ids);
|
||||
}
|
||||
@PostMapping("/deleteParentItems")
|
||||
public AjaxResult deleteParentItems(String ids){
|
||||
public AjaxResult deleteParentItems(@RequestParam String ids){
|
||||
return xhpcDictBizService.deleteParentItems(ids);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user