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