PC-202403201522\Administrator
2024-05-13 865eeb5d1b4d883ba9a70b64e4f8e3e4d271ce4d
src/main/java/com/nq/service/impl/SitePayServiceImpl.java
@@ -13,11 +13,13 @@
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 +62,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("修改成功");
        }