|
|
@@ -1,10 +1,9 @@
|
|
|
package com.lightinit.hsdataportal.impl;
|
|
|
|
|
|
-import com.lightinit.hsdataportal.dictionary.DicRequirmentAuditState;
|
|
|
import com.lightinit.hsdataportal.dictionary.DicPlatformType;
|
|
|
+import com.lightinit.hsdataportal.dictionary.DicRequirmentAuditState;
|
|
|
import com.lightinit.hsdataportal.dictionary.DicRqrmntSourceType;
|
|
|
import com.lightinit.hsdataportal.dictionary.DicRqrmntType;
|
|
|
-import com.lightinit.hsdataportal.dictionary.*;
|
|
|
import com.lightinit.hsdataportal.entity.*;
|
|
|
import com.lightinit.hsdataportal.mapper.RequirementApiMapper;
|
|
|
import com.lightinit.hsdataportal.mapper.RequirementFollowMapper;
|
|
|
@@ -20,6 +19,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import java.util.TimeZone;
|
|
|
|
|
|
@Service
|
|
|
public class APIDemandServiceImpl implements IAPIDemandService {
|
|
|
@@ -112,6 +112,7 @@ public class APIDemandServiceImpl implements IAPIDemandService {
|
|
|
|
|
|
@Override
|
|
|
public ResultState follow(Long id, Long userId, String resourceType) {
|
|
|
+ TimeZone.setDefault(TimeZone.getTimeZone("CTT"));
|
|
|
DynamicDataContextHolder.setCustomerType(DynamicDataContextHolder.DEFAULT);
|
|
|
ResultState<Long> resultState = new ResultState<Long>() ;
|
|
|
|
|
|
@@ -127,6 +128,7 @@ public class APIDemandServiceImpl implements IAPIDemandService {
|
|
|
requirementFollow.setPlatformType(resourceType);
|
|
|
requirementFollow.setFollowerId(userId);
|
|
|
requirementFollow.setRqrmntId(id);
|
|
|
+ requirementFollow.setCreatedAt(new Date());
|
|
|
result = followMapper.insert(requirementFollow) ;
|
|
|
resultState.setData(requirementFollow.getId());
|
|
|
resultState.setMsg("关注成功");
|