| | |
| | | import com.ruoyi.common.utils.bean.BeanUtils; |
| | | import com.ruoyi.domain.MarrySelf; |
| | | import com.ruoyi.domain.MarryUser; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.dto.MarryInfoDto; |
| | | import com.ruoyi.domain.dto.MarryUserDto; |
| | | import com.ruoyi.mapper.MarrySelfMapper; |
| | | import com.ruoyi.service.MarrySelfService; |
| | | import com.ruoyi.service.MarryUserService; |
| | | import com.ruoyi.service.ZInfoUserService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | @Resource |
| | | MarryUserService marryUserService; |
| | | |
| | | |
| | | |
| | | // @Resource |
| | | // MarrySelfService marrySelfService; |
| | | |
| | | |
| | | |
| | | @Override |
| | | public AjaxResult getInfo() { |
| | |
| | | MarrySelf myself = getOne(marrySelfLQW); |
| | | |
| | | if(myself == null){ |
| | | MarrySelf marryInfoDto=new MarrySelf(); |
| | | marryInfoDto.setUid(userId); |
| | | save(marryInfoDto); |
| | | throw new RuntimeException("请先编辑信息"); |
| | | } |
| | | |
| | |
| | | updateById(marrySelf); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | return AjaxResult.success(); |
| | | } |
| | | } |