You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package com.platform.service ;
import java.util.List ;
import javax.annotation.Resource ;
import org.springframework.stereotype.Service ;
import com.platform.dao.EncodeInfoDao ;
import com.platform.entities.EncodedInfoEntity ;
/**
* 业务逻辑的具体实现类
*
* @author wuming
*
*/
@Service ( "encodeInfoService" )
public class EncodeInfoServiceImpl implements EncodeInfoService {
@Resource ( name = "encodeInfoDao" )
private EncodeInfoDao eiDao ;
public void setEiDao ( EncodeInfoDao eiDao ) {
this . eiDao = eiDao ;
}
/**
* 根据传递的tableName参数获取对应实体信息( 行政区划/系统)
*/
@Override
public List < EncodedInfoEntity > getAllEncodeInfo ( String tableName ) {
return eiDao . getAllEntityInfo ( tableName ) ;
}
/**
* 测试事物
*/
@Override
public int deleteEncodeByCode ( String code , String tableName ) {
// TODO Auto-generated method stub
int cursor = eiDao . deleteEncodeByCode ( code , tableName ) ;
//cursor = cursor / 0;
return cursor ;
}
@Override
public String getEncodeNameByCode ( String code , String tableName ) {
return eiDao . getEncodeNameByCode ( code , tableName ) ;
}
}