Browse Source

删除配方不存在的库存

guowei 2 years ago
parent
commit
f09e212ead

BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/mapper/formula/TFormulaAuthMapper.java


BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/service/formula/center/TFormulaInterface.java


+ 4 - 0
cbkj_web_api/src/main/resources/mappers/formula/TFormulaAuthMapper.xml

@@ -31,6 +31,10 @@
         </foreach>
         </foreach>
     </delete>
     </delete>
 
 
+    <delete id="deleteFormulaIdNotExists" >
+        delete from t_formula_auth where FORMULA_ID = ''
+    </delete>
+
     <delete id="deleteByCenterFormulaStocks" parameterType="List">
     <delete id="deleteByCenterFormulaStocks" parameterType="List">
         delete from t_formula_auth where FORMULA_ID in (
         delete from t_formula_auth where FORMULA_ID in (
             select FORMULA_ID from t_formula where STORE_PRICE_ID in
             select FORMULA_ID from t_formula where STORE_PRICE_ID in