Browse Source

OAacount实体类及SQL修改

dongql 7 years ago
parent
commit
fee6b746ab

+ 7 - 0
oa_service/src/main/java/com/bjlt/spider/entity/OaAccount.java

@@ -93,6 +93,13 @@ public class OaAccount  extends Page {
 	 是否进行关联
 	 */
 	private Integer isRelated;
+
+
+	private String buyScore;
+
+	private String canUseScore;
+
+	private String unitPrice;
 	
 		
 

+ 11 - 1
oa_service/src/main/java/com/bjlt/spider/table/dao/impl/OaAccountDaoImpl.java

@@ -24,7 +24,7 @@ public class OaAccountDaoImpl implements OaAccountDao {
     @Override
     public List<OaAccount> listPageOaAccount(OaAccount oaAccount) {
         StringBuffer stringBuffer = new StringBuffer();
-        String select = "select id,regist_user as registUser,order_no as orderNo,from_date as fromDate,price,cname,ticket_no as ticketNo,email,email_pwd as emailPwd,account_id as accountId,account_pwd as accountPwd,pay_account as payAccount,last_update_time as lastUpdateTime,balance,is_active as isActive,is_related as isRelated from oa_account ";
+        String select = "select id,regist_user as registUser,order_no as orderNo,from_date as fromDate,price,cname,ticket_no as ticketNo,email,email_pwd as emailPwd,account_id as accountId,account_pwd as accountPwd,pay_account as payAccount,last_update_time as lastUpdateTime,balance,is_active as isActive,is_related as isRelated,buy_score as buyScore,can_use_score as canUseScore,unit_price as unitPrice from oa_account ";
         stringBuffer.append(select);
         Map<String,Object> map = map(oaAccount);
         String where = " where 1 = 1 " + map.keySet().stream().map(t -> " and " + t + "=?").collect(Collectors.joining(" "));
@@ -92,6 +92,16 @@ public class OaAccountDaoImpl implements OaAccountDao {
         if (oaAccount.getIsRelated() != null && !"".equals(oaAccount.getIsRelated())){
             map.put("is_related",oaAccount.getIsRelated());
         }
+        if (oaAccount.getBuyScore() != null && !"".equals(oaAccount.getBuyScore())){
+            map.put("buy_score",oaAccount.getBuyScore());
+        }
+        if (oaAccount.getCanUseScore() != null && !"".equals(oaAccount.getCanUseScore())){
+            map.put("can_use_score",oaAccount.getCanUseScore());
+        }
+        if (oaAccount.getUnitPrice() != null && !"".equals(oaAccount.getUnitPrice())){
+            map.put("unit_price",oaAccount.getUnitPrice());
+        }
+
         return map;
     }
 }