zyy
2025-07-21 f25b39e0d5fcae415a8824fc03d42fe681e96bf8
src/main/java/com/nq/service/impl/SitePayServiceImpl.java
@@ -10,14 +10,15 @@
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) {
@@ -60,8 +61,7 @@
        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("修改成功");
        }