package com.engine.htsc.lhhtsq.Dao;

import weaver.general.Util;
import weaver.interfaces.htsc.GlobatTools.JAVATools;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xf
 * @version 1.0.0
 * @ClassName LhhtsqOldToDataDao.java
 * @createTime 2021年12月14日 14:41:00
 */
public class LhhtsqOldToDataDao {

    public static String getpkey(String tablename,String lcbh){
        String sql="select id from "+tablename+" where 1=1 ";
        Map<String,String> map=new HashMap<>();
        map.put("lcbh",lcbh);
        Map<String,Object> returnmap= JAVATools.GetTableToMap(sql,map);
        if(returnmap==null && returnmap.size()<=0){
            return "";
        }
        return Util.null2String(returnmap.get("id"));
    }

}
