licailing 3 anni fa
parent
commit
2f4d3767ef

+ 7 - 0
src/main/java/com/izouma/nineth/domain/Collection.java

@@ -157,4 +157,11 @@ public class Collection extends BaseEntity {
 
     @ApiModelProperty("优惠券支付")
     private boolean couponPayment;
+
+    @ApiModelProperty("分享背景")
+    private String shareBg;
+
+    @ApiModelProperty("注册背景")
+    private String registerBg;
+
 }

+ 3 - 2
src/main/java/com/izouma/nineth/repo/CollectionRepo.java

@@ -29,12 +29,13 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
     @Query(value = "update collection_info c set c.on_shelf = ?2, c.salable = ?3, c.start_time = ?4, " +
             "c.schedule_sale = ?5, c.sort = ?6, c.detail = ?7, c.privileges = ?8, " +
             "c.properties = ?9, c.model3d = ?10, c.max_count = ?11, c.count_id = ?12, c.scan_code = ?13, " +
-            "c.no_sold_out = ?14, c.assignment = ?15, c.coupon_payment = ?16 where c.id = ?1", nativeQuery = true)
+            "c.no_sold_out = ?14, c.assignment = ?15, c.coupon_payment = ?16, c.share_bg = ?17," +
+            "c.register_bg = ?18 where c.id = ?1", nativeQuery = true)
     @CacheEvict(value = {"collection", "recommend"}, allEntries = true)
     void update(@Nonnull Long id, boolean onShelf, boolean salable, LocalDateTime startTime,
                 boolean schedule, int sort, String detail, String privileges,
                 String properties, String model3d, int maxCount, String countId, boolean scanCode,
-                boolean noSoldOut, int assignment, boolean couponPayment);
+                boolean noSoldOut, int assignment, boolean couponPayment, String shareBg, String registerBg);
 
     @Cacheable("collection")
     Optional<Collection> findById(@Nonnull Long id);

+ 1 - 1
src/main/java/com/izouma/nineth/service/CollectionService.java

@@ -142,7 +142,7 @@ public class CollectionService {
                 record.getDetail(), JSON.toJSONString(record.getPrivileges()),
                 JSON.toJSONString(record.getProperties()), JSON.toJSONString(record.getModel3d()),
                 record.getMaxCount(), record.getCountId(), record.isScanCode(), record.isNoSoldOut(),
-                record.getAssignment(), record.isCouponPayment());
+                record.getAssignment(), record.isCouponPayment(), record.getShareBg(), record.getRegisterBg());
 
         record = collectionRepo.findById(record.getId()).orElseThrow(new BusinessException("无记录"));
         onShelfTask(record);