package com.engine.htxc.contract.number.entity;

import com.engine.integration.util.StringUtils;
import weaver.general.Util;
import weaver.interfaces.htsc.GlobatTools.DBTools;
import weaver.interfaces.htsc.GlobatTools.TableUtils;

import java.util.Map;

/**
 * @author K1810015
 * @version 1.0.0
 * @ClassName Uf_ContractNoAggr.java
 * @createTime 2022年06月09日 14:43:00
 */
public class Uf_ContractNoAggrUtil extends TableUtils {


    public static Uf_ContractNoAggr getmodeluf_contractnoaggr(String modeid){
        String sql="select id from Uf_ContractNoAggr where 1=1 and mbid=?";
        Map<String,Object> map=DBTools.getsqltomap(sql,modeid);
        if(map==null || map.size()<=0){
            return null;
        }
        String id= Util.null2String(map.get("id"));
        if(StringUtils.isBlank(id)){
            return null;
        }
        try{
        Uf_ContractNoAggr uf_contractNoAggr=(Uf_ContractNoAggr) new Uf_ContractNoAggr().select(id);
        if(uf_contractNoAggr==null){
            return null;
        }
        if(StringUtils.isBlank(uf_contractNoAggr.getId())){
            return null;
        };
            return uf_contractNoAggr;
        }catch (Exception e){

        }
        return null;
    }
}
