Browse Source

修改按资源ID查询订单

zzy.zhiyuan.foxmail 8 years ago
parent
commit
887c9a6807
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/ekexiu/portal/dao/OperationDao.java

+ 1 - 1
src/main/java/com/ekexiu/portal/dao/OperationDao.java

@ -155,7 +155,7 @@ public abstract class OperationDao {
155 155
	
156 156
	public java.util.List<com.ekexiu.portal.po.Operation> queryRes(java.sql.Connection con,java.lang.String resourceId) throws java.sql.SQLException{
157 157
        int _m_1 = 1;
158
        String sql = "SELECT REPLY_NOTES,OPERATION.CREATE_TIME,OPERATION_ID,OPERATION_STATUS,DEMAND_ID,DETAIL_DEMAND,DELIVER_TIME,OPERATION.RESOURCE_ID,DEAL_PRICE,DEAL_TIME,PAY_METHOD,PROFESSOR.NAME,RESOURCE_NAME FROM OPERATION INNER JOIN PROFESSOR ON DEMAND_ID = PROFESSOR.ID INNER JOIN RESOURCE ON OPERATION.RESOURCE_ID = RESOURCE.RESOURCE_ID WHERE RESOURCE_ID = ?";
158
        String sql = "SELECT REPLY_NOTES,OPERATION.CREATE_TIME,OPERATION_ID,OPERATION_STATUS,DEMAND_ID,DETAIL_DEMAND,DELIVER_TIME,OPERATION.RESOURCE_ID,DEAL_PRICE,DEAL_TIME,PAY_METHOD,PROFESSOR.NAME,RESOURCE_NAME FROM OPERATION INNER JOIN PROFESSOR ON DEMAND_ID = PROFESSOR.ID INNER JOIN RESOURCE ON OPERATION.RESOURCE_ID = RESOURCE.RESOURCE_ID WHERE OPERATION.RESOURCE_ID = ?";
159 159
        java.sql.PreparedStatement ps = con.prepareStatement(sql);
160 160
        try{
161 161
            ps.setString(_m_1++,resourceId);