|
@@ -797,15 +797,16 @@ public class ProductServiceImpl implements ProductService {
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public ResultMap deletePersonalProductByBatch(String type) {
|
|
public ResultMap deletePersonalProductByBatch(String type) {
|
|
|
- Integer standard;
|
|
|
|
|
Integer success = 0;
|
|
Integer success = 0;
|
|
|
Long uu = SystemSession.getUser().getEnterprise().getUu();
|
|
Long uu = SystemSession.getUser().getEnterprise().getUu();
|
|
|
- if (ProductConstant.STANDARD.equals(type)) {
|
|
|
|
|
- standard = IntegerConstant.YES_SHORT;
|
|
|
|
|
|
|
+ List<Long> prids = null;
|
|
|
|
|
+ if (ProductConstant.ALL.equals(type)) {
|
|
|
|
|
+ prids = productDao.findPridsByEnuu(uu);
|
|
|
} else {
|
|
} else {
|
|
|
- standard = IntegerConstant.NO_SHORT;
|
|
|
|
|
|
|
+ Integer standard = ProductConstant.STANDARD.equals(type) ? IntegerConstant.YES_SHORT : IntegerConstant.NO_SHORT;
|
|
|
|
|
+ prids = productDao.findPridsByEnuuAndStardand(uu, standard);
|
|
|
}
|
|
}
|
|
|
- List<Long> prids = productDao.findPridsByEnuuAndStardand(uu, standard);
|
|
|
|
|
|
|
+
|
|
|
List<Long> personPrIds = null;
|
|
List<Long> personPrIds = null;
|
|
|
if (CollectionUtils.isNotEmpty(prids)) {
|
|
if (CollectionUtils.isNotEmpty(prids)) {
|
|
|
personPrIds = productPersonDao.findIdsInProductPerson(prids, SystemSession.getUser().getUserUU());
|
|
personPrIds = productPersonDao.findIdsInProductPerson(prids, SystemSession.getUser().getUserUU());
|