Browse Source

藏品更新持久层sql补充

ouyang 3 năm trước cách đây
mục cha
commit
9c32f6ebed

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

@@ -31,7 +31,8 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
             "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, c.share_bg = ?17," +
             "c.register_bg = ?18, c.vip_quota = ?19, c.time_delay = ?20, c.sale_time = ?21, c.hold_days = ?22, " +
-            "c.open_quota = ?23, c.showroom_bg = ?24, c.max_collection = ?25, c.total_quota = ?26 " +
+            "c.open_quota = ?23, c.showroom_bg = ?24, c.max_collection = ?25, c.total_quota = ?26," +
+            "c.collection_category = ?27 , c.collection_works = ?28 , c.issuer = ?29 , c.purchase_instructions = ?30 " +
             "where c.id = ?1", nativeQuery = true)
     @CacheEvict(value = {"collection", "recommend"}, allEntries = true)
     void update(@Nonnull Long id, boolean onShelf, boolean salable, LocalDateTime startTime,
@@ -39,7 +40,8 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
                 String properties, String model3d, int maxCount, String countId, boolean scanCode,
                 boolean noSoldOut, int assignment, boolean couponPayment, String shareBg, String registerBg,
                 Integer vipQuota, Boolean timeDelay, LocalDateTime saleTime, Integer holdDays, Boolean openQuota,
-                String showroomBg, Integer maxCollection, Integer totalQuota);
+                String showroomBg, Integer maxCollection, Integer totalQuota ,String collectionCategory,
+                String collectionWorks, String issuer, String purchaseInstructions);
 
     @Cacheable("collection")
     Optional<Collection> findById(@Nonnull Long id);

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

@@ -157,7 +157,8 @@ public class CollectionService {
                 record.getMaxCount(), record.getCountId(), record.isScanCode(), record.isNoSoldOut(),
                 record.getAssignment(), record.isCouponPayment(), record.getShareBg(), record.getRegisterBg(),
                 record.getVipQuota(), record.getTimeDelay(), record.getSaleTime(), record.getHoldDays(),
-                record.getOpenQuota(), record.getShowroomBg(), record.getMaxCollection(), record.getTotalQuota());
+                record.getOpenQuota(), record.getShowroomBg(), record.getMaxCollection(), record.getTotalQuota(),record.getCollectionCategory(),
+                record.getCollectionWorks(),record.getIssuer(),record.getPurchaseInstructions());
 
         record = collectionRepo.findById(record.getId()).orElseThrow(new BusinessException("无记录"));
         onShelfTask(record);