| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.oying.utils.PageUtil; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | |
| | | import com.oying.utils.PageResult; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<UserAddress> queryUserAddress() { |
| | | UserAddressQueryCriteria criteria = new UserAddressQueryCriteria(); |
| | | criteria.setUserId(SecurityUtils.getCurrentUserId()); |
| | | return queryAll(criteria); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void create(UserAddress resources) { |
| | | if (resources.getIsDefault()) { |