Browse Source

修改时间格式

master
WangYang 1 month ago
committed by donghanyang
parent
commit
bdc5842874
  1. 1
      .idea/vcs.xml
  2. 5
      src/main/java/com/link/domain/dto/AnchorUserTypeStatDTO.java
  3. 5
      src/main/java/com/link/domain/dto/CRMCountDTO.java
  4. 3
      src/main/java/com/link/mapperwechart/AnchorUserTypeStatMapper.java
  5. 3
      src/main/java/com/link/mapperwechart/CRMCountMapper.java
  6. 3
      src/main/java/com/link/service/AnchorUserTypeStatService.java
  7. 3
      src/main/java/com/link/service/CRMCountService.java
  8. 3
      src/main/java/com/link/serviceImpl/AnchorUserTypeStatServiceImpl.java
  9. 3
      src/main/java/com/link/serviceImpl/CRMCountServiceImpl.java

1
.idea/vcs.xml

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

5
src/main/java/com/link/domain/dto/AnchorUserTypeStatDTO.java

@ -5,6 +5,7 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
@ -14,6 +15,6 @@ import java.util.List;
public class AnchorUserTypeStatDTO {
private List<String> jwCodes;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime startTime;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
private LocalDate startTime;
}

5
src/main/java/com/link/domain/dto/CRMCountDTO.java

@ -5,12 +5,13 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CRMCountDTO {
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime startTime;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
private LocalDate startTime;
}

3
src/main/java/com/link/mapperwechart/AnchorUserTypeStatMapper.java

@ -5,11 +5,12 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Qualifier;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
@Mapper
@Qualifier("wechartSqlSessionTemplate")
public interface AnchorUserTypeStatMapper {
List<AnchorUserTypeStatVO> getAnchorUserTypeStat(@Param("jwCodes") List<String> jwCodes, @Param("startTime") LocalDateTime startTime);
List<AnchorUserTypeStatVO> getAnchorUserTypeStat(@Param("jwCodes") List<String> jwCodes, @Param("startTime") LocalDate startTime);
}

3
src/main/java/com/link/mapperwechart/CRMCountMapper.java

@ -5,10 +5,11 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Qualifier;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Mapper
@Qualifier("wechartSqlSessionTemplate")
public interface CRMCountMapper {
CRMCountVO getCRMCount(@Param("startTime") LocalDateTime startTime);
CRMCountVO getCRMCount(@Param("startTime") LocalDate startTime);
}

3
src/main/java/com/link/service/AnchorUserTypeStatService.java

@ -2,10 +2,11 @@ package com.link.service;
import com.link.domain.vo.AnchorUserTypeStatVO;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
public interface AnchorUserTypeStatService {
List<AnchorUserTypeStatVO> getAnchorUserTypeStat(List<String> jwCodes, LocalDateTime startTime);
List<AnchorUserTypeStatVO> getAnchorUserTypeStat(List<String> jwCodes, LocalDate startTime);
}

3
src/main/java/com/link/service/CRMCountService.java

@ -2,11 +2,12 @@ package com.link.service;
import com.link.domain.vo.CRMCountVO;
import java.time.LocalDate;
import java.time.LocalDateTime;
public interface CRMCountService {
CRMCountVO getCRMCount(LocalDateTime startTime);
CRMCountVO getCRMCount(LocalDate startTime);
}

3
src/main/java/com/link/serviceImpl/AnchorUserTypeStatServiceImpl.java

@ -6,6 +6,7 @@ import com.link.service.AnchorUserTypeStatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
@ -16,7 +17,7 @@ public class AnchorUserTypeStatServiceImpl implements AnchorUserTypeStatService
private AnchorUserTypeStatMapper anchorUserTypeStatMapper;
@Override
public List<AnchorUserTypeStatVO> getAnchorUserTypeStat(List<String> jwCodes, LocalDateTime startTime) {
public List<AnchorUserTypeStatVO> getAnchorUserTypeStat(List<String> jwCodes, LocalDate startTime) {
return anchorUserTypeStatMapper.getAnchorUserTypeStat(jwCodes, startTime);
}
}

3
src/main/java/com/link/serviceImpl/CRMCountServiceImpl.java

@ -8,6 +8,7 @@ import com.link.service.CRMCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Service
@ -17,7 +18,7 @@ public class CRMCountServiceImpl implements CRMCountService {
private CRMCountMapper crmCountMapper;
@Override
public CRMCountVO getCRMCount(LocalDateTime startTime) {
public CRMCountVO getCRMCount(LocalDate startTime) {
return crmCountMapper.getCRMCount(startTime);
}
}
Loading…
Cancel
Save