| | |
| | | import cn.gistack.sm.sjztmd.entity.AttResStagChar; |
| | | import cn.gistack.sm.sjztmd.mapper.AttResStagCharMapper; |
| | | import cn.gistack.sm.sjztmd.service.IAttResStagCharService; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @DS("zt") |
| | | public class AttResStagCharServiceImpl extends ServiceImpl<AttResStagCharMapper, AttResStagChar> implements IAttResStagCharService { |
| | | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Override |
| | | public AttResStagChar getByResGuid(String resGuid) { |
| | | return baseMapper.getByResGuid(resGuid); |
| | |
| | | @Override |
| | | public Boolean customizeUpdateByGuid(AttResStagChar attResStagChar) { |
| | | attResStagChar.setUpdateTime(DateUtil.now()); |
| | | attResStagChar.setUpdateUserCode(String.valueOf(AuthUtil.getUserId())); |
| | | attResStagChar.setUpdateUserName(AuthUtil.getUserName()); |
| | | attResStagChar.setUpdateUserPhone(userClient.userInfoById(AuthUtil.getUserId()).getData().getPhone()); |
| | | return SqlHelper.retBool(baseMapper.customizeUpdateByGuid(attResStagChar)); |
| | | } |
| | | } |