xiangpei
2024-08-16 983b100e79431dea9a471168dae451d2f7399b76
ycl-server/src/main/java/com/ycl/platform/service/impl/YwPeopleServiceImpl.java
@@ -12,6 +12,7 @@
import com.ycl.platform.domain.query.YwPeopleQuery;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.core.metadata.IPage;
@@ -76,6 +77,9 @@
        YwPeople entity = YwPeopleForm.getEntityByForm(form, null);
        entity.setUserId(sysUser.getUserId());
        entity.setAddWay("manual");
        Date now = new Date();
        entity.setCreateTime(now);
        entity.setUpdateTime(now);
        if(baseMapper.insert(entity) > 0) {
            return Result.ok("添加成功");
        }
@@ -114,6 +118,8 @@
        sysUserMapper.updateUser(sysUser);
        BeanUtils.copyProperties(form, entity);
        Date now = new Date();
        entity.setUpdateTime(now);
        if (baseMapper.updateById(entity) > 0) {
            return Result.ok("修改成功");
        }