|
|
@ -19,6 +19,7 @@ import com.yxt.common.base.utils.StringUtils; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
|
import com.yxt.goods.utils.OrgPathQuery; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -59,6 +60,12 @@ public class GoodsSkuService extends MybatisBaseService<GoodsSkuMapper, GoodsSku |
|
|
|
PagerVo<GoodsSkuVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
return rb.success().setData(p); |
|
|
|
} |
|
|
|
public ResultBean<List<GoodsSkuVo>> listAllByOrg(OrgPathQuery query) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<GoodsSkuVo> pagging = baseMapper.listAllByOrg(query.getOrgPath()); |
|
|
|
return rb.success().setData(pagging); |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional |
|
|
|
public ResultBean<String> saveOrUpdate(GoodsSkuDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|