|
|
|
@ -4,6 +4,7 @@ import com.hai.common.security.UserCenter; |
|
|
|
|
import com.hai.dao.HighOilCardRecordMapper; |
|
|
|
|
import com.hai.entity.HighOilCardRecord; |
|
|
|
|
import com.hai.entity.HighOilCardRecordExample; |
|
|
|
|
import com.hai.enum_type.OilCardRecordSourceTypeEnum; |
|
|
|
|
import com.hai.model.HighUserModel; |
|
|
|
|
import com.hai.model.UserInfoModel; |
|
|
|
|
import com.hai.service.HighOilCardRecordService; |
|
|
|
@ -30,15 +31,17 @@ public class HighOilCardRecordServiceImpl implements HighOilCardRecordService { |
|
|
|
|
oilCardRecord.setOpUserId(0L); |
|
|
|
|
oilCardRecord.setOpUserName("无"); |
|
|
|
|
|
|
|
|
|
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
|
if (userInfoModel != null) { |
|
|
|
|
oilCardRecord.setOpUserId(userInfoModel.getSecUser().getId()); |
|
|
|
|
oilCardRecord.setOpUserName(userInfoModel.getSecUser().getUserName()); |
|
|
|
|
} |
|
|
|
|
HighUserModel userModel = userCenter.getSessionModel(HighUserModel.class); |
|
|
|
|
if (userModel != null) { |
|
|
|
|
oilCardRecord.setOpUserId(userModel.getHighUser().getId()); |
|
|
|
|
oilCardRecord.setOpUserName(userModel.getHighUser().getName()); |
|
|
|
|
if (!oilCardRecord.getSourceType().equals(OilCardRecordSourceTypeEnum.type5.getType())) { |
|
|
|
|
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
|
if (userInfoModel != null) { |
|
|
|
|
oilCardRecord.setOpUserId(userInfoModel.getSecUser().getId()); |
|
|
|
|
oilCardRecord.setOpUserName(userInfoModel.getSecUser().getUserName()); |
|
|
|
|
} |
|
|
|
|
HighUserModel userModel = userCenter.getSessionModel(HighUserModel.class); |
|
|
|
|
if (userModel != null) { |
|
|
|
|
oilCardRecord.setOpUserId(userModel.getHighUser().getId()); |
|
|
|
|
oilCardRecord.setOpUserName(userModel.getHighUser().getName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
oilCardRecord.setCreateTime(new Date()); |
|
|
|
|