|
|
|
@ -42,4 +42,32 @@ public class TableFieldUtil {
|
|
|
|
|
String orderColumn = CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL,to);
|
|
|
|
|
return orderColumn;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
String[] fields=new String[]{"highest_unit","processing_unit","pn_name","pn_remark","num","basic_unit","stock_type","desc_type","batch","receiving_time","hand_measure","delivery_time","target_location","deal_node","responsible_user_id","marking"};
|
|
|
|
|
String[] fieldNames=new String[]{"主键id",
|
|
|
|
|
"最高处理单元",
|
|
|
|
|
"处理单元",
|
|
|
|
|
"产品",
|
|
|
|
|
"产品简短描述",
|
|
|
|
|
"数量",
|
|
|
|
|
"基本计量单位",
|
|
|
|
|
"库存类型",
|
|
|
|
|
"Desc.SType",
|
|
|
|
|
"批次",
|
|
|
|
|
"收货时间",
|
|
|
|
|
"处理措施",
|
|
|
|
|
"出库时间",
|
|
|
|
|
"目标库位",
|
|
|
|
|
"处理时间节点",
|
|
|
|
|
"责任人id",
|
|
|
|
|
"marking描述"};
|
|
|
|
|
for (int i = 0; i < fields.length; i++) {
|
|
|
|
|
String s = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, fields[i]);
|
|
|
|
|
String fieldName = fieldNames[i];
|
|
|
|
|
System.out.println(s+":"+fieldName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|