|
@@ -23,6 +23,7 @@ import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
@@ -140,6 +141,7 @@ public class MaterialServiceImpl implements MaterialService {
|
|
|
* 物料启用
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public void enableMaterial(EnableMaterialReq req){
|
|
|
List<Long> ids = req.getIds();
|
|
|
|
|
@@ -163,6 +165,7 @@ public class MaterialServiceImpl implements MaterialService {
|
|
|
* 物料禁用
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public void disableMaterial(DisableMaterialReq req){
|
|
|
List<Long> ids = req.getIds();
|
|
|
|