Commit e4671d98 by zhiwj

修改bug

parent 191421a6
......@@ -17,5 +17,5 @@ public interface DictApiService {
* @return com.gic.store.entity.TabGicDict
* @throws
*/
ServiceResponse<GicDictDTO> getDictByCode(String dictType, String dictValue);
ServiceResponse<GicDictDTO> getDictByCode(String dictType, String dictCode);
}
......@@ -52,5 +52,5 @@ public interface DictMapper {
*/
int updateByPrimaryKey(TabGicDict record);
TabGicDict getDictByCode(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
TabGicDict getDictByCode(@Param("dictType") String dictType, @Param("dictCode") String dictCode);
}
\ No newline at end of file
......@@ -19,7 +19,7 @@ public class DictServiceImpl implements DictService {
@Override
public TabGicDict getDictByCode(String dictType, String dictValue) {
return dictMapper.getDictByCode(dictType, dictValue);
public TabGicDict getDictByCode(String dictType, String dictCode) {
return dictMapper.getDictByCode(dictType, dictCode);
}
}
......@@ -22,8 +22,8 @@ public class DictApiServiceImpl implements DictApiService {
private DictService dictService;
@Override
public ServiceResponse<GicDictDTO> getDictByCode(String dictType, String dictValue) {
TabGicDict dict = dictService.getDictByCode(dictType, dictValue);
public ServiceResponse<GicDictDTO> getDictByCode(String dictType, String dictCode) {
TabGicDict dict = dictService.getDictByCode(dictType, dictCode);
GicDictDTO gicDictDTO = EntityUtil.changeEntityByJSON(GicDictDTO.class, dict);
return EnterpriseServiceResponse.success(gicDictDTO);
}
......
......@@ -130,6 +130,6 @@
<include refid="Base_Column_List" />
from tab_gic_dict
where
dict_type = #{dictType} and dict_value = #{dictValue}
dict_type = #{dictType} and dict_code = #{dictCode}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment