|
|
@@ -109,7 +109,7 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
@Transactional
|
|
|
@Modifying
|
|
|
@Query("update Product p set p.isSale = :switchStatus where p.enUU = :enUU")
|
|
|
- void updateSaleStatusByEnUU(@Param("enUU") Long enUU, @Param("switchStatus") Integer switchStatus);
|
|
|
+ void updateSaleStatusByEnUU(@Param("enUU") Long enUU, @Param("switchStatus") Short switchStatus);
|
|
|
|
|
|
/**
|
|
|
* 更新采购状态(企业)
|
|
|
@@ -118,7 +118,7 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
@Transactional
|
|
|
@Modifying
|
|
|
@Query("update Product p set p.isPurchase = :switchStatus where p.enUU = :enUU")
|
|
|
- void updatePurchaseStatusByEnUU(@Param("enUU") Long enUU, @Param("switchStatus") Integer switchStatus);
|
|
|
+ void updatePurchaseStatusByEnUU(@Param("enUU") Long enUU, @Param("switchStatus") Short switchStatus);
|
|
|
|
|
|
/**
|
|
|
* 更新销售状态(单个)
|
|
|
@@ -127,7 +127,7 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
@Transactional
|
|
|
@Modifying
|
|
|
@Query("update Product p set p.isSale = :switchStatus where p.id = :id")
|
|
|
- void updateSaleStatusById(@Param("id") Long id, @Param("switchStatus") Integer switchStatus);
|
|
|
+ void updateSaleStatusById(@Param("id") Long id, @Param("switchStatus") Short switchStatus);
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -137,7 +137,7 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
@Transactional
|
|
|
@Modifying
|
|
|
@Query("update Product p set p.isPurchase = :switchStatus where p.id = :id")
|
|
|
- void updatePurchaseStatusById(@Param("id") Long id, @Param("switchStatus") Integer switchStatus);
|
|
|
+ void updatePurchaseStatusById(@Param("id") Long id, @Param("switchStatus") Short switchStatus);
|
|
|
|
|
|
/**
|
|
|
* 设置 session 变量
|
|
|
@@ -151,6 +151,13 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
@Procedure(procedureName = "sync$unset_session_variable")
|
|
|
void unsetSessionVariable();
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据企业UU获取该企业物料
|
|
|
+ * @param enUU 企业UU
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ List<Product> findByEnUU(Long enUU);
|
|
|
+
|
|
|
// /**
|
|
|
// * 通过uu查询非标准器件进行存储
|
|
|
// *
|