|
|
@@ -454,14 +454,14 @@ public class ProductServiceImpl implements ProductService {
|
|
|
public Integer setAllProductsByProductIds(String ids, Integer isAll, Integer isStardand) {
|
|
|
List<Long> prIds;
|
|
|
try {
|
|
|
- prIds = JSON.parseArray(ids,Long.class);
|
|
|
+ prIds = JSON.parseArray(ids, Long.class);
|
|
|
} catch (RuntimeException e) {
|
|
|
prIds = new ArrayList<>();
|
|
|
}
|
|
|
|
|
|
//查找物料信息
|
|
|
User user = SystemSession.getUser();
|
|
|
- if (isAll != null && isAll.equals(IntegerConstant.YES_SHORT)) {
|
|
|
+ if (IntegerConstant.YES_SHORT.equals(isAll)) {
|
|
|
prIds = productDao.findPridsByEnuuAndStardand(user.getEnterprise().getUu(), isStardand);
|
|
|
}
|
|
|
|