| | |
| | | import com.alibaba.fastjson.serializer.SerializerFeature; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.enumpck.BooleanEnum; |
| | | import com.vci.ubcs.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.ubcs.starter.web.toolmodel.DateConverter; |
| | | import com.vci.ubcs.starter.web.wrapper.VciQueryWrapperForDO; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | return 0.0D; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | public static boolean getBoolean(String s) { |
| | | return BooleanEnum.TRUE.getValue().equals(s); |
| | | } |
| | | |
| | | public static String removeComma(String s) { |
| | |
| | | return allField; |
| | | } |
| | | |
| | | public static String getTableName(String btmname) { |
| | | return (VciQueryWrapperForDO.USER_TABLE_COMPATIBILITY ? "pl_code_" : "vcibt_") + btmname.trim().toLowerCase(); |
| | | } |
| | | |
| | | public static Field getTsField(Class c) { |
| | | List<Field> allField = getAllFieldForObj(c); |
| | | if (allField != null && allField.size() > 0) { |
| | |
| | | |
| | | } |
| | | |
| | | public static void setValueForField(String fieldName, Object obj, String value) { |
| | | try { |
| | | Field field = getFieldForObject(fieldName, obj); |
| | | if (field != null) { |
| | | setValueForField(field, obj, value); |
| | | } |
| | | } catch (Exception var4) { |
| | | if (log.isErrorEnabled()) { |
| | | log.error("设置属性的值出错了错误", var4); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |