Ver Fonte

【优软商城】 搜索索引表增加字段

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@6344 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq há 9 anos atrás
pai
commit
8c8d7f138d

+ 56 - 56
src/main/java/com/uas/platform/b2b/model/PurchaseApCheck.java

@@ -18,9 +18,9 @@ import javax.persistence.Table;
 
 /**
  * 买家应付(卖家应收)对账单
- * */
+ */
 @Entity
-@Table(name="purc$apcheck")
+@Table(name = "purc$apcheck")
 public class PurchaseApCheck implements Serializable {
 
 	/**
@@ -30,152 +30,153 @@ public class PurchaseApCheck implements Serializable {
 
 	/**
 	 * ID
-	 */	
+	 */
 	@Id
 	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "purc$apcheck_gen")
 	@SequenceGenerator(name = "purc$apcheck_gen", sequenceName = "purc$apcheck_seq", allocationSize = 1)
-	@Column(name = "pa_id")	
+	@Column(name = "pa_id")
 	private Long id;
-	
+
 	/**
 	 * 对账起始日期
-	 */	
+	 */
 	@Column(name = "pa_begindate")
 	private Date beginDate;
 
 	/**
 	 * 对账截止日期
-	 */		
+	 */
 	@Column(name = "pa_enddate")
 	private Date endDate;
-	
+
 	/**
 	 * 录单日期
-	 */	
+	 */
 	@Column(name = "pa_recorddate")
 	private Date recordDate;
-	
+
 	/**
 	 * 录单人
-	 */	
+	 */
 	@Column(name = "pa_recorder")
 	private String recorder;
-	
+
 	/**
 	 * 应收日期
-	 */	
+	 */
 	@Column(name = "pa_apdate")
-	private Date  apDate;
-	
+	private Date apDate;
+
 	/**
 	 * 对账状态
-	 */	
+	 */
 	@Column(name = "pa_checkstatus")
 	private String checkStatus;
-	
+
 	/**
 	 * 备注
-	 */	
+	 */
 	@Column(name = "pa_remark")
 	private String remark;
-	
+
 	/**
 	 * 提交日期
-	 */	
+	 */
 	@Column(name = "pa_commitdate")
 	private Date commitDate;
-	
+
 	/**
 	 * 作废日期
-	 */	
+	 */
 	@Column(name = "pa_resdate")
 	private Date resDate;
-	
+
 	/**
 	 * 作废人
-	 */	
+	 */
 	@Column(name = "pa_resman")
 	private String resMan;
-	
+
 	/**
 	 * 上传状态
-	 */	
+	 */
 	@Column(name = "pa_status")
 	private Short status;
-	
+
 	/**
 	 * 对账总额
-	 */	
+	 */
 	@Column(name = "pa_checkamount")
 	private Double checkAmount;
-	
+
 	/**
 	 * 币别
-	 */	
+	 */
 	@Column(name = "pa_currency")
 	private String currency;
-	
+
 	/**
-	 *汇率
-	 */	
+	 * 汇率
+	 */
 	@Column(name = "pa_taxrate")
 	private Double taxrate;
-	
+
 	/**
-	 *汇率
-	 */	
+	 * 汇率
+	 */
 	@Column(name = "pa_rate")
 	private Double rate;
-	
+
 	/**
-	 *收款方式
-	 */	
+	 * 收款方式
+	 */
 	@Column(name = "pa_payments")
 	private String payments;
-	
+
 	/**
 	 * 客户UU
-	 */	
+	 */
 	@Column(name = "pa_custuu")
 	private Long custUu;
-	
+
 	/**
 	 * 客户名称
-	 */	
+	 */
 	@Column(name = "pa_custname")
 	private String custName;
-	
+
 	/**
 	 * 本企业UU
-	 */	
+	 */
 	@Column(name = "pa_enuu")
 	private Long enUu;
-	
+
 	/**
-	 *单据编号
-	 */	
+	 * 单据编号
+	 */
 	@Column(name = "pa_code")
 	private String code;
-	
+
 	/**
 	 * 客户回复原因
-	 */	
+	 */
 	@Column(name = "pa_custreply")
 	private String custreply;
-	
+
 	/**
 	 * 打印次数
 	 */
 	@Column(name = "pa_print")
 	private Short print;
-	
+
 	/**
 	 * 对账单明细行
 	 */
-	@OneToMany(mappedBy = "apCheck", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }, fetch = FetchType.EAGER)
+	@OneToMany(mappedBy = "apCheck", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE,
+			CascadeType.MERGE }, fetch = FetchType.EAGER)
 	@OrderBy("number")
 	private Set<PurchaseApCheckItem> items;
-	
+
 	public String getCustreply() {
 		return custreply;
 	}
@@ -367,6 +368,5 @@ public class PurchaseApCheck implements Serializable {
 	public void setPrint(Short print) {
 		this.print = print;
 	}
-	
-	
+
 }

+ 3 - 3
src/main/java/com/uas/platform/b2b/model/PurchaseApCheckIndex.java

@@ -21,7 +21,8 @@ import org.springframework.util.CollectionUtils;
  * @author yingp
  *
  */
-@Table(name = "purc$apcheck$index", indexes = { @Index(name = "purc$apcheck$index_keyword", columnList = "index_enuu,index_word") })
+@Table(name = "purc$apcheck$index", indexes = {
+		@Index(name = "purc$apcheck$index_keyword", columnList = "index_enuu,index_word") })
 @Entity
 public class PurchaseApCheckIndex {
 
@@ -90,8 +91,7 @@ public class PurchaseApCheckIndex {
 		this.keyword = keyword;
 	}
 
-	public static List<PurchaseApCheckIndex> format(long enUu, long key,
-			Set<String> keywords) {
+	public static List<PurchaseApCheckIndex> format(long enUu, long key, Set<String> keywords) {
 		List<PurchaseApCheckIndex> indexes = new ArrayList<PurchaseApCheckIndex>();
 		if (!CollectionUtils.isEmpty(keywords)) {
 			for (String keyword : keywords) {

+ 5 - 5
src/main/java/com/uas/platform/b2b/model/PurchaseApCheckItem.java

@@ -173,19 +173,19 @@ public class PurchaseApCheckItem implements Serializable {
 	 */
 	@Column(name = "pai_receivename")
 	private String receiveName;
-	
+
 	/**
 	 * 送货单号
-	 */	
+	 */
 	@Column(name = "pai_sendcode")
 	private String sendcode;
-	
+
 	/**
 	 * 仓库
 	 */
 	@Column(name = "pai_whname")
 	private String whname;
-	
+
 	/**
 	 * 应收对账单主记录
 	 */
@@ -386,7 +386,7 @@ public class PurchaseApCheckItem implements Serializable {
 	public void setProdSpec(String prodSpec) {
 		this.prodSpec = prodSpec;
 	}
-	
+
 	public String getSendcode() {
 		return sendcode;
 	}