解决供应商、客户、会员的启用和禁用失败的问题
This commit is contained in:
@@ -99,4 +99,13 @@ public class SupplierService {
|
||||
example.setOrderByClause("id desc");
|
||||
return supplierMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
public int batchSetEnable(Boolean enabled, String supplierIDs) {
|
||||
List<Long> ids = StringUtil.strToLongList(supplierIDs);
|
||||
Supplier supplier = new Supplier();
|
||||
supplier.setEnabled(enabled);
|
||||
SupplierExample example = new SupplierExample();
|
||||
example.createCriteria().andIdIn(ids);
|
||||
return supplierMapper.updateByExampleSelective(supplier, example);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user