Commit 7bd23a7a by zhiwj

修改bug

parent c2b4d6c6
......@@ -60,7 +60,7 @@ public interface TabStoreMapper {
int updateStoreGroupBystoreInfoIds(@Param("enterpriseId") Integer enterpriseId,
@Param("value") Integer value,
@Param("storeIdList") List<Integer> storeIdList);
@Param("storeInfoIdList") List<Integer> storeInfoIdList);
List<TabStore> getStoreNoStatus(@Param("enterpriseId") Integer enterpriseId, @Param("storeInfoId") Integer storeInfoId);
......
......@@ -78,7 +78,7 @@ public interface StoreService {
int bulkUpdateStoreBrands(String storeIds, Integer enterpriseId, String value);
int bulkUpdateStoreGroup(String storeIds, Integer enterpriseId, Integer value);
int bulkUpdateStoreGroup(String storeInfoIds, Integer enterpriseId, Integer value);
StoreDTO getByStoreNameAndStoreCode(Integer enterpriseId, String storeName, String storeCode);
......
......@@ -348,13 +348,13 @@ public class StoreServiceImpl implements StoreService {
}
@Override
public int bulkUpdateStoreGroup(String storeIds, Integer enterpriseId, Integer value) {
public int bulkUpdateStoreGroup(String storeInfoIds, Integer enterpriseId, Integer value) {
try {
List<Integer> list = new ArrayList<>();
if ("all".equals(storeIds)) {
if ("all".equals(storeInfoIds)) {
return this.tabStoreMapper.updateAllStoreGroup(enterpriseId, value);
} else {
String[] storeIdArr = storeIds.split(",");
String[] storeIdArr = storeInfoIds.split(",");
for (String s : storeIdArr) {
list.add(Integer.valueOf(s));
}
......
......@@ -20,15 +20,15 @@ public class StoreGroupStrategyImpl implements BulkUpdateStoreStrtegy {
private StoreGroupService storeGroupService;
@Override
public int bulkUpdateStore(String storeIds, Integer enterpriseId, String value, StoreService storeService, Integer operatorId, String operatorName) {
int i = storeService.bulkUpdateStoreGroup(storeIds, enterpriseId, Integer.valueOf(value));
public int bulkUpdateStore(String storeInfoIds, Integer enterpriseId, String value, StoreService storeService, Integer operatorId, String operatorName) {
int i = storeService.bulkUpdateStoreGroup(storeInfoIds, enterpriseId, Integer.valueOf(value));
if (i > 0) {
List<Integer> storeIdList;
if ("all".equals(storeIds)) {
if ("all".equals(storeInfoIds)) {
storeIdList = storeService.listAllStoreId(enterpriseId);
} else {
storeIdList = new ArrayList<>();
String[] storeIdArr = storeIds.split(",");
String[] storeIdArr = storeInfoIds.split(",");
for (String s : storeIdArr) {
storeIdList.add(Integer.valueOf(s));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment