Quellcode durchsuchen

支付历史查询返回参数增加支付状态字段。

zzy.zhiyuan.foxmail vor 8 Jahren
Ursprung
Commit
043da5180a
1 geänderte Dateien mit 7 neuen und 6 gelöschten Zeilen
  1. 7 6
      src/main/java/com/ekexiu/portal/dao/PayHistoryDao.java

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

68
	
68
	
69
	public List<PayHistory> queryDetail(Connection con,String operationId) throws SQLException{
69
	public List<PayHistory> queryDetail(Connection con,String operationId) throws SQLException{
70
        int _m_1 = 1;
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
        PreparedStatement ps = con.prepareStatement(sql);
72
        PreparedStatement ps = con.prepareStatement(sql);
73
        try{
73
        try{
74
            ps.setString(_m_1++,operationId);
74
            ps.setString(_m_1++,operationId);
89
                    _obj.setRemark(_m_2);
89
                    _obj.setRemark(_m_2);
90
                    _obj.setIsonline(rs.getInt(6));
90
                    _obj.setIsonline(rs.getInt(6));
91
                    _obj.setPayType(rs.getInt(7));
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
                    _obj.setOperation(operation);
96
                    _obj.setOperation(operation);
96
                    Professor professor = new Professor();
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
                    _obj.setProfessor(professor);
100
                    _obj.setProfessor(professor);
100
                    _result.add(_obj);
101
                    _result.add(_obj);
101
                }
102
                }