1.字典解析调整
2.用户对外接口添加
This commit is contained in:
@@ -112,7 +112,7 @@ public class EleEpdPqdController extends BaseController {
|
||||
@ApiImplicitParam(name = "dataType", value = "数据模型", required = true)
|
||||
@ApiIgnore
|
||||
public HttpResult<List<EleEpdPqd>> dictMarkByDataType(@RequestParam("dataType") @Validated String dataType) {
|
||||
String methodDescribe = getMethodDescribe("dictMark");
|
||||
String methodDescribe = getMethodDescribe("dictMarkByDataType");
|
||||
List<EleEpdPqd> list = eleEpdPqdService.dictMarkByDataType(dataType);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
|
||||
}
|
||||
@@ -187,7 +187,7 @@ public class EleEpdPqdController extends BaseController {
|
||||
@ApiImplicitParam(name = "phase", value = "相别", required = true)
|
||||
})
|
||||
public HttpResult<EleEpdPqd> findByParam(@RequestParam("name") @Validated String name, @RequestParam("dataType") @Validated String dataType, @RequestParam("phase") @Validated String phase){
|
||||
String methodDescribe = getMethodDescribe("judgeExist");
|
||||
String methodDescribe = getMethodDescribe("findByParam");
|
||||
LogUtil.njcnDebug(log, "{},根据条件查询字典数据:", methodDescribe);
|
||||
EleEpdPqd eleEpdPqd = eleEpdPqdService.findByParam(name,dataType,phase);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, eleEpdPqd, methodDescribe);
|
||||
|
||||
@@ -70,9 +70,6 @@ public class EleEpdPqdServiceImpl extends ServiceImpl<EleEpdPqdMapper, EleEpdPqd
|
||||
if (CollectionUtil.isNotEmpty(eleEpdPqdParam.getStatMethod())){
|
||||
eleEpdPqd.setStatMethod(String.join(",", eleEpdPqdParam.getStatMethod()));
|
||||
}
|
||||
if (Objects.isNull(eleEpdPqdParam.getResourcesId())){
|
||||
eleEpdPqd.setResourcesId(eleEpdPqdParam.getClassId());
|
||||
}
|
||||
if (Objects.isNull(eleEpdPqdParam.getPhase())){
|
||||
eleEpdPqd.setPhase("M");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user