|
@ -1,5 +1,6 @@
|
|
|
package com.yihu.jw.base.endpoint.dict;
|
|
|
|
|
|
import com.yihu.jw.base.dao.dict.BusinessSysDictDao;
|
|
|
import com.yihu.jw.base.service.dict.BusinessSysDictService;
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
|
import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
@ -27,6 +28,8 @@ public class BusinessSysDictEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@Autowired
|
|
|
private BusinessSysDictService businessSysDictService;
|
|
|
@Autowired
|
|
|
private BusinessSysDictDao businessSysDictDao;
|
|
|
|
|
|
@ApiOperation("查询字典")
|
|
|
@GetMapping(value= "findDict")
|
|
@ -96,4 +99,11 @@ public class BusinessSysDictEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
return businessSysDictService.deleteByModelName(preDictName);
|
|
|
}
|
|
|
|
|
|
@ApiOperation("查单条")
|
|
|
@GetMapping(value= "findOneDict")
|
|
|
public Envelop findOneDict(@ApiParam(name = "id", value = "id", required = true)
|
|
|
@RequestParam(value = "id", required = true)String id) throws Exception{
|
|
|
return success(businessSysDictDao.findOne(id));
|
|
|
}
|
|
|
}
|