提交代码

dev-discount
胡锐 2 years ago
parent 403756abc7
commit f31d36a3d7
  1. 8
      hai-service/src/main/java/com/hai/dao/HighOrderRefundMapper.java
  2. 8
      hai-service/src/main/java/com/hai/dao/HighOrderRefundSqlProvider.java
  3. 6
      hai-service/src/main/java/com/hai/entity/HighOrderRefund.java
  4. 20
      hai-service/src/main/java/com/hai/entity/HighOrderRefundExample.java
  5. 2
      hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java
  6. 4
      hai-service/src/main/java/com/hai/order/service/impl/OrderRefundServiceImpl.java

@ -68,7 +68,7 @@ public interface HighOrderRefundMapper extends HighOrderRefundMapperExt {
"#{refundStatus,jdbcType=INTEGER}, #{refundFailReason,jdbcType=VARCHAR}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ",
"#{updateTime,jdbcType=TIMESTAMP}, #{opUserType,jdbcType=INTEGER}, ",
"#{opUserId,jdbcType=INTEGER}, #{opUserName,jdbcType=VARCHAR}, ",
"#{opUserId,jdbcType=BIGINT}, #{opUserName,jdbcType=VARCHAR}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ",
"#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
})
@ -109,7 +109,7 @@ public interface HighOrderRefundMapper extends HighOrderRefundMapperExt {
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="op_user_type", property="opUserType", jdbcType=JdbcType.INTEGER),
@Result(column="op_user_id", property="opUserId", jdbcType=JdbcType.INTEGER),
@Result(column="op_user_id", property="opUserId", jdbcType=JdbcType.BIGINT),
@Result(column="op_user_name", property="opUserName", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@ -160,7 +160,7 @@ public interface HighOrderRefundMapper extends HighOrderRefundMapperExt {
@Result(column="refund_time", property="refundTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="op_user_type", property="opUserType", jdbcType=JdbcType.INTEGER),
@Result(column="op_user_id", property="opUserId", jdbcType=JdbcType.INTEGER),
@Result(column="op_user_id", property="opUserId", jdbcType=JdbcType.BIGINT),
@Result(column="op_user_name", property="opUserName", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@ -209,7 +209,7 @@ public interface HighOrderRefundMapper extends HighOrderRefundMapperExt {
"refund_time = #{refundTime,jdbcType=TIMESTAMP},",
"update_time = #{updateTime,jdbcType=TIMESTAMP},",
"op_user_type = #{opUserType,jdbcType=INTEGER},",
"op_user_id = #{opUserId,jdbcType=INTEGER},",
"op_user_id = #{opUserId,jdbcType=BIGINT},",
"op_user_name = #{opUserName,jdbcType=VARCHAR},",
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",

@ -137,7 +137,7 @@ public class HighOrderRefundSqlProvider {
}
if (record.getOpUserId() != null) {
sql.VALUES("op_user_id", "#{opUserId,jdbcType=INTEGER}");
sql.VALUES("op_user_id", "#{opUserId,jdbcType=BIGINT}");
}
if (record.getOpUserName() != null) {
@ -343,7 +343,7 @@ public class HighOrderRefundSqlProvider {
}
if (record.getOpUserId() != null) {
sql.SET("op_user_id = #{record.opUserId,jdbcType=INTEGER}");
sql.SET("op_user_id = #{record.opUserId,jdbcType=BIGINT}");
}
if (record.getOpUserName() != null) {
@ -410,7 +410,7 @@ public class HighOrderRefundSqlProvider {
sql.SET("refund_time = #{record.refundTime,jdbcType=TIMESTAMP}");
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
sql.SET("op_user_type = #{record.opUserType,jdbcType=INTEGER}");
sql.SET("op_user_id = #{record.opUserId,jdbcType=INTEGER}");
sql.SET("op_user_id = #{record.opUserId,jdbcType=BIGINT}");
sql.SET("op_user_name = #{record.opUserName,jdbcType=VARCHAR}");
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}");
@ -537,7 +537,7 @@ public class HighOrderRefundSqlProvider {
}
if (record.getOpUserId() != null) {
sql.SET("op_user_id = #{opUserId,jdbcType=INTEGER}");
sql.SET("op_user_id = #{opUserId,jdbcType=BIGINT}");
}
if (record.getOpUserName() != null) {

@ -170,7 +170,7 @@ public class HighOrderRefund implements Serializable {
/**
* 操作人id
*/
private Integer opUserId;
private Long opUserId;
/**
* 操作人名称
@ -415,11 +415,11 @@ public class HighOrderRefund implements Serializable {
this.opUserType = opUserType;
}
public Integer getOpUserId() {
public Long getOpUserId() {
return opUserId;
}
public void setOpUserId(Integer opUserId) {
public void setOpUserId(Long opUserId) {
this.opUserId = opUserId;
}

@ -1936,52 +1936,52 @@ public class HighOrderRefundExample {
return (Criteria) this;
}
public Criteria andOpUserIdEqualTo(Integer value) {
public Criteria andOpUserIdEqualTo(Long value) {
addCriterion("op_user_id =", value, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdNotEqualTo(Integer value) {
public Criteria andOpUserIdNotEqualTo(Long value) {
addCriterion("op_user_id <>", value, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdGreaterThan(Integer value) {
public Criteria andOpUserIdGreaterThan(Long value) {
addCriterion("op_user_id >", value, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdGreaterThanOrEqualTo(Integer value) {
public Criteria andOpUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("op_user_id >=", value, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdLessThan(Integer value) {
public Criteria andOpUserIdLessThan(Long value) {
addCriterion("op_user_id <", value, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdLessThanOrEqualTo(Integer value) {
public Criteria andOpUserIdLessThanOrEqualTo(Long value) {
addCriterion("op_user_id <=", value, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdIn(List<Integer> values) {
public Criteria andOpUserIdIn(List<Long> values) {
addCriterion("op_user_id in", values, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdNotIn(List<Integer> values) {
public Criteria andOpUserIdNotIn(List<Long> values) {
addCriterion("op_user_id not in", values, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdBetween(Integer value1, Integer value2) {
public Criteria andOpUserIdBetween(Long value1, Long value2) {
addCriterion("op_user_id between", value1, value2, "opUserId");
return (Criteria) this;
}
public Criteria andOpUserIdNotBetween(Integer value1, Integer value2) {
public Criteria andOpUserIdNotBetween(Long value1, Long value2) {
addCriterion("op_user_id not between", value1, value2, "opUserId");
return (Criteria) this;
}

@ -135,7 +135,7 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
// 处理订单产品业务
orderBusHandle(order);
// 推送支付成功消息
// Todo 需要改成异步推送。推送支付成功消息
bsMsgService.pushUserMsg(order.getId() , "支付成功");
}
return order;

@ -124,8 +124,8 @@ public class OrderRefundServiceImpl implements OrderRefundService {
orderRefund.setCreateTime(new Date());
orderRefund.setUpdateTime(new Date());
orderRefund.setOpUserType(opUserType.getNumber());
orderRefund.setOpUserId(opUserType.getNumber());
orderRefund.setOpUserName(opUserType.getName());
orderRefund.setOpUserId(opUserId);
orderRefund.setOpUserName(opUserName);
orderRefundMapper.insert(orderRefund);
return orderRefund;
}

Loading…
Cancel
Save