|
|
|
@ -14,7 +14,7 @@ public class OutCollectPayDao { |
|
|
|
|
* @return Y|N |
|
|
|
|
*/ |
|
|
|
|
public boolean insert(PayOutCollect order) { |
|
|
|
|
String sql = "insert into oc_pay(updateTime, totalFee, outTradeNo, bankTransNo, authCode, operateUser, patientId, openid, mid, name, idCardNo, collectId, barCode, payState, noticeState) values (now(),?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; |
|
|
|
|
String sql = "insert into oc_pay(updateTime, totalFee, outTradeNo, bankTransNo, authCode, operateUser, patientId, openid, mid, name, idCardNo, collectId, barCode, payStatus, noticeStatus) values (now(),?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; |
|
|
|
|
return DataBase.insert(sql, ps -> { |
|
|
|
|
ps.setBigDecimal(1, order.getTotalFee()); |
|
|
|
|
ps.setString(2, order.getOutTradeNo()); |
|
|
|
@ -30,8 +30,8 @@ public class OutCollectPayDao { |
|
|
|
|
ps.setString(11, order.getCollectId()); |
|
|
|
|
ps.setString(12, order.getBarCode()); |
|
|
|
|
//
|
|
|
|
|
ps.setInt(13, order.getPayState()); |
|
|
|
|
ps.setInt(14, order.getNoticeState()); |
|
|
|
|
ps.setInt(13, order.getPayStatus()); |
|
|
|
|
ps.setInt(14, order.getNoticeStatus()); |
|
|
|
|
}) > 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ public class OutCollectPayDao { |
|
|
|
|
* @return 信息 |
|
|
|
|
*/ |
|
|
|
|
public boolean updateMerPaidByOutTradeNo(String outTradeNo, String bankTransNo) { |
|
|
|
|
String sql = "update oc_pay set payState=?, bankTransNo=? where outTradeNo=? and bankTransNo is null"; |
|
|
|
|
String sql = "update oc_pay set payStatus=?, bankTransNo=? where outTradeNo=? and bankTransNo is null"; |
|
|
|
|
return DataBase.update(sql, ps -> { |
|
|
|
|
ps.setInt(1, 0); |
|
|
|
|
ps.setString(2, bankTransNo); |
|
|
|
@ -68,17 +68,17 @@ public class OutCollectPayDao { |
|
|
|
|
}) > 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean updateNoticeErr(String outTradeNo, Integer noticeState, String noticeResult) { |
|
|
|
|
String sql = "update oc_pay set noticeState=?, noticeResult=? where outTradeNo=? "; |
|
|
|
|
public boolean updateNoticeErr(String outTradeNo, Integer noticeStatus, String noticeResult) { |
|
|
|
|
String sql = "update oc_pay set noticeStatus=?, noticeResult=? where outTradeNo=? "; |
|
|
|
|
return DataBase.update(sql, ps -> { |
|
|
|
|
ps.setInt(1, noticeState); |
|
|
|
|
ps.setInt(1, noticeStatus); |
|
|
|
|
ps.setString(2, noticeResult); |
|
|
|
|
ps.setString(3, outTradeNo); |
|
|
|
|
}) > 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean updateNoticeOk(String outTradeNo) { |
|
|
|
|
String sql = "update oc_pay set noticeState=0 where outTradeNo=? and payState = 0"; |
|
|
|
|
String sql = "update oc_pay set noticeStatus=0 where outTradeNo=? and payStatus = 0"; |
|
|
|
|
return DataBase.update(sql, ps -> { |
|
|
|
|
ps.setString(1, outTradeNo); |
|
|
|
|
}) > 0; |
|
|
|
|