|
@ -1,21 +1,5 @@ |
|
|
package com.lp.dao.impl; |
|
|
package com.lp.dao.impl; |
|
|
|
|
|
|
|
|
import java.lang.reflect.Field; |
|
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
import java.util.HashSet; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
|
|
import org.apache.ibatis.session.SqlSession; |
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
|
|
|
import com.lp.annotation.Code; |
|
|
import com.lp.annotation.Code; |
|
|
import com.lp.annotation.CodeAnnotationBean; |
|
|
import com.lp.annotation.CodeAnnotationBean; |
|
|
import com.lp.bo.ProDictionaryInfoBO; |
|
|
import com.lp.bo.ProDictionaryInfoBO; |
|
@ -27,6 +11,16 @@ import com.lp.util.LogUtil; |
|
|
import com.lp.util.ObjectUtil; |
|
|
import com.lp.util.ObjectUtil; |
|
|
import com.lp.util.PageBean; |
|
|
import com.lp.util.PageBean; |
|
|
import com.lp.util.ResultMapUtils; |
|
|
import com.lp.util.ResultMapUtils; |
|
|
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
|
|
import org.apache.ibatis.session.SqlSession; |
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
|
|
|
import java.lang.reflect.Field; |
|
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 数据访问基类 |
|
|
* 数据访问基类 |
|
@ -196,7 +190,7 @@ public class BaseDaoImpl extends ResultMapUtils implements BaseDao { |
|
|
code_value = ObjectUtil.dictionaryValue( Double.parseDouble(String.valueOf(valueSdata)), value); |
|
|
code_value = ObjectUtil.dictionaryValue( Double.parseDouble(String.valueOf(valueSdata)), value); |
|
|
annotationedFieldMap.put(f.getField().getName(), code_value); |
|
|
annotationedFieldMap.put(f.getField().getName(), code_value); |
|
|
}catch(NumberFormatException e){ |
|
|
}catch(NumberFormatException e){ |
|
|
|
|
|
LogUtil.errorLog(e); |
|
|
} |
|
|
} |
|
|
annotationedFieldMap.put(f.getField().getName()+"_value", value); |
|
|
annotationedFieldMap.put(f.getField().getName()+"_value", value); |
|
|
}else{ |
|
|
}else{ |
|
|