查询数据字典方法
This commit is contained in:
parent
257e7c2235
commit
adb4a566d4
|
@ -13,4 +13,13 @@ import com.hzya.frame.sys.dictionaryshopNew.entity.SysDictionaryshopNew;
|
||||||
public interface ISysDictionaryshopNewService {
|
public interface ISysDictionaryshopNewService {
|
||||||
|
|
||||||
JsonResultEntity test(SysDictionaryshopNew object);
|
JsonResultEntity test(SysDictionaryshopNew object);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询数据字典
|
||||||
|
* @param tabName 表名
|
||||||
|
* @param columnName 字段名
|
||||||
|
* @param columnValue 字典值
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
SysDictionaryshopNew getDictionaryshopByValue(String tabName, String columnName, String columnValue);
|
||||||
}
|
}
|
|
@ -33,4 +33,20 @@ public class SysDictionaryshopNewServiceImpl extends ServiceUtil implements ISy
|
||||||
return BaseResult.getSuccessMessageEntity("获取应用成功");
|
return BaseResult.getSuccessMessageEntity("获取应用成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询数据字典
|
||||||
|
*
|
||||||
|
* @param tabName 表名
|
||||||
|
* @param columnName 字段名
|
||||||
|
* @param columnValue 字典值
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SysDictionaryshopNew getDictionaryshopByValue(String tabName, String columnName, String columnValue) {
|
||||||
|
SysDictionaryshopNew sysDictionaryshopNew = new SysDictionaryshopNew();
|
||||||
|
sysDictionaryshopNew.setTabName(tabName);
|
||||||
|
sysDictionaryshopNew.setColumnName(columnName);
|
||||||
|
sysDictionaryshopNew.setColumnValue(columnValue);
|
||||||
|
return sysdictionaryshopnewMapper.entity_get_by_value(sysDictionaryshopNew);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue