|
|
@@ -22,8 +22,11 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.ZoneOffset;
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
|
|
@@ -118,8 +121,11 @@ public class CouponSendService extends BaseService<CouponSend> {
|
|
|
//region 新建
|
|
|
this.insertCouponSend(couponSendVO);
|
|
|
//endregion
|
|
|
-
|
|
|
- return ResponseResultUtil.success();
|
|
|
+ // 返回请求数据时系统的当前时间
|
|
|
+ LocalDateTime now = LocalDateTime.now();
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
+ couponSendVO.setNowTime(now.format(formatter));
|
|
|
+ return ResponseResultUtil.success(couponSendVO);
|
|
|
}
|
|
|
//endregion
|
|
|
}
|
|
|
@@ -132,8 +138,11 @@ public class CouponSendService extends BaseService<CouponSend> {
|
|
|
//endregion
|
|
|
}
|
|
|
//endregion
|
|
|
-
|
|
|
- return ResponseResultUtil.success();
|
|
|
+ // 返回请求数据时系统的当前时间
|
|
|
+ LocalDateTime now = LocalDateTime.now();
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
+ couponSendVO.setNowTime(now.format(formatter));
|
|
|
+ return ResponseResultUtil.success(couponSendVO);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -154,6 +163,12 @@ public class CouponSendService extends BaseService<CouponSend> {
|
|
|
couponSendMapper.insert(couponSend);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ /**
|
|
|
+ * @desc : 获取助力明细
|
|
|
+ * @date : 2024/7/25 13:06
|
|
|
+ * @author : 刘尧
|
|
|
+ * */
|
|
|
+ public ResponseResultVO<?> getCouponSendItem(CouponSendVO couponSendVO) {
|
|
|
+ return ResponseResultUtil.success(couponSendMapper.selectCouponSendItem(couponSendVO));
|
|
|
+ }
|
|
|
}
|