| | |
| | | import java.util.List; |
| | | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | |
| | | @Service("iSitePayService") |
| | | public class SitePayServiceImpl |
| | | implements ISitePayService { |
| | | @Autowired |
| | | @Resource |
| | | SitePayMapper sitePayMapper; |
| | | |
| | | public ServerResponse add(SitePay sitePay) { |
| | |
| | | if (sitePay.getId() == null) { |
| | | return ServerResponse.createByErrorMsg("修改id不能为空"); |
| | | } |
| | | |
| | | int updateCount = this.sitePayMapper.updateByPrimaryKeySelective(sitePay); |
| | | int updateCount = this.sitePayMapper.updateById(sitePay); |
| | | if (updateCount > 0) { |
| | | return ServerResponse.createBySuccessMsg("修改成功"); |
| | | } |