Merge remote-tracking branch 'origin/dev' into zs
This commit is contained in:
@@ -523,9 +523,8 @@ public class TbProductServiceImpl implements TbProductService {
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@Override
|
||||
public void updateIsHot(Integer id, String shopId) {
|
||||
tbProductRepository.updateNullHot(shopId);
|
||||
tbProductRepository.updateIsHot(id);
|
||||
public void updateIsHot(Integer id,Integer isHot) {
|
||||
tbProductRepository.updateIsHot(id,isHot);
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
|
||||
@@ -203,7 +203,7 @@ public class TbPlussShopStaffServiceImpl implements TbPlussShopStaffService {
|
||||
Set<Long> sysUserIds=new HashSet<>();
|
||||
for (Integer id : ids) {
|
||||
TbPlussShopStaff tbPlussShopStaff = tbPlussShopStaffRepository.findById(id).get();
|
||||
User sysUser = userRepository.findByUsername(tbPlussShopStaff.getAccount());
|
||||
User sysUser = userRepository.findByUsername(tbPlussShopStaff.getShopId()+"@"+tbPlussShopStaff.getAccount());
|
||||
tbPlussShopStaffRepository.deleteById(id);
|
||||
sysUserIds.add(sysUser.getId());
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public interface TbProductService {
|
||||
*/
|
||||
void download(List<TbProductDto> all, HttpServletResponse response) throws IOException;
|
||||
|
||||
void updateIsHot(Integer id, String shopId);
|
||||
void updateIsHot(Integer id,Integer isStock);
|
||||
|
||||
void updateIsStock(Integer proId, String shopId, Integer isStock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user