| | |
| | | import com.iailab.module.model.mdk.vo.MmItemOutputVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | |
| | | private MmItemOutputDao mmItemOutputDao; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveMmItemOutput(MmItemOutputEntity mmItemOutput) { |
| | | mmItemOutput.setId(UUID.randomUUID().toString()); |
| | | mmItemOutputDao.insert(mmItemOutput); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void update(MmItemOutputEntity mmItemOutput) { |
| | | mmItemOutputDao.updateById(mmItemOutput); |
| | | } |