|
|
@ -6,6 +6,7 @@ import com.qs.serve.common.util.JsonUtil; |
|
|
|
import com.qs.serve.modules.bms.entity.BmsSubject; |
|
|
|
import com.qs.serve.modules.bms.entity.BmsSupplier; |
|
|
|
import com.qs.serve.modules.sys.entity.SysSyncLog; |
|
|
|
import com.qs.serve.modules.tbs.entity.TbsActivity; |
|
|
|
import com.qs.serve.modules.third.entity.ThirtyVerification; |
|
|
|
import com.qs.serve.modules.vtb.entity.VtbVerification; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
@ -28,19 +29,19 @@ public class ThirtyVerificationUtil { |
|
|
|
* @param supplier |
|
|
|
* @param subject |
|
|
|
* @param totalAmount |
|
|
|
* @param activityTitle |
|
|
|
* @param activity |
|
|
|
* @param verification |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Nullable |
|
|
|
public static String buildJson(BmsSupplier supplier, BmsSubject subject, BigDecimal totalAmount, String activityTitle, VtbVerification verification) { |
|
|
|
public static String buildJson(BmsSupplier supplier, BmsSubject subject, BigDecimal totalAmount, TbsActivity activity, VtbVerification verification) { |
|
|
|
LocalDateTime nowTime = LocalDateTime.now(); |
|
|
|
String timeString = nowTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); |
|
|
|
ThirtyVerification tv = new ThirtyVerification(); |
|
|
|
tv.setId(IdUtil.getSnowFlakeId()+""); |
|
|
|
tv.setVerificationCode(verification.getVerificationCode()); |
|
|
|
tv.setActivityTitle(activityTitle); |
|
|
|
//tv.setActivityCode(activityCode);
|
|
|
|
tv.setActivityTitle(activity.getActTitle()); |
|
|
|
tv.setActivityCode(activity.getActivityCode()); |
|
|
|
tv.setCreateDate(timeString); |
|
|
|
tv.setStartDate(timeString); |
|
|
|
tv.setEndDate(timeString); |
|
|
@ -65,12 +66,12 @@ public class ThirtyVerificationUtil { |
|
|
|
* @param supplier |
|
|
|
* @param subject |
|
|
|
* @param totalAmount |
|
|
|
* @param activityTitle |
|
|
|
* @param activity |
|
|
|
* @param verification |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Nullable |
|
|
|
public static String buildJson(BmsSupplier supplier, BmsSubject subject, BigDecimal totalAmount, String activityTitle, |
|
|
|
public static String buildJson(BmsSupplier supplier, BmsSubject subject, BigDecimal totalAmount, TbsActivity activity, |
|
|
|
LocalDateTime startTime,LocalDateTime endTime, VtbVerification verification) { |
|
|
|
LocalDateTime nowTime = LocalDateTime.now(); |
|
|
|
String timeString = nowTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); |
|
|
@ -79,8 +80,8 @@ public class ThirtyVerificationUtil { |
|
|
|
ThirtyVerification tv = new ThirtyVerification(); |
|
|
|
tv.setId(IdUtil.getSnowFlakeId()+""); |
|
|
|
tv.setVerificationCode(verification.getVerificationCode()); |
|
|
|
tv.setActivityTitle(activityTitle); |
|
|
|
//tv.setActivityCode(activityCode);
|
|
|
|
tv.setActivityTitle(activity.getActTitle()); |
|
|
|
tv.setActivityCode(activity.getActivityCode()); |
|
|
|
tv.setCreateDate(timeString); |
|
|
|
tv.setStartDate(startTimeString); |
|
|
|
tv.setEndDate(endTimeString); |
|
|
|