Browse Source

Merge branch 'master' of http://121.42.53.174:3000/bulomakaka/ekexiu.com.portal.git

luyanan 8 years ago
parent
commit
b52dafa9b3

+ 7 - 6
src/main/java/com/ekexiu/portal/dao/PayHistoryDao.java

@ -68,7 +68,7 @@ public abstract class PayHistoryDao {
68 68
	
69 69
	public List<PayHistory> queryDetail(Connection con,String operationId) throws SQLException{
70 70
        int _m_1 = 1;
71
        String sql = "SELECT PAY_HISTORY_ID,PAY_HISTORY.OPERATION_ID,PAID_MONEY,RETURN_MONEY,REMARK,ISONLINE,PAY_TYPE,PAY_HISTORY.CREATE_TIME,OPERATION.DEAL_PRICE,OPERATION.CREATE_TIME,PAY_HISTORY.PROFESSOR_ID,PROFESSOR.NAME FROM PAY_HISTORY LEFT JOIN OPERATION ON PAY_HISTORY.OPERATION_ID = OPERATION.OPERATION_ID LEFT JOIN PROFESSOR ON PAY_HISTORY.PROFESSOR_ID = PROFESSOR.ID WHERE PAY_HISTORY.OPERATION_ID = ?";
71
        String sql = "SELECT PAY_HISTORY_ID,PAY_HISTORY.OPERATION_ID,PAID_MONEY,RETURN_MONEY,REMARK,ISONLINE,PAY_TYPE,PAY_STATUS,PAY_HISTORY.CREATE_TIME,OPERATION.DEAL_PRICE,OPERATION.CREATE_TIME,PAY_HISTORY.PROFESSOR_ID,PROFESSOR.NAME FROM PAY_HISTORY LEFT JOIN OPERATION ON PAY_HISTORY.OPERATION_ID = OPERATION.OPERATION_ID LEFT JOIN PROFESSOR ON PAY_HISTORY.PROFESSOR_ID = PROFESSOR.ID WHERE PAY_HISTORY.OPERATION_ID = ?";
72 72
        PreparedStatement ps = con.prepareStatement(sql);
73 73
        try{
74 74
            ps.setString(_m_1++,operationId);
@ -89,13 +89,14 @@ public abstract class PayHistoryDao {
89 89
                    _obj.setRemark(_m_2);
90 90
                    _obj.setIsonline(rs.getInt(6));
91 91
                    _obj.setPayType(rs.getInt(7));
92
                    _obj.setCreateTime(rs.getString(8));
93
                    operation.setDealPrice(rs.getBigDecimal(9));
94
                    operation.setCreateTime(rs.getString(10));
92
                    _obj.setPayStatus(rs.getShort(8));
93
                    _obj.setCreateTime(rs.getString(9));
94
                    operation.setDealPrice(rs.getBigDecimal(10));
95
                    operation.setCreateTime(rs.getString(11));
95 96
                    _obj.setOperation(operation);
96 97
                    Professor professor = new Professor();
97
                    professor.setId(rs.getString(11));
98
                    professor.setName(rs.getString(12));
98
                    professor.setId(rs.getString(12));
99
                    professor.setName(rs.getString(13));
99 100
                    _obj.setProfessor(professor);
100 101
                    _result.add(_obj);
101 102
                }

+ 3 - 3
src/main/java/com/ekexiu/portal/po/Operation.java

@ -99,7 +99,7 @@ public class Operation implements CreateTimeSupported {
99 99
		this.demandId = demandId;
100 100
	}
101 101
	
102
	@Column(handlerClass=StringHandler.class,dbType="TEXT",insertable=true,nullable=false,renewable=true,queryable=true)
102
	@Column(handlerClass=StringHandler.class,dbType="TEXT",insertable=true,nullable=true,renewable=true,queryable=true)
103 103
	public String getDetailDemand() {
104 104
		return detailDemand;
105 105
	}
@ -107,7 +107,7 @@ public class Operation implements CreateTimeSupported {
107 107
		this.detailDemand = detailDemand;
108 108
	}
109 109
	
110
	@Column(handlerClass = FixLenStringHandler.class, dbType = "CHAR(8)", insertable = true, nullable = false, queryable = true, renewable = true)
110
	@Column(handlerClass=FixLenStringHandler.class,dbType="CHAR(8)",insertable=true,nullable=true,queryable=true,renewable=true)
111 111
	public String getDeliverTime() {
112 112
		return deliverTime;
113 113
	}
@ -131,7 +131,7 @@ public class Operation implements CreateTimeSupported {
131 131
		this.dealPrice = dealPrice;
132 132
	}
133 133
	
134
	@Column(handlerClass = FixLenStringHandler.class, dbType = "CHAR(14)", insertable = false, nullable = true, queryable = true, renewable = true)
134
	@Column(handlerClass=FixLenStringHandler.class,dbType="CHAR(14)",insertable=false,nullable=true,queryable=true,renewable=true)
135 135
	public String getDealTime() {
136 136
		return dealTime;
137 137
	}

+ 0 - 3
src/main/java/com/ekexiu/portal/service/SysService.java

@ -536,9 +536,6 @@ public class SysService {
536 536
		User user = this.userDao.query(con, userid);
537 537
		if (null == user)
538 538
			return false;
539
		user = this.userDao.queryByEmailOrMobilePhone(con, mail);
540
		if (null != user)
541
			return false;
542 539
543 540
		StateCode<String, String> sc = new StateCode<String, String>();
544 541
		sc.setKey(userid);