Ver código fonte

施工台账

huangjn 3 anos atrás
pai
commit
83dfa81c4c

+ 34 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/dto/ConstructionLedgerDTO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.dto;
+
+import org.springblade.business.entity.ConstructionLedger;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class ConstructionLedgerDTO extends ConstructionLedger {
+	private static final long serialVersionUID = 1L;
+
+}

+ 85 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/entity/ConstructionLedger.java

@@ -0,0 +1,85 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.time.LocalDateTime;
+import org.springblade.core.mp.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 实体类
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+@Data
+@TableName("u_construction_ledger")
+@EqualsAndHashCode(callSuper = true)
+public class ConstructionLedger extends BaseEntity {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	* 施工桩号
+	*/
+		private String station;
+	/**
+	* 施工部位
+	*/
+		private String site;
+	/**
+	* 施工开始时间
+	*/
+		private LocalDateTime siteStartTime;
+	/**
+	* 施工结束时间
+	*/
+		private LocalDateTime siteEndTime;
+	/**
+	* 检测开始时间
+	*/
+		private LocalDateTime detectionStartTime;
+	/**
+	* 检测结束时间
+	*/
+		private LocalDateTime detectionEndTime;
+	/**
+	* 设计方量
+	*/
+		private String designVolume;
+	/**
+	* 实际方量
+	*/
+		private String actualVolume;
+	/**
+	* 是否含混凝土
+	*/
+		private Integer isBeton;
+	/**
+	* wbs节点ID
+	*/
+		private Long wbsId;
+	/**
+	* 合同段ID
+	*/
+		private Long contractId;
+
+
+}

+ 34 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/vo/ConstructionLedgerVO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.vo;
+
+import org.springblade.business.entity.ConstructionLedger;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 视图实体类
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class ConstructionLedgerVO extends ConstructionLedger {
+	private static final long serialVersionUID = 1L;
+
+}

+ 49 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/wrapper/ConstructionLedgerWrapper.java

@@ -0,0 +1,49 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.wrapper;
+
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import org.springblade.business.entity.ConstructionLedger;
+import org.springblade.business.vo.ConstructionLedgerVO;
+import java.util.Objects;
+
+/**
+ * 包装类,返回视图层所需的字段
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+public class ConstructionLedgerWrapper extends BaseEntityWrapper<ConstructionLedger, ConstructionLedgerVO>  {
+
+	public static ConstructionLedgerWrapper build() {
+		return new ConstructionLedgerWrapper();
+ 	}
+
+	@Override
+	public ConstructionLedgerVO entityVO(ConstructionLedger constructionLedger) {
+		ConstructionLedgerVO constructionLedgerVO = Objects.requireNonNull(BeanUtil.copy(constructionLedger, ConstructionLedgerVO.class));
+
+		//User createUser = UserCache.getUser(constructionLedger.getCreateUser());
+		//User updateUser = UserCache.getUser(constructionLedger.getUpdateUser());
+		//constructionLedgerVO.setCreateUserName(createUser.getName());
+		//constructionLedgerVO.setUpdateUserName(updateUser.getName());
+
+		return constructionLedgerVO;
+	}
+
+}

+ 129 - 0
blade-service/blade-business/src/main/java/org/springblade/business/controller/ConstructionLedgerController.java

@@ -0,0 +1,129 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.RequestParam;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.business.entity.ConstructionLedger;
+import org.springblade.business.vo.ConstructionLedgerVO;
+import org.springblade.business.wrapper.ConstructionLedgerWrapper;
+import org.springblade.business.service.IConstructionLedgerService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ *  控制器
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/constructionledger")
+@Api(value = "", tags = "接口")
+public class ConstructionLedgerController extends BladeController {
+
+	private final IConstructionLedgerService constructionLedgerService;
+
+	/**
+	 * 详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入constructionLedger")
+	public R<ConstructionLedgerVO> detail(ConstructionLedger constructionLedger) {
+		ConstructionLedger detail = constructionLedgerService.getOne(Condition.getQueryWrapper(constructionLedger));
+		return R.data(ConstructionLedgerWrapper.build().entityVO(detail));
+	}
+
+	/**
+	 * 分页 
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入constructionLedger")
+	public R<IPage<ConstructionLedgerVO>> list(ConstructionLedger constructionLedger, Query query) {
+		IPage<ConstructionLedger> pages = constructionLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(constructionLedger));
+		return R.data(ConstructionLedgerWrapper.build().pageVO(pages));
+	}
+
+
+	/**
+	 * 自定义分页 
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入constructionLedger")
+	public R<IPage<ConstructionLedgerVO>> page(ConstructionLedgerVO constructionLedger, Query query) {
+		IPage<ConstructionLedgerVO> pages = constructionLedgerService.selectConstructionLedgerPage(Condition.getPage(query), constructionLedger);
+		return R.data(pages);
+	}
+
+	/**
+	 * 新增 
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入constructionLedger")
+	public R save(@Valid @RequestBody ConstructionLedger constructionLedger) {
+		return R.status(constructionLedgerService.save(constructionLedger));
+	}
+
+	/**
+	 * 修改 
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入constructionLedger")
+	public R update(@Valid @RequestBody ConstructionLedger constructionLedger) {
+		return R.status(constructionLedgerService.updateById(constructionLedger));
+	}
+
+	/**
+	 * 新增或修改 
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入constructionLedger")
+	public R submit(@Valid @RequestBody ConstructionLedger constructionLedger) {
+		return R.status(constructionLedgerService.saveOrUpdate(constructionLedger));
+	}
+
+	
+	/**
+	 * 删除 
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 7)
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(constructionLedgerService.deleteLogic(Func.toLongList(ids)));
+	}
+
+	
+}

+ 42 - 0
blade-service/blade-business/src/main/java/org/springblade/business/mapper/ConstructionLedgerMapper.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.mapper;
+
+import org.springblade.business.entity.ConstructionLedger;
+import org.springblade.business.vo.ConstructionLedgerVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ *  Mapper 接口
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+public interface ConstructionLedgerMapper extends BaseMapper<ConstructionLedger> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param constructionLedger
+	 * @return
+	 */
+	List<ConstructionLedgerVO> selectConstructionLedgerPage(IPage page, ConstructionLedgerVO constructionLedger);
+
+}

+ 33 - 0
blade-service/blade-business/src/main/java/org/springblade/business/mapper/ConstructionLedgerMapper.xml

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.springblade.business.mapper.ConstructionLedgerMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="constructionLedgerResultMap" type="org.springblade.business.entity.ConstructionLedger">
+        <result column="id" property="id"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="status" property="status"/>
+        <result column="is_deleted" property="isDeleted"/>
+        <result column="station" property="station"/>
+        <result column="site" property="site"/>
+        <result column="site_start_time" property="siteStartTime"/>
+        <result column="site_end_time" property="siteEndTime"/>
+        <result column="detection_start_time" property="detectionStartTime"/>
+        <result column="detection_end_time" property="detectionEndTime"/>
+        <result column="design_volume" property="designVolume"/>
+        <result column="actual_volume" property="actualVolume"/>
+        <result column="is_beton" property="isBeton"/>
+        <result column="wbs_id" property="wbsId"/>
+        <result column="contract_id" property="contractId"/>
+    </resultMap>
+
+
+    <select id="selectConstructionLedgerPage" resultMap="constructionLedgerResultMap">
+        select * from u_construction_ledger where is_deleted = 0
+    </select>
+
+</mapper>

+ 41 - 0
blade-service/blade-business/src/main/java/org/springblade/business/service/IConstructionLedgerService.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.service;
+
+import org.springblade.business.entity.ConstructionLedger;
+import org.springblade.business.vo.ConstructionLedgerVO;
+import org.springblade.core.mp.base.BaseService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ *  服务类
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+public interface IConstructionLedgerService extends BaseService<ConstructionLedger> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param constructionLedger
+	 * @return
+	 */
+	IPage<ConstructionLedgerVO> selectConstructionLedgerPage(IPage<ConstructionLedgerVO> page, ConstructionLedgerVO constructionLedger);
+
+}

+ 41 - 0
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/ConstructionLedgerServiceImpl.java

@@ -0,0 +1,41 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.business.service.impl;
+
+import org.springblade.business.entity.ConstructionLedger;
+import org.springblade.business.vo.ConstructionLedgerVO;
+import org.springblade.business.mapper.ConstructionLedgerMapper;
+import org.springblade.business.service.IConstructionLedgerService;
+import org.springblade.core.mp.base.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ *  服务实现类
+ *
+ * @author BladeX
+ * @since 2022-05-23
+ */
+@Service
+public class ConstructionLedgerServiceImpl extends BaseServiceImpl<ConstructionLedgerMapper, ConstructionLedger> implements IConstructionLedgerService {
+
+	@Override
+	public IPage<ConstructionLedgerVO> selectConstructionLedgerPage(IPage<ConstructionLedgerVO> page, ConstructionLedgerVO constructionLedger) {
+		return page.setRecords(baseMapper.selectConstructionLedgerPage(page, constructionLedger));
+	}
+
+}

+ 10 - 0
blade-service/blade-business/src/main/java/sql/constructionledger.menu.sql

@@ -0,0 +1,10 @@
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1528552414985728002', 1123598815738675201, 'constructionledger', '施工台账', 'menu', '/ConstructionLedger/constructionledger', NULL, 1, 1, 0, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1528552414985728003', '1528552414985728002', 'constructionledger_add', '新增', 'add', '/ConstructionLedger/constructionledger/add', 'plus', 1, 2, 1, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1528552414985728004', '1528552414985728002', 'constructionledger_edit', '修改', 'edit', '/ConstructionLedger/constructionledger/edit', 'form', 2, 2, 2, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1528552414985728005', '1528552414985728002', 'constructionledger_delete', '删除', 'delete', '/api/ConstructionLedger/constructionledger/remove', 'delete', 3, 2, 3, 1, NULL, 0);
+INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
+VALUES ('1528552414985728006', '1528552414985728002', 'constructionledger_view', '查看', 'view', '/ConstructionLedger/constructionledger/view', 'file-text', 4, 2, 2, 1, NULL, 0);

+ 47 - 0
blade-service/blade-business/src/main/java/sql/u_construction_ledger.sql

@@ -0,0 +1,47 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : localhost
+ Source Server Type    : MySQL
+ Source Server Version : 50651
+ Source Host           : localhost:3306
+ Source Schema         : bladex
+
+ Target Server Type    : MySQL
+ Target Server Version : 50651
+ File Encoding         : 65001
+
+ Date: 23/05/2022 09:53:39
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for u_construction_ledger
+-- ----------------------------
+DROP TABLE IF EXISTS `u_construction_ledger`;
+CREATE TABLE `u_construction_ledger`  (
+  `id` bigint(64) NOT NULL COMMENT '主键',
+  `station` varchar(0) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '施工桩号',
+  `site` varchar(0) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '施工部位',
+  `site_start_time` datetime NULL DEFAULT NULL COMMENT '施工开始时间',
+  `site_end_time` datetime NULL DEFAULT NULL COMMENT '施工结束时间',
+  `detection_start_time` datetime NULL DEFAULT NULL COMMENT '检测开始时间',
+  `detection_end_time` datetime NULL DEFAULT NULL COMMENT '检测结束时间',
+  `design_volume` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计方量',
+  `actual_volume` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实际方量',
+  `is_beton` int(2) NULL DEFAULT NULL COMMENT '是否含混凝土',
+  `wbs_id` bigint(64) NULL DEFAULT NULL COMMENT 'wbs节点ID',
+  `contract_id` bigint(64) NULL DEFAULT NULL COMMENT '合同段ID',
+  `create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人',
+  `create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建人所在部门',
+  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
+  `update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人',
+  `update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
+  `status` int(10) NULL DEFAULT NULL COMMENT '状态',
+  `is_deleted` int(10) NULL DEFAULT NULL COMMENT '是否已删除',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;
+
+SET FOREIGN_KEY_CHECKS = 1;

+ 55 - 0
blade-service/blade-business/src/main/java/sql/u_weather_info.sql

@@ -0,0 +1,55 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : localhost
+ Source Server Type    : MySQL
+ Source Server Version : 50651
+ Source Host           : localhost:3306
+ Source Schema         : bladex
+
+ Target Server Type    : MySQL
+ Target Server Version : 50651
+ File Encoding         : 65001
+
+ Date: 12/05/2022 10:20:33
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for u_weather_info
+-- ----------------------------
+DROP TABLE IF EXISTS `u_weather_info`;
+CREATE TABLE `u_weather_info`  (
+  `id` bigint(64) NOT NULL COMMENT '主键',
+  `contract_area_id` bigint(64) NOT NULL COMMENT '合同段区域ID',
+  `weather` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '天气',
+  `air_temp` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '平均气温',
+  `record_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '天气记录日期',
+  `temp_high` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最高气温',
+  `temp_low` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最低气温',
+  `wind_level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '风力等级',
+  `create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人',
+  `create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建人部门',
+  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+  `update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人',
+  `update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
+  `status` int(10) NULL DEFAULT NULL COMMENT '状态',
+  `is_deleted` int(10) NOT NULL DEFAULT 0 COMMENT '是否已删除',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;
+
+-- ----------------------------
+-- Records of u_weather_info
+-- ----------------------------
+INSERT INTO `u_weather_info` VALUES (1523552071482818562, 12332112345678, '阵雨', '24.5', '2022-05-09 00:05:00', '28', '21', '2级', -1, -1, '2022-05-09 14:34:54', -1, NULL, -1, 0);
+INSERT INTO `u_weather_info` VALUES (1523552483216670722, 12332112345678, '晴', '33', '2022-05-08 00:05:00', '36', '30', '3级', NULL, NULL, '2022-05-09 14:36:32', NULL, NULL, NULL, 0);
+INSERT INTO `u_weather_info` VALUES (1523552574614749186, 12332112345678, '晴', '33', '2022-05-07 00:05:00', '35', '31', '3级', NULL, NULL, '2022-05-09 14:36:54', NULL, NULL, NULL, 0);
+INSERT INTO `u_weather_info` VALUES (1523552637151821825, 12332112345678, '晴', '30', '2022-05-06 00:05:00', '31', '29', '3级', NULL, NULL, '2022-05-09 14:37:09', NULL, NULL, NULL, 0);
+INSERT INTO `u_weather_info` VALUES (1523553308185935874, 12332112345678, '晴', '28', '2022-05-05 00:05:00', '30', '26', '3级', NULL, NULL, '2022-05-09 14:39:49', NULL, NULL, NULL, 0);
+INSERT INTO `u_weather_info` VALUES (1523553633374519298, 12332112345678, '晴', '28', '2022-05-04 00:00:00', '30', '26', '3级', NULL, NULL, '2022-05-09 14:41:07', NULL, NULL, NULL, 0);
+INSERT INTO `u_weather_info` VALUES (1523553852271050753, 12332112345678, '晴', '33', '2022-05-03 00:00:00', '36', '30', '3级', NULL, NULL, '2022-05-09 14:41:59', NULL, NULL, NULL, 0);
+INSERT INTO `u_weather_info` VALUES (1523938395046006785, 12332112345678, '多云', '24', '2022-05-10 00:00:00', '29', '19', '2级', NULL, NULL, '2022-05-10 16:10:01', NULL, NULL, NULL, 0);
+
+SET FOREIGN_KEY_CHECKS = 1;