コード例 #1
0
 @Transactional
 public void attachGoods(DmGoodsPackage goodPackage) {
   Set<DmGoods> goodsets = goodPackage.getDmGoods();
   if (!goodsets.isEmpty()) {
     dmGoodsPackageMapper.attachGoods(goodPackage);
   }
 }
コード例 #2
0
 @Transactional
 public int delete(DmGoodsPackage goodPackage) {
   Integer packageId = goodPackage.getPackageId();
   dmGoodsPackageMapper.unattachGoodsByPackageId(packageId);
   return dmGoodsPackageMapper.deleteByPrimaryKey(packageId);
 }
コード例 #3
0
 public DmGoodsPackage getGoodsPackageById(DmGoodsPackage goodPackage) {
   DmGoodsPackage ret = dmGoodsPackageMapper.selectByPrimaryKey(goodPackage.getPackageId());
   return ret;
 }