Commit 60d82bad by HlQ

[chg] 使用 LocalDateTime 替换 Date

1 parent 6b3ca06f
Showing 181 changed files with 883 additions and 517 deletions
# 项目运维管理平台 # 项目运维管理平台
使用 SpringBoot3 + Java 21 开发 使用 SpringBoot3 + Java 21 开发
## 销帮帮相关接口 ## 销帮帮相关接口
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
</resource> </resource>
</resources> </resources>
``` ```
## 更新合同金额 ## 更新合同金额
需要在 ``Contract.class`` 把 金额上面的四个注解 ``@ReverseAutoMapping(targetClass = ContractDTO.class, ignore = true)`` 需要在 ``Contract.class`` 把 金额上面的四个注解 ``@ReverseAutoMapping(targetClass = ContractDTO.class, ignore = true)``
注释掉,然后调用更新接口。 注释掉,然后调用更新接口。
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ import org.apache.ibatis.reflection.MetaObject; ...@@ -8,7 +8,7 @@ import org.apache.ibatis.reflection.MetaObject;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -19,15 +19,15 @@ public class MyBatisPlusConfig implements MetaObjectHandler { ...@@ -19,15 +19,15 @@ public class MyBatisPlusConfig implements MetaObjectHandler {
@Override @Override
public void insertFill(MetaObject metaObject) { public void insertFill(MetaObject metaObject) {
this.fillHasGetter(metaObject, "createTime", new Date()); this.fillHasGetter(metaObject, "createTime", LocalDateTime.now());
this.fillHasGetter(metaObject, "modifyTime", new Date()); this.fillHasGetter(metaObject, "modifyTime", LocalDateTime.now());
this.fillHasGetter(metaObject, "updateTime", new Date()); this.fillHasGetter(metaObject, "updateTime", LocalDateTime.now());
} }
@Override @Override
public void updateFill(MetaObject metaObject) { public void updateFill(MetaObject metaObject) {
this.fillHasGetter(metaObject, "modifyTime", new Date()); this.fillHasGetter(metaObject, "modifyTime", LocalDateTime.now());
this.fillHasGetter(metaObject, "updateTime", new Date()); this.fillHasGetter(metaObject, "updateTime", LocalDateTime.now());
} }
protected void fillHasGetter(MetaObject metaObject, String fieldName, Object fieldVal) { protected void fillHasGetter(MetaObject metaObject, String fieldName, Object fieldVal) {
......
package vion.config; package vion.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.redisson.Redisson; import org.redisson.Redisson;
import org.redisson.api.RedissonClient; import org.redisson.api.RedissonClient;
import org.redisson.codec.JsonJacksonCodec; import org.redisson.codec.JsonJacksonCodec;
...@@ -28,7 +30,9 @@ public class RedisConfig { ...@@ -28,7 +30,9 @@ public class RedisConfig {
@Bean(destroyMethod = "shutdown") @Bean(destroyMethod = "shutdown")
public RedissonClient redissonClient() { public RedissonClient redissonClient() {
Config config = new Config(); Config config = new Config();
config.setCodec(JsonJacksonCodec.INSTANCE); ObjectMapper objectMapper = new ObjectMapper();
objectMapper.registerModule(new JavaTimeModule());
config.setCodec(new JsonJacksonCodec(objectMapper));
SingleServerConfig singleServerConfig = config.useSingleServer(); SingleServerConfig singleServerConfig = config.useSingleServer();
singleServerConfig.setAddress("redis://" + host + ":" + port) singleServerConfig.setAddress("redis://" + host + ":" + port)
.setPassword(password) .setPassword(password)
......
package vion.config; package vion.config;
import jakarta.servlet.http.HttpServletRequestWrapper;
import org.dromara.hutool.core.io.IoUtil;
import jakarta.servlet.ReadListener; import jakarta.servlet.ReadListener;
import jakarta.servlet.ServletInputStream; import jakarta.servlet.ServletInputStream;
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletRequestWrapper;
import org.dromara.hutool.core.io.IoUtil;
import java.io.*; import java.io.*;
......
package vion.constant; package vion.constant;
import org.dromara.hutool.core.text.StrUtil;
import lombok.Getter; import lombok.Getter;
import org.dromara.hutool.core.text.StrUtil;
import java.util.Arrays; import java.util.Arrays;
......
...@@ -32,7 +32,7 @@ public class AccountController { ...@@ -32,7 +32,7 @@ public class AccountController {
.select(Account::getId, Account::getName) .select(Account::getId, Account::getName)
.orderByDesc(Account::getModifyTime) .orderByDesc(Account::getModifyTime)
.page(Page.of(dto.getPageNum(), .page(Page.of(dto.getPageNum(),
dto.getPageSize())); dto.getPageSize()));
} }
@GetMapping("/account/{id}") @GetMapping("/account/{id}")
......
...@@ -11,8 +11,8 @@ import vion.vo.ConstructionTeamVO; ...@@ -11,8 +11,8 @@ import vion.vo.ConstructionTeamVO;
import vion.vo.RContractTeamVO; import vion.vo.RContractTeamVO;
/** /**
* 施工队管理 * 施工队管理
*/ */
@RestController @RestController
@RequestMapping("/api") @RequestMapping("/api")
@RequiredArgsConstructor @RequiredArgsConstructor
......
...@@ -10,7 +10,7 @@ import com.github.liaochong.myexcel.utils.WatermarkUtil; ...@@ -10,7 +10,7 @@ import com.github.liaochong.myexcel.utils.WatermarkUtil;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.lang.Assert; import org.dromara.hutool.core.lang.Assert;
import org.dromara.hutool.core.text.CharSequenceUtil; import org.dromara.hutool.core.text.CharSequenceUtil;
import org.dromara.hutool.core.text.StrUtil; import org.dromara.hutool.core.text.StrUtil;
...@@ -31,7 +31,7 @@ import vion.vo.UserVO; ...@@ -31,7 +31,7 @@ import vion.vo.UserVO;
import java.awt.*; import java.awt.*;
import java.io.IOException; import java.io.IOException;
import java.util.Date; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -166,9 +166,9 @@ public class ContractController { ...@@ -166,9 +166,9 @@ public class ContractController {
@GetMapping("/contract/getCRMProduct") @GetMapping("/contract/getCRMProduct")
@SaCheckPermission(value = "contract:CRMProduct", orRole = "admin") @SaCheckPermission(value = "contract:CRMProduct", orRole = "admin")
public JsonNode getCRMProduct(@RequestParam String name, public JsonNode getCRMProduct(@RequestParam String name,
@RequestParam String code, @RequestParam String code,
@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "1") Integer page,
@RequestParam(defaultValue = "20") Integer pageSize) { @RequestParam(defaultValue = "20") Integer pageSize) {
return contractService.getCRMProduct(name, code, page, pageSize); return contractService.getCRMProduct(name, code, page, pageSize);
} }
...@@ -192,7 +192,7 @@ public class ContractController { ...@@ -192,7 +192,7 @@ public class ContractController {
watermark.setText(user.getUsername() + "-" + user.getPhone()); watermark.setText(user.getUsername() + "-" + user.getPhone());
watermark.setFont(new Font("SimSun", Font.PLAIN, 16)); watermark.setFont(new Font("SimSun", Font.PLAIN, 16));
WatermarkUtil.addWatermark(workbook, watermark); WatermarkUtil.addWatermark(workbook, watermark);
AttachmentExportUtil.export(workbook, StrUtil.format("合同列表_{}", DateUtil.formatDateTime(new Date())), response); AttachmentExportUtil.export(workbook, StrUtil.format("合同列表_{}", TimeUtil.formatNormal(LocalDateTime.now())), response);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -7,7 +7,7 @@ import io.github.linpeilie.Converter; ...@@ -7,7 +7,7 @@ import io.github.linpeilie.Converter;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.dromara.hutool.core.collection.CollUtil; import org.dromara.hutool.core.collection.CollUtil;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.io.file.FileNameUtil; import org.dromara.hutool.core.io.file.FileNameUtil;
import org.dromara.hutool.core.io.file.FileUtil; import org.dromara.hutool.core.io.file.FileUtil;
import org.dromara.hutool.core.lang.Assert; import org.dromara.hutool.core.lang.Assert;
...@@ -31,7 +31,7 @@ import vion.vo.FileInfoVO; ...@@ -31,7 +31,7 @@ import vion.vo.FileInfoVO;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.util.Date; import java.time.LocalDateTime;
@RestController @RestController
@RequestMapping("/api") @RequestMapping("/api")
...@@ -110,7 +110,7 @@ public class FileController { ...@@ -110,7 +110,7 @@ public class FileController {
@SaCheckPermission(value = "file:form:upload", orRole = "admin") @SaCheckPermission(value = "file:form:upload", orRole = "admin")
public String uploadFile(FileInfoDTO dto, @RequestParam(name = "file") MultipartFile infile) throws IOException { public String uploadFile(FileInfoDTO dto, @RequestParam(name = "file") MultipartFile infile) throws IOException {
String filename = FileNameUtil.mainName(infile.getOriginalFilename()) + "_" + String filename = FileNameUtil.mainName(infile.getOriginalFilename()) + "_" +
DateUtil.format(new Date(), "yyyyMMdd_HHmmssSSS") + "." + TimeUtil.format(LocalDateTime.now(), "yyyyMMdd_HHmmssSSS") + "." +
FileNameUtil.extName(infile.getOriginalFilename()); FileNameUtil.extName(infile.getOriginalFilename());
String path = getPath(dto, filename); String path = getPath(dto, filename);
File file = FileUtil.touch(path); File file = FileUtil.touch(path);
...@@ -142,7 +142,7 @@ public class FileController { ...@@ -142,7 +142,7 @@ public class FileController {
public String uploadFile1(FileInfo fileInfo, @RequestParam(name = "files") MultipartFile[] files) throws IOException { public String uploadFile1(FileInfo fileInfo, @RequestParam(name = "files") MultipartFile[] files) throws IOException {
for (MultipartFile infile : files) { for (MultipartFile infile : files) {
String filename = FileNameUtil.mainName(infile.getOriginalFilename()) + "_" + String filename = FileNameUtil.mainName(infile.getOriginalFilename()) + "_" +
DateUtil.format(new Date(), "yyyyMMdd_HHmmssSSS") + "." + TimeUtil.format(LocalDateTime.now(), "yyyyMMdd_HHmmssSSS") + "." +
FileNameUtil.extName(infile.getOriginalFilename()); FileNameUtil.extName(infile.getOriginalFilename());
String path = fileUrl + FileUtil.FILE_SEPARATOR + fileInfo.getStoreId() + FileUtil.FILE_SEPARATOR + fileInfo.getSourceId() + FileUtil.FILE_SEPARATOR + filename; String path = fileUrl + FileUtil.FILE_SEPARATOR + fileInfo.getStoreId() + FileUtil.FILE_SEPARATOR + fileInfo.getSourceId() + FileUtil.FILE_SEPARATOR + filename;
File file = FileUtil.touch(path); File file = FileUtil.touch(path);
......
...@@ -56,8 +56,8 @@ public class FormController { ...@@ -56,8 +56,8 @@ public class FormController {
/** /**
* 签字专用更新接口 * 签字专用更新接口
* *
* @param uuid uuid * @param uuid uuid
* @param dto dto * @param dto dto
* @return java.lang.String * @return java.lang.String
*/ */
@PostMapping("/form/sign/{uuid}") @PostMapping("/form/sign/{uuid}")
......
...@@ -11,7 +11,7 @@ import vion.model.Inspect; ...@@ -11,7 +11,7 @@ import vion.model.Inspect;
import vion.service.IInspectService; import vion.service.IInspectService;
import vion.vo.InspectVO; import vion.vo.InspectVO;
import java.util.Date; import java.time.LocalDate;
@RestController @RestController
@RequestMapping("/api") @RequestMapping("/api")
...@@ -47,10 +47,10 @@ public class InspectController { ...@@ -47,10 +47,10 @@ public class InspectController {
boolean result = inspectService.lambdaUpdate() boolean result = inspectService.lambdaUpdate()
.eq(Inspect::getId, data.getId()) .eq(Inspect::getId, data.getId())
.set(Inspect::getStatus, data.getStatus()) .set(Inspect::getStatus, data.getStatus())
.set(Inspect::getAuditDate, new Date()) .set(Inspect::getAuditDate, LocalDate.now())
.set(Inspect::getReviewer, data.getReviewer()) .set(Inspect::getReviewer, data.getReviewer())
//审核状态为已完成的时候更新完成时间(0进行中、1待审核、2已完成、3、驳回) //审核状态为已完成的时候更新完成时间(0进行中、1待审核、2已完成、3、驳回)
.set(data.getStatus() == 2, Inspect::getFinishDate, new Date()) .set(data.getStatus() == 2, Inspect::getFinishDate, LocalDate.now())
.update(); .update();
return result ? "更新巡检状态成功" : "更新巡检状态失败"; return result ? "更新巡检状态成功" : "更新巡检状态失败";
} }
......
...@@ -10,7 +10,7 @@ import io.github.linpeilie.Converter; ...@@ -10,7 +10,7 @@ import io.github.linpeilie.Converter;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.text.StrUtil; import org.dromara.hutool.core.text.StrUtil;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import vion.dto.InvoiceDTO; import vion.dto.InvoiceDTO;
...@@ -21,7 +21,7 @@ import vion.vo.UserVO; ...@@ -21,7 +21,7 @@ import vion.vo.UserVO;
import java.awt.*; import java.awt.*;
import java.io.IOException; import java.io.IOException;
import java.util.Date; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
...@@ -79,7 +79,7 @@ public class InvoiceController { ...@@ -79,7 +79,7 @@ public class InvoiceController {
watermark.setText(user.getUsername() + "-" + user.getPhone()); watermark.setText(user.getUsername() + "-" + user.getPhone());
watermark.setFont(new Font("SimSun", Font.PLAIN, 16)); watermark.setFont(new Font("SimSun", Font.PLAIN, 16));
WatermarkUtil.addWatermark(workbook, watermark); WatermarkUtil.addWatermark(workbook, watermark);
AttachmentExportUtil.export(workbook, StrUtil.format("发票列表_{}", DateUtil.formatDateTime(new Date())), response); AttachmentExportUtil.export(workbook, StrUtil.format("发票列表_{}", TimeUtil.formatNormal(LocalDateTime.now())), response);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -2,31 +2,31 @@ package vion.controller; ...@@ -2,31 +2,31 @@ package vion.controller;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.stp.StpUtil; import cn.dev33.satoken.stp.StpUtil;
import org.dromara.hutool.core.date.DateUtil;
import org.dromara.hutool.core.text.StrUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.liaochong.myexcel.core.DefaultExcelBuilder; import com.github.liaochong.myexcel.core.DefaultExcelBuilder;
import com.github.liaochong.myexcel.core.watermark.Watermark; import com.github.liaochong.myexcel.core.watermark.Watermark;
import vion.utils.excel.AttachmentExportUtil;
import com.github.liaochong.myexcel.utils.WatermarkUtil; import com.github.liaochong.myexcel.utils.WatermarkUtil;
import io.github.linpeilie.Converter; import io.github.linpeilie.Converter;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.text.StrUtil;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import vion.dto.PaymentDTO; import vion.dto.PaymentDTO;
import vion.service.IPaymentService; import vion.service.IPaymentService;
import vion.utils.excel.AttachmentExportUtil;
import vion.vo.PaymentVO; import vion.vo.PaymentVO;
import vion.vo.UserVO; import vion.vo.UserVO;
import jakarta.servlet.http.HttpServletResponse;
import java.awt.*; import java.awt.*;
import java.io.IOException; import java.io.IOException;
import java.util.Date; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 收款记录管理 * 收款记录管理
*/ */
@RestController @RestController
@RequestMapping("/api") @RequestMapping("/api")
@RequiredArgsConstructor @RequiredArgsConstructor
...@@ -79,7 +79,7 @@ public class PaymentController { ...@@ -79,7 +79,7 @@ public class PaymentController {
watermark.setText(user.getUsername() + "-" + user.getPhone()); watermark.setText(user.getUsername() + "-" + user.getPhone());
watermark.setFont(new Font("SimSun", Font.PLAIN, 16)); watermark.setFont(new Font("SimSun", Font.PLAIN, 16));
WatermarkUtil.addWatermark(workbook, watermark); WatermarkUtil.addWatermark(workbook, watermark);
AttachmentExportUtil.export(workbook, StrUtil.format("收款列表_{}", DateUtil.formatDateTime(new Date())), response); AttachmentExportUtil.export(workbook, StrUtil.format("收款列表_{}", TimeUtil.formatNormal(LocalDateTime.now())), response);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -2,28 +2,28 @@ package vion.controller; ...@@ -2,28 +2,28 @@ package vion.controller;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.stp.StpUtil; import cn.dev33.satoken.stp.StpUtil;
import org.dromara.hutool.core.date.DateUtil;
import org.dromara.hutool.core.text.StrUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.liaochong.myexcel.core.DefaultExcelBuilder; import com.github.liaochong.myexcel.core.DefaultExcelBuilder;
import com.github.liaochong.myexcel.core.watermark.Watermark; import com.github.liaochong.myexcel.core.watermark.Watermark;
import vion.utils.excel.AttachmentExportUtil;
import com.github.liaochong.myexcel.utils.WatermarkUtil; import com.github.liaochong.myexcel.utils.WatermarkUtil;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.text.StrUtil;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import vion.dto.PointInfoDTO; import vion.dto.PointInfoDTO;
import vion.model.RejectInfo; import vion.model.RejectInfo;
import vion.service.IPointInfoService; import vion.service.IPointInfoService;
import vion.third.WechatMod; import vion.third.WechatMod;
import vion.utils.excel.AttachmentExportUtil;
import vion.vo.PointInfoVO; import vion.vo.PointInfoVO;
import vion.vo.UserVO; import vion.vo.UserVO;
import jakarta.servlet.http.HttpServletResponse;
import java.awt.*; import java.awt.*;
import java.io.IOException; import java.io.IOException;
import java.util.Date; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
...@@ -128,7 +128,7 @@ public class PointDesignController { ...@@ -128,7 +128,7 @@ public class PointDesignController {
watermark.setText(user.getUsername() + "-" + user.getPhone()); watermark.setText(user.getUsername() + "-" + user.getPhone());
watermark.setFont(new Font("SimSun", Font.PLAIN, 16)); watermark.setFont(new Font("SimSun", Font.PLAIN, 16));
WatermarkUtil.addWatermark(workbook, watermark); WatermarkUtil.addWatermark(workbook, watermark);
AttachmentExportUtil.export(workbook, StrUtil.format("点位设计列表_{}", DateUtil.formatDateTime(new Date())), response); AttachmentExportUtil.export(workbook, StrUtil.format("点位设计列表_{}", TimeUtil.formatNormal(LocalDateTime.now())), response);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
package vion.controller; package vion.controller;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import org.dromara.hutool.core.lang.Opt;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.dromara.hutool.core.lang.Opt;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
......
package vion.controller; package vion.controller;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import org.dromara.hutool.core.lang.Assert;
import org.dromara.hutool.core.array.ArrayUtil;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.dromara.hutool.core.array.ArrayUtil;
import org.dromara.hutool.core.lang.Assert;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import vion.dto.RepairRecDTO; import vion.dto.RepairRecDTO;
import vion.service.IRepairRecService; import vion.service.IRepairRecService;
......
package vion.controller; package vion.controller;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.github.linpeilie.Converter;
import lombok.RequiredArgsConstructor;
import org.dromara.hutool.core.collection.CollUtil; import org.dromara.hutool.core.collection.CollUtil;
import org.dromara.hutool.core.collection.ListUtil; import org.dromara.hutool.core.collection.ListUtil;
import org.dromara.hutool.core.lang.Assert; import org.dromara.hutool.core.lang.Assert;
import org.dromara.hutool.core.lang.Opt; import org.dromara.hutool.core.lang.Opt;
import org.dromara.hutool.core.text.StrUtil; import org.dromara.hutool.core.text.StrUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.github.linpeilie.Converter;
import lombok.RequiredArgsConstructor;
import org.dromara.hutool.core.util.ObjUtil; import org.dromara.hutool.core.util.ObjUtil;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import vion.dto.RoleDTO; import vion.dto.RoleDTO;
......
...@@ -9,7 +9,7 @@ import jakarta.servlet.http.HttpServletResponse; ...@@ -9,7 +9,7 @@ import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.dromara.hutool.core.array.ArrayUtil; import org.dromara.hutool.core.array.ArrayUtil;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.lang.Assert; import org.dromara.hutool.core.lang.Assert;
import org.dromara.hutool.core.text.StrUtil; import org.dromara.hutool.core.text.StrUtil;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -22,7 +22,7 @@ import vion.vo.UserVO; ...@@ -22,7 +22,7 @@ import vion.vo.UserVO;
import java.awt.*; import java.awt.*;
import java.io.IOException; import java.io.IOException;
import java.util.Date; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
...@@ -76,7 +76,7 @@ public class SparePartController { ...@@ -76,7 +76,7 @@ public class SparePartController {
UserVO user = (UserVO) StpUtil.getTokenSession().get("curLoginUser"); UserVO user = (UserVO) StpUtil.getTokenSession().get("curLoginUser");
dto.setPageSize(30000); dto.setPageSize(30000);
List<SparePartVO> voPage = sparePartService.list(dto); List<SparePartVO> voPage = sparePartService.list(dto);
try (DefaultStreamExcelBuilder<SparePartVO> defaultStreamExcelBuilder = DefaultStreamExcelBuilder.of(SparePartVO.class).autoMerge().start()) { try (DefaultStreamExcelBuilder<SparePartVO> defaultStreamExcelBuilder = DefaultStreamExcelBuilder.of(SparePartVO.class).autoMerge().start()) {
voPage.forEach(v -> { voPage.forEach(v -> {
var name = v.getRepairDeviceList().stream().map(RRepairDevice::getDeviceName).toList(); var name = v.getRepairDeviceList().stream().map(RRepairDevice::getDeviceName).toList();
var no = v.getRepairDeviceList().stream().map(RRepairDevice::getDeviceNo).toList(); var no = v.getRepairDeviceList().stream().map(RRepairDevice::getDeviceNo).toList();
...@@ -92,7 +92,7 @@ public class SparePartController { ...@@ -92,7 +92,7 @@ public class SparePartController {
watermark.setText(user.getUsername() + "-" + user.getPhone()); watermark.setText(user.getUsername() + "-" + user.getPhone());
watermark.setFont(new Font("SimSun", Font.PLAIN, 16)); watermark.setFont(new Font("SimSun", Font.PLAIN, 16));
WatermarkUtil.addWatermark(workbook, watermark); WatermarkUtil.addWatermark(workbook, watermark);
AttachmentExportUtil.export(workbook, StrUtil.format("备件申请列表_{}", DateUtil.formatDateTime(new Date())), response); AttachmentExportUtil.export(workbook, StrUtil.format("备件申请列表_{}", TimeUtil.formatNormal(LocalDateTime.now())), response);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -10,7 +10,7 @@ import jakarta.servlet.http.HttpServletResponse; ...@@ -10,7 +10,7 @@ import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.text.StrUtil; import org.dromara.hutool.core.text.StrUtil;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -27,7 +27,8 @@ import vion.vo.UserVO; ...@@ -27,7 +27,8 @@ import vion.vo.UserVO;
import java.awt.*; import java.awt.*;
import java.io.IOException; import java.io.IOException;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -81,7 +82,7 @@ public class TaskController { ...@@ -81,7 +82,7 @@ public class TaskController {
FaultLog faultLog = new FaultLog(); FaultLog faultLog = new FaultLog();
faultLog.setOperator(taskVO.getActiveUser()); faultLog.setOperator(taskVO.getActiveUser());
faultLog.setContent("工单正在处理中"); faultLog.setContent("工单正在处理中");
faultLog.setCreateTime(new Date()); faultLog.setCreateTime(LocalDateTime.now());
faultLogList.add(faultLog); faultLogList.add(faultLog);
} }
return faultLogList; return faultLogList;
...@@ -108,7 +109,7 @@ public class TaskController { ...@@ -108,7 +109,7 @@ public class TaskController {
watermark.setText(user.getUsername() + "-" + user.getPhone()); watermark.setText(user.getUsername() + "-" + user.getPhone());
watermark.setFont(new Font("SimSun", Font.PLAIN, 16)); watermark.setFont(new Font("SimSun", Font.PLAIN, 16));
WatermarkUtil.addWatermark(workbook, watermark); WatermarkUtil.addWatermark(workbook, watermark);
AttachmentExportUtil.export(workbook, StrUtil.format("任务列表_{}", DateUtil.formatDateTime(new Date())), response); AttachmentExportUtil.export(workbook, StrUtil.format("任务列表_{}", TimeUtil.formatNormal(LocalDateTime.now())), response);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -147,8 +148,8 @@ public class TaskController { ...@@ -147,8 +148,8 @@ public class TaskController {
@GetMapping("/task/peopleAnal") @GetMapping("/task/peopleAnal")
@SaCheckPermission(value = "task:peopleAnal", orRole = "admin") @SaCheckPermission(value = "task:peopleAnal", orRole = "admin")
public List<Map<String, Object>> peopleAnalysis(@DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate, public List<Map<String, Object>> peopleAnalysis(@DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate startDate,
@DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate, @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate endDate,
Integer source, Integer source,
@RequestParam(required = false) List<Long> userIds) { @RequestParam(required = false) List<Long> userIds) {
return taskService.peopleAnalysis(startDate, endDate, source, userIds); return taskService.peopleAnalysis(startDate, endDate, source, userIds);
...@@ -156,8 +157,8 @@ public class TaskController { ...@@ -156,8 +157,8 @@ public class TaskController {
@GetMapping("/task/proAnal") @GetMapping("/task/proAnal")
@SaCheckPermission(value = "task:proAnal", orRole = "admin") @SaCheckPermission(value = "task:proAnal", orRole = "admin")
public List<Map<String, Object>> proAnalysis(@DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate, public List<Map<String, Object>> proAnalysis(@DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate startDate,
@DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate, @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate endDate,
Integer source, Integer source,
@RequestParam(required = false) List<Long> userIds) { @RequestParam(required = false) List<Long> userIds) {
return taskService.proAnalysis(startDate, endDate, source, userIds); return taskService.proAnalysis(startDate, endDate, source, userIds);
...@@ -165,8 +166,8 @@ public class TaskController { ...@@ -165,8 +166,8 @@ public class TaskController {
@GetMapping("/task/summaryAnal") @GetMapping("/task/summaryAnal")
@SaCheckPermission(value = "task:summaryAnal", orRole = "admin") @SaCheckPermission(value = "task:summaryAnal", orRole = "admin")
public Map<String, Map<String, List<Task>>> summaryAnalysis(@DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate, public Map<String, Map<String, List<Task>>> summaryAnalysis(@DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate startDate,
@DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate, @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate endDate,
Integer source) { Integer source) {
return taskService.summaryAnalysis(startDate, endDate, source); return taskService.summaryAnalysis(startDate, endDate, source);
} }
......
...@@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor; ...@@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.dromara.hutool.core.collection.CollUtil; import org.dromara.hutool.core.collection.CollUtil;
import org.dromara.hutool.core.collection.ListUtil; import org.dromara.hutool.core.collection.ListUtil;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.lang.Opt; import org.dromara.hutool.core.lang.Opt;
import org.dromara.hutool.core.math.NumberUtil; import org.dromara.hutool.core.math.NumberUtil;
import org.dromara.hutool.core.text.StrUtil; import org.dromara.hutool.core.text.StrUtil;
...@@ -165,9 +165,9 @@ public class ContractRunner { ...@@ -165,9 +165,9 @@ public class ContractRunner {
contract.setName(jsonObj1.path("text_14").asText()); contract.setName(jsonObj1.path("text_14").asText());
contract.setContractNo(jsonObj1.path("serialNo").asText()); contract.setContractNo(jsonObj1.path("serialNo").asText());
contract.setType(contractTypeMap.getOrDefault(jsonObj1.path("text_17").path("text").asText(), 0)); contract.setType(contractTypeMap.getOrDefault(jsonObj1.path("text_17").path("text").asText(), 0));
contract.setSignDate(DateUtil.date(jsonObj1.path("date_1").asLong() * 1000)); contract.setSignDate(TimeUtil.of(jsonObj1.path("date_1").asLong() * 1000).toLocalDate());
contract.setMaintainSdate(Opt.ofNullable(jsonObj1.path("date_4")).filter(JsonNode::isNumber).map(sec -> DateUtil.date(sec.asLong() * 1000)).orElse(null)); contract.setMaintainSdate(Opt.ofNullable(jsonObj1.path("date_4")).filter(JsonNode::isNumber).map(sec -> TimeUtil.of(sec.asLong() * 1000).toLocalDate()).orElse(null));
contract.setMaintainEdate(Opt.ofNullable(jsonObj1.path("date_5")).filter(JsonNode::isNumber).map(sec -> DateUtil.date(sec.asLong() * 1000)).orElse(null)); contract.setMaintainEdate(Opt.ofNullable(jsonObj1.path("date_5")).filter(JsonNode::isNumber).map(sec -> TimeUtil.of(sec.asLong() * 1000).toLocalDate()).orElse(null));
String warrantyPeriod = jsonObj1.path("text_23").path("text").asText(""); String warrantyPeriod = jsonObj1.path("text_23").path("text").asText("");
// 23 质保 没有维保开始时间和结束时间 25 维保 // 23 质保 没有维保开始时间和结束时间 25 维保
if (StrUtil.isNotBlank(warrantyPeriod) && warrantyPeriod.contains("个月")) { if (StrUtil.isNotBlank(warrantyPeriod) && warrantyPeriod.contains("个月")) {
...@@ -183,7 +183,7 @@ public class ContractRunner { ...@@ -183,7 +183,7 @@ public class ContractRunner {
if (!paymentForm.isEmpty()) { if (!paymentForm.isEmpty()) {
paymentForm.forEach(pf -> { paymentForm.forEach(pf -> {
var ratio = NumberUtil.div(BigDecimal.valueOf(Double.parseDouble(pf.path("text_1").asText())), 100); var ratio = NumberUtil.div(BigDecimal.valueOf(Double.parseDouble(pf.path("text_1").asText())), 100);
var date = DateUtil.date(pf.path("date_1").asLong() * 1000); var date = TimeUtil.of(pf.path("date_1").asLong() * 1000).toLocalDate();
var stage = pf.path("text_2").path("text").asText(); var stage = pf.path("text_2").path("text").asText();
if (StrUtil.equals(stage, "预付款")) { if (StrUtil.equals(stage, "预付款")) {
contract.setSignRatio(ratio); contract.setSignRatio(ratio);
...@@ -224,8 +224,8 @@ public class ContractRunner { ...@@ -224,8 +224,8 @@ public class ContractRunner {
contract.setBackInfo(jsonObj1.path("text_29").asText()); contract.setBackInfo(jsonObj1.path("text_29").asText());
contract.setCreateUser(-1L); contract.setCreateUser(-1L);
contract.setModifyUser(-1L); contract.setModifyUser(-1L);
contract.setEntryTime(DateUtil.date(result.path("addTime").asLong() * 1000)); contract.setEntryTime(TimeUtil.of(result.path("addTime").asLong() * 1000));
contract.setOriginalModTime(DateUtil.date(result.path("updateTime").asLong() * 1000)); contract.setOriginalModTime(TimeUtil.of(result.path("updateTime").asLong() * 1000));
insOrUpdContractList.add(contract); insOrUpdContractList.add(contract);
var productArr = jsonObj1.withArray("array_4"); var productArr = jsonObj1.withArray("array_4");
...@@ -320,8 +320,7 @@ public class ContractRunner { ...@@ -320,8 +320,7 @@ public class ContractRunner {
contractPaymentService.calMoney(exist, updDto); contractPaymentService.calMoney(exist, updDto);
contractService.updateById(updDto); contractService.updateById(updDto);
}); });
redissonClient.getBucket(RedisKeyEnum.CONTRACT_SYNC_NEW_TIME.getVal()).set(insOrUpdContractList.getFirst().getOriginalModTime().getTime()); redissonClient.getBucket(RedisKeyEnum.CONTRACT_SYNC_NEW_TIME.getVal()).set(TimeUtil.toEpochMilli(insOrUpdContractList.getFirst().getOriginalModTime()));
log.info("【结束】从crm系统同步合同信息"); log.info("【结束】从crm系统同步合同信息");
} }
......
...@@ -2,7 +2,7 @@ package vion.cron; ...@@ -2,7 +2,7 @@ package vion.cron;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.lang.Opt; import org.dromara.hutool.core.lang.Opt;
import org.dromara.hutool.core.text.StrUtil; import org.dromara.hutool.core.text.StrUtil;
import org.dromara.hutool.core.util.ObjUtil; import org.dromara.hutool.core.util.ObjUtil;
...@@ -20,6 +20,7 @@ import vion.service.IStoreService; ...@@ -20,6 +20,7 @@ import vion.service.IStoreService;
import vion.third.DingMod; import vion.third.DingMod;
import vion.utils.JsonUtil; import vion.utils.JsonUtil;
import java.time.LocalDateTime;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -83,7 +84,7 @@ public class LogPushRunner { ...@@ -83,7 +84,7 @@ public class LogPushRunner {
.put("text", StrUtil.format(""" .put("text", StrUtil.format("""
### 项目日志待提交提醒 ### 项目日志待提交提醒
#### 项目:[{}]请及时提交日志 #### 项目:[{}]请及时提交日志
#### 发送时间:{}""", storeName, DateUtil.now())); #### 发送时间:{}""", storeName, TimeUtil.formatNormal(LocalDateTime.now())));
var msg = JsonUtil.createObj() var msg = JsonUtil.createObj()
.put("msgtype", "markdown") .put("msgtype", "markdown")
......
...@@ -3,7 +3,7 @@ package vion.cron; ...@@ -3,7 +3,7 @@ package vion.cron;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.dromara.hutool.core.date.DateUtil; import org.dromara.hutool.core.date.TimeUtil;
import org.dromara.hutool.core.lang.Opt; import org.dromara.hutool.core.lang.Opt;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -14,6 +14,7 @@ import vion.service.IUserService; ...@@ -14,6 +14,7 @@ import vion.service.IUserService;
import vion.third.DingMod; import vion.third.DingMod;
import vion.utils.JsonUtil; import vion.utils.JsonUtil;
import java.time.LocalDateTime;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -52,7 +53,7 @@ public class TaskRunner { ...@@ -52,7 +53,7 @@ public class TaskRunner {
.put("markdown", """ .put("markdown", """
### 未完成工单提醒 ### 未完成工单提醒
#### 请查看您未完成的工单 #### 请查看您未完成的工单
#### 发送时间:""" + DateUtil.now()) #### 发送时间:""" + TimeUtil.formatNormal(LocalDateTime.now()))
.put("btn_orientation", "1"); .put("btn_orientation", "1");
var jsonArray = JsonUtil.createArr() var jsonArray = JsonUtil.createArr()
......
...@@ -7,7 +7,8 @@ import org.springframework.format.annotation.DateTimeFormat; ...@@ -7,7 +7,8 @@ import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
@Getter @Getter
...@@ -56,24 +57,26 @@ public class ContractDTO extends BaseDTO { ...@@ -56,24 +57,26 @@ public class ContractDTO extends BaseDTO {
/** /**
* 终验日期 * 终验日期
*/ */
private Date finalDate; private LocalDateTime finalDate;
/** /**
* 项目id * 项目id
*/ */
private Long storeId; private Long storeId;
/** 文件来源 */ /**
* 文件来源
*/
private Integer sourceType; private Integer sourceType;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date nodeDate; private LocalDate nodeDate;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date signDateStart; private LocalDate signDateStart;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date signDateEnd; private LocalDate signDateEnd;
/** /**
* 1:查询未关联的合同 * 1:查询未关联的合同
...@@ -81,7 +84,9 @@ public class ContractDTO extends BaseDTO { ...@@ -81,7 +84,9 @@ public class ContractDTO extends BaseDTO {
*/ */
private int switchFlag; private int switchFlag;
/** 产品线属性 */ /**
* 产品线属性
*/
private List<Integer> productLines; private List<Integer> productLines;
/** /**
...@@ -107,7 +112,9 @@ public class ContractDTO extends BaseDTO { ...@@ -107,7 +112,9 @@ public class ContractDTO extends BaseDTO {
private BigDecimal amount; private BigDecimal amount;
/** 操作符 > < = */ /**
* 操作符 > < =
*/
private String operator; private String operator;
private OrderItem orderItem; private OrderItem orderItem;
......
...@@ -5,7 +5,7 @@ import lombok.Getter; ...@@ -5,7 +5,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
@Getter @Getter
@Setter @Setter
...@@ -31,6 +31,6 @@ public class ContractPaymentDTO { ...@@ -31,6 +31,6 @@ public class ContractPaymentDTO {
* 节点日期,指合同到这一阶段时的时间 * 节点日期,指合同到这一阶段时的时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date nodeDate; private LocalDate nodeDate;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ import lombok.Getter; ...@@ -5,7 +5,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.time.LocalDate;
import java.util.List; import java.util.List;
@Getter @Getter
...@@ -39,13 +39,13 @@ public class DeliverLogDTO extends BaseDTO { ...@@ -39,13 +39,13 @@ public class DeliverLogDTO extends BaseDTO {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date logDate; private LocalDate logDate;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date logDateStart; private LocalDate logDateStart;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date logDateEnd; private LocalDate logDateEnd;
/** /**
* 干系人 * 干系人
......
...@@ -6,7 +6,7 @@ import lombok.Setter; ...@@ -6,7 +6,7 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.Date; import java.time.LocalDate;
@Getter @Getter
@Setter @Setter
...@@ -53,14 +53,14 @@ public class DeliveryRecordDTO extends BaseDTO { ...@@ -53,14 +53,14 @@ public class DeliveryRecordDTO extends BaseDTO {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date shipDate; private LocalDate shipDate;
/** /**
* 到货签收日期 * 到货签收日期
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date signDate; private LocalDate signDate;
/** /**
* 快递公司 * 快递公司
......
...@@ -4,7 +4,7 @@ import lombok.Getter; ...@@ -4,7 +4,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.time.LocalDate;
@Getter @Getter
@Setter @Setter
...@@ -55,7 +55,7 @@ public class DeviceDTO extends BaseDTO { ...@@ -55,7 +55,7 @@ public class DeviceDTO extends BaseDTO {
* 入库日期 * 入库日期
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date recDate; private LocalDate recDate;
/** /**
* 备注 * 备注
......
...@@ -9,31 +9,57 @@ import java.util.List; ...@@ -9,31 +9,57 @@ import java.util.List;
@Setter @Setter
public class FileInfoDTO extends BaseDTO { public class FileInfoDTO extends BaseDTO {
private Long id; private Long id;
/** 门店id */ /**
* 门店id
*/
private Long storeId; private Long storeId;
/** 文件扩展名 */ /**
* 文件扩展名
*/
private String type; private String type;
/** 文件来源 */ /**
* 文件来源
*/
private Integer sourceType; private Integer sourceType;
private List<Integer> sourceTypeList; private List<Integer> sourceTypeList;
/** 文件来源id */ /**
* 文件来源id
*/
private Long sourceId; private Long sourceId;
/** 合同id */ /**
* 合同id
*/
private Long contractId; private Long contractId;
/** 合同编号 */ /**
* 合同编号
*/
private String contractNo; private String contractNo;
/** 文件名称 */ /**
* 文件名称
*/
private String name; private String name;
/** 文件地址 */ /**
* 文件地址
*/
private String url; private String url;
/** 备注 */ /**
* 备注
*/
private String remark; private String remark;
/** sha256 */ /**
* sha256
*/
private String sha256; private String sha256;
/** 上传人 */ /**
* 上传人
*/
private String uploader; private String uploader;
/** 标识:storeLog,用于区分项目日志的表单文件的提交存储和其他通用表单的文件存储 */ /**
* 标识:storeLog,用于区分项目日志的表单文件的提交存储和其他通用表单的文件存储
*/
private String flag; private String flag;
/** 更新标识,更新接口不传该字段,不允许更新文件:1.项目资料 */ /**
* 更新标识,更新接口不传该字段,不允许更新文件:1.项目资料
*/
private Integer updFlag; private Integer updFlag;
} }
...@@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
...@@ -41,7 +41,7 @@ public class FormDTO extends BaseDTO { ...@@ -41,7 +41,7 @@ public class FormDTO extends BaseDTO {
* 签字时间 * 签字时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date signTime; private LocalDateTime signTime;
/** /**
* 来源,1:任务管理,2:巡检管理 * 来源,1:任务管理,2:巡检管理
......
...@@ -5,45 +5,68 @@ import lombok.Getter; ...@@ -5,45 +5,68 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
public class InspectDTO extends BaseDTO { public class InspectDTO extends BaseDTO {
/** 自增列 */ /**
* 自增列
*/
private Long id; private Long id;
/** 门店id */ /**
* 门店id
*/
private Long storeId; private Long storeId;
/** 巡检时间 */ /**
* 巡检时间
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date inspectDate; private LocalDate inspectDate;
/** 巡检方式(0远程、1现场) */ /**
* 巡检方式(0远程、1现场)
*/
private Integer type; private Integer type;
/** 状态(0进行中、1待审核、2已完成、3、驳回) */ /**
* 状态(0进行中、1待审核、2已完成、3、驳回)
*/
private Integer status; private Integer status;
/** 巡检人 */ /**
* 巡检人
*/
private Integer inspectUser; private Integer inspectUser;
/** 审核人 */ /**
* 审核人
*/
private Integer reviewer; private Integer reviewer;
/** 完成时间 */ /**
* 完成时间
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date finishDate; private LocalDate finishDate;
/** 审核时间 */ /**
* 审核时间
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date auditDate; private LocalDate auditDate;
/** 备注 */ /**
* 备注
*/
private String remark; private String remark;
/** 集团id */ /**
* 集团id
*/
private Long accountId; private Long accountId;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startdate; private LocalDateTime startdate;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date enddate; private LocalDateTime enddate;
} }
...@@ -7,7 +7,7 @@ import lombok.Setter; ...@@ -7,7 +7,7 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
@Getter @Getter
...@@ -24,7 +24,7 @@ public class InvoiceDTO extends BaseDTO { ...@@ -24,7 +24,7 @@ public class InvoiceDTO extends BaseDTO {
* 开票时间 * 开票时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date invoicingTime; private LocalDate invoicingTime;
/** /**
* 发票金额 * 发票金额
...@@ -47,9 +47,9 @@ public class InvoiceDTO extends BaseDTO { ...@@ -47,9 +47,9 @@ public class InvoiceDTO extends BaseDTO {
private String serialNo; private String serialNo;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date invoicingTimeStart; private LocalDate invoicingTimeStart;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date invoicingTimeEnd; private LocalDate invoicingTimeEnd;
private OrderItem orderItem; private OrderItem orderItem;
......
...@@ -7,7 +7,7 @@ import lombok.Setter; ...@@ -7,7 +7,7 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
/** /**
* 收款记录表 * 收款记录表
...@@ -31,7 +31,7 @@ public class PaymentDTO extends BaseDTO { ...@@ -31,7 +31,7 @@ public class PaymentDTO extends BaseDTO {
* 收款时间 * 收款时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date collectionTime; private LocalDate collectionTime;
/** /**
* 收款金额 * 收款金额
...@@ -47,10 +47,10 @@ public class PaymentDTO extends BaseDTO { ...@@ -47,10 +47,10 @@ public class PaymentDTO extends BaseDTO {
* 收款开始时间、结束时间 * 收款开始时间、结束时间
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date collectionTimeStart; private LocalDate collectionTimeStart;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date collectionTimeEnd; private LocalDate collectionTimeEnd;
private OrderItem orderItem; private OrderItem orderItem;
......
...@@ -200,14 +200,20 @@ public class PointInfoDTO extends BaseDTO { ...@@ -200,14 +200,20 @@ public class PointInfoDTO extends BaseDTO {
private MultipartFile[] files; private MultipartFile[] files;
/** 客户上传合同文件 */ /**
* 客户上传合同文件
*/
private MultipartFile contractFile; private MultipartFile contractFile;
/** 上传的合同范本 */ /**
* 上传的合同范本
*/
private MultipartFile contractTemplateFile; private MultipartFile contractTemplateFile;
/* 终版合同 */ /* 终版合同 */
private MultipartFile finalContractFile; private MultipartFile finalContractFile;
/** 微信 openid 和昵称 */ /**
* 微信 openid 和昵称
*/
private String openid; private String openid;
private String nickname; private String nickname;
......
...@@ -3,7 +3,7 @@ package vion.dto; ...@@ -3,7 +3,7 @@ package vion.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
...@@ -36,12 +36,12 @@ public class RContractTeamDTO extends BaseDTO { ...@@ -36,12 +36,12 @@ public class RContractTeamDTO extends BaseDTO {
/** /**
* 分配日期 * 分配日期
*/ */
private Date assignDate; private LocalDateTime assignDate;
/** /**
* 完成日期 * 完成日期
*/ */
private Date finishDate; private LocalDateTime finishDate;
/** /**
* 施工状态 * 施工状态
......
...@@ -6,7 +6,8 @@ import lombok.Setter; ...@@ -6,7 +6,8 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -87,7 +88,7 @@ public class RepairRecDTO extends BaseDTO { ...@@ -87,7 +88,7 @@ public class RepairRecDTO extends BaseDTO {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date shipDate; private LocalDate shipDate;
/** /**
* 快递公司 * 快递公司
...@@ -119,14 +120,14 @@ public class RepairRecDTO extends BaseDTO { ...@@ -119,14 +120,14 @@ public class RepairRecDTO extends BaseDTO {
private MultipartFile[] files; private MultipartFile[] files;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTimeStart; private LocalDateTime createTimeStart;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTimeEnd; private LocalDateTime createTimeEnd;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date shipDateStart; private LocalDate shipDateStart;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date shipDateEnd; private LocalDate shipDateEnd;
private String deviceName; private String deviceName;
private String deviceNo; private String deviceNo;
......
...@@ -4,7 +4,7 @@ import lombok.Getter; ...@@ -4,7 +4,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -36,8 +36,8 @@ public class RoleDTO extends BaseDTO { ...@@ -36,8 +36,8 @@ public class RoleDTO extends BaseDTO {
private String remark; private String remark;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startDate; private LocalDateTime startDate;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endDate; private LocalDateTime endDate;
} }
...@@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -12,64 +12,102 @@ import java.util.Date; ...@@ -12,64 +12,102 @@ import java.util.Date;
*/ */
@Getter @Getter
@Setter @Setter
public class ServiceOrderDTO extends BaseDTO { public class ServiceOrderDTO extends BaseDTO {
/** 项目名称 */ /**
* 项目名称
*/
private String projectName; private String projectName;
/** 报修人 */ /**
* 报修人
*/
private String submitter; private String submitter;
/** 报修人手机号码 */ /**
* 报修人手机号码
*/
private String submitPhone; private String submitPhone;
/** 报修时间 */ /**
* 报修时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date submitTime; private LocalDateTime submitTime;
/** 维修人 */ /**
* 维修人
*/
private String repairPeople; private String repairPeople;
/** 维修人手机号码*/ /**
* 维修人手机号码
*/
private String repairPhone; private String repairPhone;
/** 部门 */ /**
* 部门
*/
private String dept; private String dept;
/** 服务方式(1.电话支持 2.远程服务 3.现场服务) */ /**
* 服务方式(1.电话支持 2.远程服务 3.现场服务)
*/
private Integer serviceType; private Integer serviceType;
/** 耗时 */ /**
* 耗时
*/
private Double time; private Double time;
/** 故障内容 */ /**
* 故障内容
*/
private String faultContent; private String faultContent;
/** 维修结果 */ /**
* 维修结果
*/
private String repairRes; private String repairRes;
/** 客户评价 */ /**
* 客户评价
*/
private String review; private String review;
/** 工单id */ /**
* 工单id
*/
private Long taskId; private Long taskId;
/** 服务单状态 */ /**
* 服务单状态
*/
private Integer state; private Integer state;
/** 五星好评 */ /**
* 五星好评
*/
private Integer stars; private Integer stars;
/** 签字图片base64 */ /**
* 签字图片base64
*/
private String signPic; private String signPic;
/** 签字时间 */ /**
* 签字时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date signTime; private LocalDateTime signTime;
/** 完成时间 */ /**
* 完成时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date finishTime; private LocalDateTime finishTime;
/** 项目id */ /**
* 项目id
*/
private Long storeId; private Long storeId;
} }
...@@ -6,7 +6,8 @@ import lombok.Setter; ...@@ -6,7 +6,8 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -82,7 +83,7 @@ public class SparePartDTO extends BaseDTO { ...@@ -82,7 +83,7 @@ public class SparePartDTO extends BaseDTO {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date shipDate; private LocalDate shipDate;
/** /**
* 快递公司 * 快递公司
...@@ -114,18 +115,20 @@ public class SparePartDTO extends BaseDTO { ...@@ -114,18 +115,20 @@ public class SparePartDTO extends BaseDTO {
*/ */
private String uuid; private String uuid;
/** 微信用户id */ /**
* 微信用户id
*/
private String openid; private String openid;
private MultipartFile[] files; private MultipartFile[] files;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTimeStart; private LocalDateTime createTimeStart;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTimeEnd; private LocalDateTime createTimeEnd;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date shipDateStart; private LocalDate shipDateStart;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date shipDateEnd; private LocalDate shipDateEnd;
} }
\ No newline at end of file \ No newline at end of file
...@@ -7,13 +7,21 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -7,13 +7,21 @@ import org.springframework.web.multipart.MultipartFile;
@Getter @Getter
@Setter @Setter
public class StatusDTO { public class StatusDTO {
/** 门店id */ /**
* 门店id
*/
private Long storeId; private Long storeId;
/** 阶段 */ /**
* 阶段
*/
private Integer projectStage; private Integer projectStage;
/** 文件来源 */ /**
* 文件来源
*/
private Integer sourceType; private Integer sourceType;
/** 来源id */ /**
* 来源id
*/
private Long sourceId; private Long sourceId;
private MultipartFile[] files; private MultipartFile[] files;
} }
...@@ -5,7 +5,8 @@ import lombok.Getter; ...@@ -5,7 +5,8 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
...@@ -16,69 +17,121 @@ import java.util.List; ...@@ -16,69 +17,121 @@ import java.util.List;
public class StoreDTO extends BaseDTO { public class StoreDTO extends BaseDTO {
private Long id; private Long id;
private List<Long> ids; private List<Long> ids;
/** 门店名称 */ /**
private String name ; * 门店名称
/** 销售人 */ */
private String name;
/**
* 销售人
*/
private Integer salesperson; private Integer salesperson;
/** 客户姓名 */ /**
* 客户姓名
*/
private String customerName; private String customerName;
/** 实施类型:0纯供货、1供货+安装、3续保、4维修 */ /**
* 实施类型:0纯供货、1供货+安装、3续保、4维修
*/
private Integer implementType; private Integer implementType;
/** 项目状态:0待确认、1进行中、2已完成、3挂起 */ /**
* 项目状态:0待确认、1进行中、2已完成、3挂起
*/
private Integer projectState; private Integer projectState;
/** 联系人(多个联系人逗号隔开) */ /**
* 联系人(多个联系人逗号隔开)
*/
private String contacts; private String contacts;
/** 创建者 */ /**
* 创建者
*/
private Long createUser; private Long createUser;
/** 修改者 */ /**
* 修改者
*/
private Long modifyUser; private Long modifyUser;
/** 备注 */ /**
* 备注
*/
private String remark; private String remark;
/** 项目阶段 */ /**
* 项目阶段
*/
private Integer projectStage; private Integer projectStage;
/** 集团id */ /**
* 集团id
*/
private Long accountId; private Long accountId;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startdate; private LocalDateTime startdate;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date enddate; private LocalDateTime enddate;
/** 立项日期 */ /**
* 立项日期
*/
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date estDate; private LocalDate estDate;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date estDateStart; private LocalDate estDateStart;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date estDateEnd; private LocalDate estDateEnd;
/** 主合同id */ /**
* 主合同id
*/
private Long masterContract; private Long masterContract;
/** 维保状态 */ /**
* 维保状态
*/
private String maintainStatus; private String maintainStatus;
/** 产品线属性 */ /**
* 产品线属性
*/
private Integer productLine; private Integer productLine;
/** 是否重点项目 0:不是 1:是 */ /**
* 是否重点项目 0:不是 1:是
*/
private Integer isImportant; private Integer isImportant;
/** 任务详情 */ /**
* 任务详情
*/
private String taskDetail; private String taskDetail;
/** 预计完成日期 */ /**
* 预计完成日期
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date finishDate; private LocalDate finishDate;
/** 完成百分比 */ /**
* 完成百分比
*/
private Double percentage; private Double percentage;
/** 当前卡点 */ /**
* 当前卡点
*/
private String stuckPoint; private String stuckPoint;
/** 标签id */ /**
* 标签id
*/
private Long tagId; private Long tagId;
/** 项目负责人 or 项目经理 */ /**
* 项目负责人 or 项目经理
*/
private Long mainUser; private Long mainUser;
/** 主要产品 */ /**
* 主要产品
*/
private Integer mainProduct; private Integer mainProduct;
/** 点位数量 */ /**
* 点位数量
*/
private Integer pointNum; private Integer pointNum;
/** 计划完成日期 */ /**
* 计划完成日期
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date planFinishDate; private LocalDate planFinishDate;
/** 项目规模 */ /**
* 项目规模
*/
private Integer projectSize; private Integer projectSize;
/** /**
* 巡检次数 * 巡检次数
......
...@@ -6,7 +6,8 @@ import lombok.Setter; ...@@ -6,7 +6,8 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
@Getter @Getter
...@@ -22,7 +23,7 @@ public class TaskDTO extends BaseDTO { ...@@ -22,7 +23,7 @@ public class TaskDTO extends BaseDTO {
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date repairTime; private LocalDateTime repairTime;
/** /**
* 故障类型 * 故障类型
*/ */
...@@ -48,7 +49,7 @@ public class TaskDTO extends BaseDTO { ...@@ -48,7 +49,7 @@ public class TaskDTO extends BaseDTO {
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date solveDate; private LocalDate solveDate;
/** /**
* 故障原因 * 故障原因
*/ */
...@@ -75,7 +76,7 @@ public class TaskDTO extends BaseDTO { ...@@ -75,7 +76,7 @@ public class TaskDTO extends BaseDTO {
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date expDate; private LocalDate expDate;
/** /**
* 备注 * 备注
...@@ -93,11 +94,11 @@ public class TaskDTO extends BaseDTO { ...@@ -93,11 +94,11 @@ public class TaskDTO extends BaseDTO {
private MultipartFile[] files; private MultipartFile[] files;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startdate; private LocalDateTime startdate;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date enddate; private LocalDateTime enddate;
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
private Date curDate; private LocalDate curDate;
/** /**
* 工时 * 工时
*/ */
......
...@@ -6,7 +6,7 @@ import lombok.Setter; ...@@ -6,7 +6,7 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
...@@ -22,7 +22,7 @@ public class TaskTempDTO extends BaseDTO { ...@@ -22,7 +22,7 @@ public class TaskTempDTO extends BaseDTO {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date repairTime; private LocalDateTime repairTime;
/** /**
* 故障说明 * 故障说明
*/ */
...@@ -53,7 +53,7 @@ public class TaskTempDTO extends BaseDTO { ...@@ -53,7 +53,7 @@ public class TaskTempDTO extends BaseDTO {
private MultipartFile[] files; private MultipartFile[] files;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startdate; private LocalDateTime startdate;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date enddate; private LocalDateTime enddate;
} }
...@@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* 用户信息 * 用户信息
...@@ -18,15 +18,19 @@ public class UserDTO extends BaseDTO { ...@@ -18,15 +18,19 @@ public class UserDTO extends BaseDTO {
private String phone; private String phone;
private Long deptId; private Long deptId;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
private String remark; private String remark;
/** 是否是预工单处理人 0:不是 1:是 */ /**
* 是否是预工单处理人 0:不是 1:是
*/
private Integer preWorkOrder; private Integer preWorkOrder;
/** 员工状态 2:试用期 3:正式 5:待离职 -1:无状态 */ /**
* 员工状态 2:试用期 3:正式 5:待离职 -1:无状态
*/
private Integer employeeStatus; private Integer employeeStatus;
/* 状态 0:正常 1:禁用 */ /* 状态 0:正常 1:禁用 */
......
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.Dictionary; import vion.model.Dictionary;
public interface DictionaryMapper extends MPJBaseMapper<Dictionary> { public interface DictionaryMapper extends MPJBaseMapper<Dictionary> {
} }
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.DictionaryType; import vion.model.DictionaryType;
public interface DictionaryTypeMapper extends MPJBaseMapper<DictionaryType> { public interface DictionaryTypeMapper extends MPJBaseMapper<DictionaryType> {
} }
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.FaultLog; import vion.model.FaultLog;
public interface FaultLogMapper extends MPJBaseMapper<FaultLog> { public interface FaultLogMapper extends MPJBaseMapper<FaultLog> {
} }
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.FileInfo; import vion.model.FileInfo;
public interface FileMapper extends MPJBaseMapper<FileInfo> { public interface FileMapper extends MPJBaseMapper<FileInfo> {
} }
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.Inspect; import vion.model.Inspect;
public interface InspectMapper extends MPJBaseMapper<Inspect> { public interface InspectMapper extends MPJBaseMapper<Inspect> {
} }
package vion.mapper; package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.SparePart; import vion.model.SparePart;
/** /**
* @author HlQ * @author HlQ
......
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.Store; import vion.model.Store;
public interface StoreMapper extends MPJBaseMapper<Store> { public interface StoreMapper extends MPJBaseMapper<Store> {
} }
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.Task; import vion.model.Task;
public interface TaskMapper extends MPJBaseMapper<Task> { public interface TaskMapper extends MPJBaseMapper<Task> {
} }
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.TaskTemp; import vion.model.TaskTemp;
public interface TaskTempMapper extends MPJBaseMapper<TaskTemp> { public interface TaskTempMapper extends MPJBaseMapper<TaskTemp> {
} }
...@@ -2,5 +2,6 @@ package vion.mapper; ...@@ -2,5 +2,6 @@ package vion.mapper;
import com.github.yulichang.base.MPJBaseMapper; import com.github.yulichang.base.MPJBaseMapper;
import vion.model.User; import vion.model.User;
public interface UserMapper extends MPJBaseMapper<User> { public interface UserMapper extends MPJBaseMapper<User> {
} }
...@@ -6,7 +6,7 @@ import lombok.Getter; ...@@ -6,7 +6,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.BaseDTO; import vion.dto.BaseDTO;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
...@@ -29,14 +29,14 @@ public class Account extends BaseDTO { ...@@ -29,14 +29,14 @@ public class Account extends BaseDTO {
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
/** /**
* 备注 * 备注
......
...@@ -8,7 +8,7 @@ import lombok.Setter; ...@@ -8,7 +8,7 @@ import lombok.Setter;
import vion.dto.ConstructionTeamDTO; import vion.dto.ConstructionTeamDTO;
import vion.vo.ConstructionTeamVO; import vion.vo.ConstructionTeamVO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* 施工队信息表 * 施工队信息表
...@@ -37,8 +37,8 @@ public class ConstructionTeam { ...@@ -37,8 +37,8 @@ public class ConstructionTeam {
private String city; private String city;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,8 @@ import vion.dto.ContractDTO; ...@@ -10,7 +10,8 @@ import vion.dto.ContractDTO;
import vion.vo.ContractVO; import vion.vo.ContractVO;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
...@@ -49,19 +50,19 @@ public class Contract { ...@@ -49,19 +50,19 @@ public class Contract {
* 合同签订日期 * 合同签订日期
*/ */
@TableField(value = "sign_date") @TableField(value = "sign_date")
private Date signDate; private LocalDate signDate;
/** /**
* 合同维保开始日期 * 合同维保开始日期
*/ */
@TableField(value = "maintain_sdate") @TableField(value = "maintain_sdate")
private Date maintainSdate; private LocalDate maintainSdate;
/** /**
* 合同维保结束日期 * 合同维保结束日期
*/ */
@TableField(value = "maintain_edate") @TableField(value = "maintain_edate")
private Date maintainEdate; private LocalDate maintainEdate;
/** /**
* 合同进度:1-签订 2-到货 3-系统验收(初验) 4-项目验收(终验) 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款 9-维保进度款 10-维保验收款 * 合同进度:1-签订 2-到货 3-系统验收(初验) 4-项目验收(终验) 5-质保 6-第一笔维保款 7-第二笔维保款 8-第三笔维保款 9-维保进度款 10-维保验收款
...@@ -140,13 +141,13 @@ public class Contract { ...@@ -140,13 +141,13 @@ public class Contract {
* 创建时间 * 创建时间
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
private Date modifyTime; private LocalDateTime modifyTime;
/** /**
* 合同质保周期(月) * 合同质保周期(月)
...@@ -158,7 +159,7 @@ public class Contract { ...@@ -158,7 +159,7 @@ public class Contract {
* 终验日期,目前取值为合同阶段为系统初验或者终验的 nodeDate * 终验日期,目前取值为合同阶段为系统初验或者终验的 nodeDate
*/ */
@TableField(value = "final_date") @TableField(value = "final_date")
private Date finalDate; private LocalDate finalDate;
/** /**
* 开票金额 * 开票金额
...@@ -170,7 +171,7 @@ public class Contract { ...@@ -170,7 +171,7 @@ public class Contract {
* 录入时间 * 录入时间
*/ */
@TableField(value = "entry_time") @TableField(value = "entry_time")
private Date entryTime; private LocalDateTime entryTime;
/** /**
* 财务状态 * 财务状态
...@@ -185,7 +186,7 @@ public class Contract { ...@@ -185,7 +186,7 @@ public class Contract {
private String backInfo; private String backInfo;
@TableField(exist = false) @TableField(exist = false)
private Date originalModTime; private LocalDateTime originalModTime;
/** /**
* 合同签订付款比例 * 合同签订付款比例
...@@ -197,7 +198,7 @@ public class Contract { ...@@ -197,7 +198,7 @@ public class Contract {
* 合同签订付款日期 * 合同签订付款日期
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date signDate1; private LocalDate signDate1;
/** /**
* 合同到货付款比例 * 合同到货付款比例
...@@ -209,7 +210,7 @@ public class Contract { ...@@ -209,7 +210,7 @@ public class Contract {
* 合同到货付款日期 * 合同到货付款日期
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date arriveDate; private LocalDate arriveDate;
/** /**
* 合同系统验收付款比例 * 合同系统验收付款比例
...@@ -221,7 +222,7 @@ public class Contract { ...@@ -221,7 +222,7 @@ public class Contract {
* 合同系统验收付款日期 * 合同系统验收付款日期
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date systemCheckDate; private LocalDate systemCheckDate;
/** /**
* 合同项目验收付款比例 * 合同项目验收付款比例
...@@ -233,7 +234,7 @@ public class Contract { ...@@ -233,7 +234,7 @@ public class Contract {
* 合同项目验收付款日期 * 合同项目验收付款日期
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date projectCheckDate; private LocalDate projectCheckDate;
/** /**
* 合同质保付款比例 * 合同质保付款比例
...@@ -245,7 +246,7 @@ public class Contract { ...@@ -245,7 +246,7 @@ public class Contract {
* 合同质保付款日期 * 合同质保付款日期
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date warrantyDate; private LocalDate warrantyDate;
/** /**
* 合同维保付款比例1 * 合同维保付款比例1
...@@ -257,7 +258,7 @@ public class Contract { ...@@ -257,7 +258,7 @@ public class Contract {
* 合同维保付款日期1 * 合同维保付款日期1
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date maintainDate1; private LocalDate maintainDate1;
/** /**
* 合同维保付款比例2 * 合同维保付款比例2
...@@ -269,7 +270,7 @@ public class Contract { ...@@ -269,7 +270,7 @@ public class Contract {
* 合同维保付款日期2 * 合同维保付款日期2
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date maintainDate2; private LocalDate maintainDate2;
/** /**
* 合同维保付款比例3 * 合同维保付款比例3
...@@ -281,7 +282,7 @@ public class Contract { ...@@ -281,7 +282,7 @@ public class Contract {
* 合同维保付款日期3 * 合同维保付款日期3
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date maintainDate3; private LocalDate maintainDate3;
/** /**
* 维保进度款 * 维保进度款
...@@ -293,7 +294,7 @@ public class Contract { ...@@ -293,7 +294,7 @@ public class Contract {
* 维保进度款付款日期 * 维保进度款付款日期
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date maintainProgressDate; private LocalDate maintainProgressDate;
/** /**
* 维保验收款 * 维保验收款
...@@ -305,5 +306,5 @@ public class Contract { ...@@ -305,5 +306,5 @@ public class Contract {
* 维保验收款付款日期 * 维保验收款付款日期
*/ */
@TableField(exist = false) @TableField(exist = false)
private Date maintainAcceptanceDate; private LocalDate maintainAcceptanceDate;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,8 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -5,7 +5,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -47,9 +48,9 @@ public class ContractLog { ...@@ -47,9 +48,9 @@ public class ContractLog {
*/ */
@TableField(value = "rec_time") @TableField(value = "rec_time")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date recTime; private LocalDate recTime;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,8 @@ import vion.dto.ContractPaymentDTO; ...@@ -9,7 +9,8 @@ import vion.dto.ContractPaymentDTO;
import vion.vo.ContractPaymentVO; import vion.vo.ContractPaymentVO;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 合同收款方式 * 合同收款方式
...@@ -47,13 +48,13 @@ public class ContractPayment { ...@@ -47,13 +48,13 @@ public class ContractPayment {
* 收款日期 * 收款日期
*/ */
@TableField(value = "payment_date") @TableField(value = "payment_date")
private Date paymentDate; private LocalDate paymentDate;
/** /**
* 节点日期,指合同到这一阶段时的时间 * 节点日期,指合同到这一阶段时的时间
*/ */
@TableField(value = "node_date") @TableField(value = "node_date")
private Date nodeDate; private LocalDate nodeDate;
/** /**
* 创建者 * 创建者
...@@ -71,11 +72,11 @@ public class ContractPayment { ...@@ -71,11 +72,11 @@ public class ContractPayment {
* 创建时间 * 创建时间
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
private Date modifyTime; private LocalDateTime modifyTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,8 @@ import lombok.Setter; ...@@ -8,7 +8,8 @@ import lombok.Setter;
import vion.dto.DeliverLogDTO; import vion.dto.DeliverLogDTO;
import vion.vo.DeliverLogVO; import vion.vo.DeliverLogVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 项目交付人员日志 * 项目交付人员日志
...@@ -52,7 +53,7 @@ public class DeliverLog { ...@@ -52,7 +53,7 @@ public class DeliverLog {
* 日志日期 * 日志日期
*/ */
@TableField(value = "log_date") @TableField(value = "log_date")
private Date logDate; private LocalDate logDate;
/** /**
* 干系人 * 干系人
...@@ -82,11 +83,11 @@ public class DeliverLog { ...@@ -82,11 +83,11 @@ public class DeliverLog {
* 创建时间 * 创建时间
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,8 @@ import lombok.Setter; ...@@ -8,7 +8,8 @@ import lombok.Setter;
import vion.dto.DeliveryRecordDTO; import vion.dto.DeliveryRecordDTO;
import vion.vo.DeliveryRecordVO; import vion.vo.DeliveryRecordVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 发货记录表 * 发货记录表
...@@ -36,15 +37,21 @@ public class DeliveryRecord { ...@@ -36,15 +37,21 @@ public class DeliveryRecord {
@TableField(value = "contract_id") @TableField(value = "contract_id")
private Long contractId; private Long contractId;
/** 收货人 */ /**
* 收货人
*/
@TableField(value = "consignee") @TableField(value = "consignee")
private String consignee; private String consignee;
/** 收货地址 */ /**
* 收货地址
*/
@TableField(value = "address") @TableField(value = "address")
private String address; private String address;
/** 收货电话 */ /**
* 收货电话
*/
@TableField(value = "phone") @TableField(value = "phone")
private String phone; private String phone;
...@@ -52,13 +59,13 @@ public class DeliveryRecord { ...@@ -52,13 +59,13 @@ public class DeliveryRecord {
* 发货日期 * 发货日期
*/ */
@TableField(value = "ship_date") @TableField(value = "ship_date")
private Date shipDate; private LocalDate shipDate;
/** /**
* 到货签收日期 * 到货签收日期
*/ */
@TableField(value = "sign_date") @TableField(value = "sign_date")
private Date signDate; private LocalDate signDate;
/** /**
* 快递公司 * 快递公司
...@@ -87,11 +94,11 @@ public class DeliveryRecord { ...@@ -87,11 +94,11 @@ public class DeliveryRecord {
* 创建时间 * 创建时间
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,11 +5,11 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -5,11 +5,11 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
@TableName(value="tbl_dept_info") @TableName(value = "tbl_dept_info")
public class Dept { public class Dept {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
...@@ -18,9 +18,9 @@ public class Dept { ...@@ -18,9 +18,9 @@ public class Dept {
private Long parentId; private Long parentId;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -7,7 +7,8 @@ import lombok.Data; ...@@ -7,7 +7,8 @@ import lombok.Data;
import vion.dto.DeviceDTO; import vion.dto.DeviceDTO;
import vion.vo.DeviceVO; import vion.vo.DeviceVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 设备表 * 设备表
...@@ -68,7 +69,7 @@ public class Device { ...@@ -68,7 +69,7 @@ public class Device {
* 入库日期 * 入库日期
*/ */
@TableField(value = "rec_date") @TableField(value = "rec_date")
private Date recDate; private LocalDate recDate;
/** /**
* 备注 * 备注
...@@ -77,8 +78,8 @@ public class Device { ...@@ -77,8 +78,8 @@ public class Device {
private String remark; private String remark;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -4,12 +4,13 @@ import com.baomidou.mybatisplus.annotation.*; ...@@ -4,12 +4,13 @@ import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
* @date 2024/8/12 * @date 2024/8/12
*/ */
/** /**
* 设备变更日志表 * 设备变更日志表
*/ */
...@@ -39,5 +40,5 @@ public class DeviceLog { ...@@ -39,5 +40,5 @@ public class DeviceLog {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,11 +8,11 @@ import lombok.Getter; ...@@ -8,11 +8,11 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.DictionaryDTO; import vion.dto.DictionaryDTO;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
@TableName(value="tbl_dictionary_info") @TableName(value = "tbl_dictionary_info")
@AutoMappers({ @AutoMappers({
@AutoMapper(target = DictionaryDTO.class), @AutoMapper(target = DictionaryDTO.class),
}) })
...@@ -24,13 +24,17 @@ public class Dictionary { ...@@ -24,13 +24,17 @@ public class Dictionary {
private Integer key; private Integer key;
private String value; private String value;
private String remark; private String remark;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 更新时间 */ /**
* 更新时间
*/
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
...@@ -8,11 +8,11 @@ import lombok.Getter; ...@@ -8,11 +8,11 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.DictionaryTypeDTO; import vion.dto.DictionaryTypeDTO;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
@TableName(value="tbl_dictionary_type") @TableName(value = "tbl_dictionary_type")
@AutoMappers({ @AutoMappers({
@AutoMapper(target = DictionaryTypeDTO.class), @AutoMapper(target = DictionaryTypeDTO.class),
}) })
...@@ -24,13 +24,17 @@ public class DictionaryType { ...@@ -24,13 +24,17 @@ public class DictionaryType {
private String type; private String type;
private String remark; private String remark;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 更新时间 */ /**
* 更新时间
*/
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
...@@ -5,33 +5,49 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -5,33 +5,49 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* 工单操作记录 * 工单操作记录
*/ */
@Getter @Getter
@Setter @Setter
@TableName(value="tbl_fault_log") @TableName(value = "tbl_fault_log")
public class FaultLog { public class FaultLog {
/** 自增列 */ /**
* 自增列
*/
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** 门店id */ /**
* 门店id
*/
private Long storeId; private Long storeId;
/** 工单id */ /**
* 工单id
*/
private Long taskId; private Long taskId;
/** 操作者 */ /**
* 操作者
*/
private Long operator; private Long operator;
/** 操作内容 */ /**
* 操作内容
*/
private String content; private String content;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 备注 */ /**
* 备注
*/
private String remark; private String remark;
/** 工时 */ /**
* 工时
*/
private Double manHour; private Double manHour;
} }
...@@ -8,14 +8,14 @@ import lombok.Setter; ...@@ -8,14 +8,14 @@ import lombok.Setter;
import vion.dto.FileInfoDTO; import vion.dto.FileInfoDTO;
import vion.vo.FileInfoVO; import vion.vo.FileInfoVO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* 文件信息 * 文件信息
*/ */
@Getter @Getter
@Setter @Setter
@TableName(value="tbl_file_info") @TableName(value = "tbl_file_info")
@AutoMappers({ @AutoMappers({
@AutoMapper(target = FileInfoDTO.class), @AutoMapper(target = FileInfoDTO.class),
@AutoMapper(target = FileInfoVO.class), @AutoMapper(target = FileInfoVO.class),
...@@ -23,9 +23,13 @@ import java.util.Date; ...@@ -23,9 +23,13 @@ import java.util.Date;
public class FileInfo { public class FileInfo {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** 项目id */ /**
* 项目id
*/
private Long storeId; private Long storeId;
/** 文件扩展名 */ /**
* 文件扩展名
*/
private String type; private String type;
/** /**
* 文件来源 * 文件来源
...@@ -38,22 +42,38 @@ public class FileInfo { ...@@ -38,22 +42,38 @@ public class FileInfo {
* <br>24验收报告,25竣工图纸,26点位表,27项目总结,28前期勘察,29巡检报告,30结算资料,31启动会</br> * <br>24验收报告,25竣工图纸,26点位表,27项目总结,28前期勘察,29巡检报告,30结算资料,31启动会</br>
*/ */
private Integer sourceType; private Integer sourceType;
/** 文件来源id */ /**
* 文件来源id
*/
private Long sourceId; private Long sourceId;
/** 合同id */ /**
* 合同id
*/
private Long contractId; private Long contractId;
/** 文件名称 */ /**
* 文件名称
*/
@TableField(condition = SqlCondition.LIKE) @TableField(condition = SqlCondition.LIKE)
private String name; private String name;
/** 文件地址 */ /**
* 文件地址
*/
private String url; private String url;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
/** 备注 */ /**
* 备注
*/
private String remark; private String remark;
/** sha256 */ /**
* sha256
*/
private String sha256; private String sha256;
/** 上传人 */ /**
* 上传人
*/
private String uploader; private String uploader;
} }
...@@ -9,7 +9,7 @@ import vion.config.JsonbTypeHandler; ...@@ -9,7 +9,7 @@ import vion.config.JsonbTypeHandler;
import vion.dto.FormDTO; import vion.dto.FormDTO;
import vion.vo.FormVO; import vion.vo.FormVO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
...@@ -60,7 +60,7 @@ public class Form { ...@@ -60,7 +60,7 @@ public class Form {
* 签字时间 * 签字时间
*/ */
@TableField(value = "sign_time") @TableField(value = "sign_time")
private Date signTime; private LocalDateTime signTime;
/** /**
* 唯一uuid * 唯一uuid
...@@ -87,8 +87,8 @@ public class Form { ...@@ -87,8 +87,8 @@ public class Form {
private Long updateUser; private Long updateUser;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,8 @@ import lombok.Setter; ...@@ -8,7 +8,8 @@ import lombok.Setter;
import vion.dto.InspectDTO; import vion.dto.InspectDTO;
import vion.vo.InspectVO; import vion.vo.InspectVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 巡检信息 * 巡检信息
...@@ -21,40 +22,66 @@ import java.util.Date; ...@@ -21,40 +22,66 @@ import java.util.Date;
@AutoMapper(target = InspectDTO.class), @AutoMapper(target = InspectDTO.class),
}) })
public class Inspect { public class Inspect {
/** 自增列 */ /**
* 自增列
*/
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** 门店id */ /**
* 门店id
*/
private Long storeId; private Long storeId;
/** 巡检时间 */ /**
* 巡检时间
*/
@OrderBy @OrderBy
private Date inspectDate; private LocalDate inspectDate;
/** 巡检方式(0远程、1现场) */ /**
* 巡检方式(0远程、1现场)
*/
private Integer type; private Integer type;
/** 状态(0进行中、1待审核、2已完成、3、驳回) */ /**
* 状态(0进行中、1待审核、2已完成、3、驳回)
*/
private Integer status; private Integer status;
/** 巡检人 */ /**
* 巡检人
*/
private Integer inspectUser; private Integer inspectUser;
/** 审核人 */ /**
* 审核人
*/
private Integer reviewer; private Integer reviewer;
/** 巡检时间 */ /**
private Date finishDate; * 巡检时间
*/
private LocalDate finishDate;
/** 审核时间 */ /**
private Date auditDate; * 审核时间
*/
private LocalDate auditDate;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
/** 修改时间 */ /**
* 修改时间
*/
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
private Date modifyTime; private LocalDateTime modifyTime;
/** 备注 */ /**
* 备注
*/
private String remark; private String remark;
/** 集团id */ /**
* 集团id
*/
private Long accountId; private Long accountId;
} }
...@@ -9,7 +9,8 @@ import vion.dto.InvoiceDTO; ...@@ -9,7 +9,8 @@ import vion.dto.InvoiceDTO;
import vion.vo.InvoiceVO; import vion.vo.InvoiceVO;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
...@@ -36,7 +37,7 @@ public class Invoice { ...@@ -36,7 +37,7 @@ public class Invoice {
* 开票时间 * 开票时间
*/ */
@TableField(value = "invoicing_time") @TableField(value = "invoicing_time")
private Date invoicingTime; private LocalDate invoicingTime;
/** /**
* 发票金额 * 发票金额
...@@ -63,8 +64,8 @@ public class Invoice { ...@@ -63,8 +64,8 @@ public class Invoice {
private String serialNo; private String serialNo;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,8 @@ import vion.dto.PaymentDTO; ...@@ -9,7 +9,8 @@ import vion.dto.PaymentDTO;
import vion.vo.PaymentVO; import vion.vo.PaymentVO;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 收款记录表 * 收款记录表
...@@ -41,7 +42,7 @@ public class Payment { ...@@ -41,7 +42,7 @@ public class Payment {
* 收款时间 * 收款时间
*/ */
@TableField(value = "collection_time") @TableField(value = "collection_time")
private Date collectionTime; private LocalDate collectionTime;
/** /**
* 收款金额 * 收款金额
...@@ -56,8 +57,8 @@ public class Payment { ...@@ -56,8 +57,8 @@ public class Payment {
private String remark; private String remark;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ import lombok.Setter; ...@@ -8,7 +8,7 @@ import lombok.Setter;
import vion.dto.PointInfoDTO; import vion.dto.PointInfoDTO;
import vion.vo.PointInfoVO; import vion.vo.PointInfoVO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -236,8 +236,8 @@ public class PointInfo { ...@@ -236,8 +236,8 @@ public class PointInfo {
private String uuid; private String uuid;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ import lombok.Getter; ...@@ -6,7 +6,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -93,9 +93,9 @@ public class RContractProduct { ...@@ -93,9 +93,9 @@ public class RContractProduct {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ import lombok.Getter; ...@@ -8,7 +8,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.RContractStoreDTO; import vion.dto.RContractStoreDTO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
...@@ -53,12 +53,12 @@ public class RContractStore { ...@@ -53,12 +53,12 @@ public class RContractStore {
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -11,11 +11,12 @@ import lombok.Setter; ...@@ -11,11 +11,12 @@ import lombok.Setter;
import vion.dto.RContractTeamDTO; import vion.dto.RContractTeamDTO;
import vion.vo.RContractTeamVO; import vion.vo.RContractTeamVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 合同与施工队关联表 * 合同与施工队关联表
*/ */
@Getter @Getter
@Setter @Setter
@TableName(value = "r_contract_team") @TableName(value = "r_contract_team")
...@@ -55,13 +56,13 @@ public class RContractTeam { ...@@ -55,13 +56,13 @@ public class RContractTeam {
* 分配日期 * 分配日期
*/ */
@TableField(value = "assign_date") @TableField(value = "assign_date")
private Date assignDate; private LocalDate assignDate;
/** /**
* 完成日期 * 完成日期
*/ */
@TableField(value = "finish_date") @TableField(value = "finish_date")
private Date finishDate; private LocalDate finishDate;
/** /**
* 施工状态 * 施工状态
...@@ -88,8 +89,8 @@ public class RContractTeam { ...@@ -88,8 +89,8 @@ public class RContractTeam {
private String remark; private String remark;
@TableField(value = "create_time") @TableField(value = "create_time")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time") @TableField(value = "update_time")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,8 @@ import lombok.Getter; ...@@ -6,7 +6,8 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.BaseDTO; import vion.dto.BaseDTO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -54,9 +55,9 @@ public class RContractUser extends BaseDTO { ...@@ -54,9 +55,9 @@ public class RContractUser extends BaseDTO {
*/ */
@TableField(value = "enter_date") @TableField(value = "enter_date")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date enterDate; private LocalDate enterDate;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -32,9 +32,9 @@ public class RPointDevice { ...@@ -32,9 +32,9 @@ public class RPointDevice {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -38,9 +38,9 @@ public class RPointWx { ...@@ -38,9 +38,9 @@ public class RPointWx {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ import lombok.Getter; ...@@ -10,7 +10,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.BaseDTO; import vion.dto.BaseDTO;
import java.util.Date; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
...@@ -136,9 +136,9 @@ public class RRepairDevice extends BaseDTO { ...@@ -136,9 +136,9 @@ public class RRepairDevice extends BaseDTO {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ import lombok.Getter; ...@@ -8,7 +8,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.RRoleResourceDTO; import vion.dto.RRoleResourceDTO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -36,13 +36,17 @@ public class RRoleResource { ...@@ -36,13 +36,17 @@ public class RRoleResource {
@TableField(value = "resource_id") @TableField(value = "resource_id")
private Long resourceId; private Long resourceId;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 更新时间 */ /**
* 更新时间
*/
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ import lombok.Getter; ...@@ -6,7 +6,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.BaseDTO; import vion.dto.BaseDTO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* 项目干系人 * 项目干系人
...@@ -47,12 +47,12 @@ public class RStoreConfederate extends BaseDTO { ...@@ -47,12 +47,12 @@ public class RStoreConfederate extends BaseDTO {
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -32,9 +32,9 @@ public class RStoreTag { ...@@ -32,9 +32,9 @@ public class RStoreTag {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,15 +5,16 @@ import com.fasterxml.jackson.annotation.JsonFormat; ...@@ -5,15 +5,16 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
* @date 2023/12/27 * @date 2023/12/27
*/ */
/** /**
* 项目与用户关联表 * 项目与用户关联表
*/ */
@Getter @Getter
@Setter @Setter
@TableName(value = "r_store_user") @TableName(value = "r_store_user")
...@@ -43,11 +44,11 @@ public class RStoreUser { ...@@ -43,11 +44,11 @@ public class RStoreUser {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@OrderBy @OrderBy
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
@TableField(exist = false) @TableField(exist = false)
private RStoreUser[] storeUsers; private RStoreUser[] storeUsers;
......
...@@ -8,7 +8,7 @@ import lombok.Getter; ...@@ -8,7 +8,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.RUserRoleDTO; import vion.dto.RUserRoleDTO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -41,12 +41,12 @@ public class RUserRole { ...@@ -41,12 +41,12 @@ public class RUserRole {
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** /**
* 更新时间 * 更新时间
*/ */
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ import lombok.Getter; ...@@ -6,7 +6,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.BaseDTO; import vion.dto.BaseDTO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -39,9 +39,9 @@ public class RejectInfo extends BaseDTO { ...@@ -39,9 +39,9 @@ public class RejectInfo extends BaseDTO {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,8 @@ import lombok.Setter; ...@@ -8,7 +8,8 @@ import lombok.Setter;
import vion.dto.RepairRecDTO; import vion.dto.RepairRecDTO;
import vion.vo.RepairRecVO; import vion.vo.RepairRecVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -108,7 +109,7 @@ public class RepairRec { ...@@ -108,7 +109,7 @@ public class RepairRec {
* 发货日期 * 发货日期
*/ */
@TableField(value = "ship_date") @TableField(value = "ship_date")
private Date shipDate; private LocalDate shipDate;
/** /**
* 快递公司 * 快递公司
...@@ -144,8 +145,8 @@ public class RepairRec { ...@@ -144,8 +145,8 @@ public class RepairRec {
private String remark; private String remark;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,7 @@ import lombok.Setter; ...@@ -9,7 +9,7 @@ import lombok.Setter;
import vion.dto.ResourceDTO; import vion.dto.ResourceDTO;
import vion.vo.ResourceVO; import vion.vo.ResourceVO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -74,14 +74,18 @@ public class Resource { ...@@ -74,14 +74,18 @@ public class Resource {
@TableField(value = "remark") @TableField(value = "remark")
private String remark; private String remark;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 更新时间 */ /**
* 更新时间
*/
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,7 @@ import lombok.Setter; ...@@ -9,7 +9,7 @@ import lombok.Setter;
import vion.dto.RoleDTO; import vion.dto.RoleDTO;
import vion.vo.RoleVO; import vion.vo.RoleVO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* 角色表 * 角色表
...@@ -49,14 +49,18 @@ public class Role { ...@@ -49,14 +49,18 @@ public class Role {
@TableField(value = "remark") @TableField(value = "remark")
private String remark; private String remark;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 更新时间 */ /**
* 更新时间
*/
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,7 @@ import lombok.Setter; ...@@ -9,7 +9,7 @@ import lombok.Setter;
import vion.dto.ServiceOrderDTO; import vion.dto.ServiceOrderDTO;
import vion.vo.ServiceOrderVO; import vion.vo.ServiceOrderVO;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
...@@ -22,74 +22,116 @@ public class ServiceOrder { ...@@ -22,74 +22,116 @@ public class ServiceOrder {
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)
private Long id; private Long id;
/** 项目名称 */ /**
* 项目名称
*/
private String projectName; private String projectName;
/** 报修人 */ /**
* 报修人
*/
private String submitter; private String submitter;
/** 报修人手机号码 */ /**
* 报修人手机号码
*/
private String submitPhone; private String submitPhone;
/** 报修时间 */ /**
* 报修时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date submitTime; private LocalDateTime submitTime;
/** 维修人 */ /**
* 维修人
*/
private String repairPeople; private String repairPeople;
/** 维修人手机号码*/ /**
* 维修人手机号码
*/
private String repairPhone; private String repairPhone;
/** 部门 */ /**
* 部门
*/
private String dept; private String dept;
/** 服务方式(1.电话支持 2.远程服务 3.现场服务) */ /**
* 服务方式(1.电话支持 2.远程服务 3.现场服务)
*/
private Integer serviceType; private Integer serviceType;
/** 耗时 */ /**
* 耗时
*/
private Double time; private Double time;
/** 故障内容 */ /**
* 故障内容
*/
private String faultContent; private String faultContent;
/** 维修结果 */ /**
* 维修结果
*/
private String repairRes; private String repairRes;
/** 客户评价 */ /**
* 客户评价
*/
private String review; private String review;
/** 工单id */ /**
* 工单id
*/
private Long taskId; private Long taskId;
/** 服务单状态 */ /**
* 服务单状态
*/
private Integer state; private Integer state;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 更新时间 */ /**
* 更新时间
*/
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
/** 五星好评 */ /**
* 五星好评
*/
private Integer stars; private Integer stars;
/** 签字图片base64 */ /**
* 签字图片base64
*/
private String signPic; private String signPic;
/** 签字时间 */ /**
* 签字时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date signTime; private LocalDateTime signTime;
/** 完成时间 */ /**
* 完成时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date finishTime; private LocalDateTime finishTime;
/** 唯一id */ /**
* 唯一id
*/
private String unid; private String unid;
} }
...@@ -9,7 +9,7 @@ import vion.dto.SettlementDiffDTO; ...@@ -9,7 +9,7 @@ import vion.dto.SettlementDiffDTO;
import vion.vo.SettlementDiffVO; import vion.vo.SettlementDiffVO;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -72,5 +72,5 @@ public class SettlementDiff { ...@@ -72,5 +72,5 @@ public class SettlementDiff {
* 创建时间 * 创建时间
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,8 @@ import lombok.Setter; ...@@ -8,7 +8,8 @@ import lombok.Setter;
import vion.dto.SparePartDTO; import vion.dto.SparePartDTO;
import vion.vo.SparePartVO; import vion.vo.SparePartVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -101,7 +102,7 @@ public class SparePart { ...@@ -101,7 +102,7 @@ public class SparePart {
* 发货日期 * 发货日期
*/ */
@TableField(value = "ship_date") @TableField(value = "ship_date")
private Date shipDate; private LocalDate shipDate;
/** /**
* 快递公司 * 快递公司
...@@ -139,13 +140,15 @@ public class SparePart { ...@@ -139,13 +140,15 @@ public class SparePart {
@TableField(value = "uuid") @TableField(value = "uuid")
private String uuid; private String uuid;
/** 微信用户id */ /**
* 微信用户id
*/
@TableField(value = "openid") @TableField(value = "openid")
private String openid; private String openid;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,8 @@ import lombok.Setter; ...@@ -9,7 +9,8 @@ import lombok.Setter;
import vion.dto.StoreDTO; import vion.dto.StoreDTO;
import vion.vo.StoreVO; import vion.vo.StoreVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 门店信息 * 门店信息
...@@ -27,7 +28,7 @@ public class Store { ...@@ -27,7 +28,7 @@ public class Store {
/** /**
* 门店名称 * 门店名称
*/ */
@TableField(condition = "%s ILIKE CONCAT('%%',#{%s},'%%')") @TableField(condition = "%s ILIKE CONCAT('%%',#{%s},'%%')")
private String name; private String name;
/** /**
* 销售人 * 销售人
...@@ -59,14 +60,14 @@ public class Store { ...@@ -59,14 +60,14 @@ public class Store {
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
/** /**
* 备注 * 备注
...@@ -87,7 +88,7 @@ public class Store { ...@@ -87,7 +88,7 @@ public class Store {
* 立项日期 * 立项日期
*/ */
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date estDate; private LocalDate estDate;
/** /**
* 主合同id * 主合同id
...@@ -117,7 +118,7 @@ public class Store { ...@@ -117,7 +118,7 @@ public class Store {
/** /**
* 实际完成日期 * 实际完成日期
*/ */
private Date finishDate; private LocalDate finishDate;
/** /**
* 完成百分比 * 完成百分比
...@@ -142,7 +143,7 @@ public class Store { ...@@ -142,7 +143,7 @@ public class Store {
/** /**
* 计划完成日期 * 计划完成日期
*/ */
private Date planFinishDate; private LocalDate planFinishDate;
/** /**
* 项目规模 * 项目规模
......
...@@ -7,11 +7,12 @@ import lombok.Setter; ...@@ -7,11 +7,12 @@ import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import vion.dto.BaseDTO; import vion.dto.BaseDTO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* 项目日志表 * 项目日志表
*/ */
@Getter @Getter
@Setter @Setter
@TableName(value = "tbl_store_log") @TableName(value = "tbl_store_log")
...@@ -31,7 +32,7 @@ public class StoreLog extends BaseDTO { ...@@ -31,7 +32,7 @@ public class StoreLog extends BaseDTO {
@TableField(value = "log_date") @TableField(value = "log_date")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date logDate; private LocalDate logDate;
/** /**
* 记录人 * 记录人
...@@ -48,9 +49,9 @@ public class StoreLog extends BaseDTO { ...@@ -48,9 +49,9 @@ public class StoreLog extends BaseDTO {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@OrderBy @OrderBy
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ import lombok.Getter; ...@@ -6,7 +6,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.dto.BaseDTO; import vion.dto.BaseDTO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* @author HlQ * @author HlQ
...@@ -33,9 +33,9 @@ public class Tag extends BaseDTO { ...@@ -33,9 +33,9 @@ public class Tag extends BaseDTO {
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime; private LocalDateTime updateTime;
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,8 @@ import org.springframework.format.annotation.DateTimeFormat; ...@@ -10,7 +10,8 @@ import org.springframework.format.annotation.DateTimeFormat;
import vion.dto.TaskDTO; import vion.dto.TaskDTO;
import vion.vo.TaskVO; import vion.vo.TaskVO;
import java.util.Date; import java.time.LocalDate;
import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
...@@ -35,7 +36,7 @@ public class Task { ...@@ -35,7 +36,7 @@ public class Task {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@OrderBy(sort = 2) @OrderBy(sort = 2)
private Date repairTime; private LocalDateTime repairTime;
/** /**
* 故障类型 * 故障类型
*/ */
...@@ -64,7 +65,7 @@ public class Task { ...@@ -64,7 +65,7 @@ public class Task {
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date solveDate; private LocalDate solveDate;
/** /**
* 故障原因 * 故障原因
*/ */
...@@ -90,21 +91,21 @@ public class Task { ...@@ -90,21 +91,21 @@ public class Task {
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date expDate; private LocalDate expDate;
/** /**
* 创建时间 * 创建时间
*/ */
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
/** /**
* 备注 * 备注
......
...@@ -10,54 +10,76 @@ import org.springframework.format.annotation.DateTimeFormat; ...@@ -10,54 +10,76 @@ import org.springframework.format.annotation.DateTimeFormat;
import vion.dto.TaskTempDTO; import vion.dto.TaskTempDTO;
import vion.vo.TaskTempVO; import vion.vo.TaskTempVO;
import java.util.Date; import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
@TableName(value="tbl_task_temp") @TableName(value = "tbl_task_temp")
@AutoMappers({ @AutoMappers({
@AutoMapper(target = TaskTempVO.class), @AutoMapper(target = TaskTempVO.class),
@AutoMapper(target = TaskTempDTO.class), @AutoMapper(target = TaskTempDTO.class),
}) })
public class TaskTemp { public class TaskTemp {
@TableId(type= IdType.AUTO) @TableId(type = IdType.AUTO)
private Long id; private Long id;
/** 项目id */ /**
* 项目id
*/
private Long storeId; private Long storeId;
/** 项目名称(用户提交的名称) */ /**
* 项目名称(用户提交的名称)
*/
@TableField(condition = SqlCondition.LIKE) @TableField(condition = SqlCondition.LIKE)
private String storeName; private String storeName;
/** 报修时间 */ /**
* 报修时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@OrderBy(sort = 2) @OrderBy(sort = 2)
private Date repairTime; private LocalDateTime repairTime;
/** 故障说明 */ /**
* 故障说明
*/
private String faultDescription; private String faultDescription;
/** 报修人 */ /**
* 报修人
*/
@TableField(condition = SqlCondition.LIKE) @TableField(condition = SqlCondition.LIKE)
private String repairPeople; private String repairPeople;
/** 联系方式 */ /**
* 联系方式
*/
@TableField(condition = SqlCondition.LIKE) @TableField(condition = SqlCondition.LIKE)
private String repairPhone; private String repairPhone;
/** 状态(1待确认、2进行中、3已确认) */ /**
* 状态(1待确认、2进行中、3已确认)
*/
@OrderBy(asc = true, sort = 1) @OrderBy(asc = true, sort = 1)
private Integer status; private Integer status;
/** 操作人 */ /**
* 操作人
*/
private Long operator; private Long operator;
/** 创建时间 */ /**
* 创建时间
*/
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
/** 修改时间 */ /**
* 修改时间
*/
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
/** 备注 */ /**
* 备注
*/
private String remark; private String remark;
/** /**
...@@ -70,7 +92,9 @@ public class TaskTemp { ...@@ -70,7 +92,9 @@ public class TaskTemp {
*/ */
private String email; private String email;
/** 微信用户id */ /**
* 微信用户id
*/
private String openid; private String openid;
} }
...@@ -9,14 +9,14 @@ import lombok.Setter; ...@@ -9,14 +9,14 @@ import lombok.Setter;
import vion.dto.UserDTO; import vion.dto.UserDTO;
import vion.vo.UserVO; import vion.vo.UserVO;
import java.util.Date; import java.time.LocalDateTime;
/** /**
* 用户信息 * 用户信息
*/ */
@Getter @Getter
@Setter @Setter
@TableName(value="tbl_user_info") @TableName(value = "tbl_user_info")
@AutoMappers({ @AutoMappers({
@AutoMapper(target = UserDTO.class), @AutoMapper(target = UserDTO.class),
@AutoMapper(target = UserVO.class), @AutoMapper(target = UserVO.class),
...@@ -31,16 +31,20 @@ public class User { ...@@ -31,16 +31,20 @@ public class User {
private Long deptId; private Long deptId;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private LocalDateTime createTime;
@TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifyTime; private LocalDateTime modifyTime;
private String remark; private String remark;
/** 是否是预工单处理人 0:不是 1:是 */ /**
* 是否是预工单处理人 0:不是 1:是
*/
private Integer preWorkOrder; private Integer preWorkOrder;
/** 员工状态 2:试用期 3:正式 5:待离职 -1:无状态 */ /**
* 员工状态 2:试用期 3:正式 5:待离职 -1:无状态
*/
private Integer employeeStatus; private Integer employeeStatus;
/* 状态 0:正常 1:禁用 */ /* 状态 0:正常 1:禁用 */
......
...@@ -2,11 +2,12 @@ package vion.service; ...@@ -2,11 +2,12 @@ package vion.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import vion.model.DeviceLog; import vion.model.DeviceLog;
/**
/**
* @author HlQ * @author HlQ
* @date 2024/8/12 * @date 2024/8/12
*/ */
public interface IDeviceLogService extends IService<DeviceLog>{ public interface IDeviceLogService extends IService<DeviceLog> {
} }
package vion.service; package vion.service;
import vion.model.RContractProduct;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
/** import vion.model.RContractProduct;
/**
* @author HlQ * @author HlQ
* @date 2024/3/26 * @date 2024/3/26
*/ */
public interface IRContractProductService extends IService<RContractProduct>{ public interface IRContractProductService extends IService<RContractProduct> {
} }
package vion.service; package vion.service;
import vion.model.RContractStore;
import com.github.yulichang.base.MPJBaseService; import com.github.yulichang.base.MPJBaseService;
/** import vion.model.RContractStore;
/**
* @author HlQ * @author HlQ
* @date 2023/11/29 * @date 2023/11/29
*/ */
public interface IRContractStoreService extends MPJBaseService<RContractStore>{ public interface IRContractStoreService extends MPJBaseService<RContractStore> {
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!