فهرست منبع

1.资产业务-产品-取号流程以及相关接口调整

GouGengquan 1 سال پیش
والد
کامیت
609557072a

+ 11 - 4
biz-base/src/main/java/com/dayou/controller/AssetsController.java

@@ -1,9 +1,6 @@
 package com.dayou.controller;
 
-import com.dayou.dto.AssetsPrincipalMembersDTO;
-import com.dayou.dto.AssetsSelectDTO;
-import com.dayou.dto.TaskRecordDTO;
-import com.dayou.dto.WorkNodeCommit;
+import com.dayou.dto.*;
 import com.dayou.vo.AssetsOrderFundInvoiceVO;
 import com.dayou.vo.AssetsVO;
 import com.dayou.workflow.annotation.FinishTask;
@@ -125,5 +122,15 @@ public class AssetsController extends BaseController {
     public RestResponse<AssetsOrderFundInvoiceVO> getOrderFundInvoiceById(@PathVariable Long id) {
         return RestResponse.data(assetsService.getOrderFundInvoiceById(id));
     }
+
+    /**
+     * 资产业务产品取号
+     * @param dto 取号dto
+     * @return RestResponse<String>
+     */
+    @GetMapping("/takeAssetsProductionNo")
+    public RestResponse<String> takeAssetsProductionNo(@RequestBody TakeAssetsProductionNoDTO dto) {
+        return RestResponse.data(assetsService.takeAssetsProductionNo(dto));
+    }
 }
 

+ 51 - 0
biz-base/src/test/java/TestAssets.java

@@ -0,0 +1,51 @@
+import com.dayou.BaseApplication;
+import lombok.extern.slf4j.Slf4j;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+@Slf4j
+@SpringBootTest(classes = BaseApplication.class)
+@RunWith(value = SpringJUnit4ClassRunner.class)
+public class TestAssets {
+
+    @Test
+    public void test1(){
+        // 示例字符串列表,包含被短横线-后面的数字
+        List<String> stringList = Arrays.asList("item-123", "product-45号", "sample-6789号", "code-109898号");
+
+        // 初始化最大数字为Integer.MIN_VALUE
+        int maxNumber = Integer.MIN_VALUE;
+
+        // 正则表达式,用于匹配短横线-后面的数字
+        Pattern pattern = Pattern.compile("-(\\d+)");
+
+        // 遍历字符串列表
+        for (String str : stringList) {
+            // 创建匹配器
+            Matcher matcher = pattern.matcher(str);
+            // 在字符串中查找短横线后面的数字
+            while (matcher.find()) {
+                // 将找到的数字字符串转换为整数
+                int number = Integer.parseInt(matcher.group(1));
+                // 更新最大数字
+                if (number > maxNumber) {
+                    maxNumber = number;
+                }
+            }
+        }
+
+        // 输出最大数字
+        if (maxNumber == Integer.MIN_VALUE) {
+            System.out.println("没有找到数字或者输入的列表为空。");
+        } else {
+            System.out.println("最大的数字是: " + maxNumber);
+        }
+    }
+}

+ 7 - 0
dao/src/main/java/com/dayou/mapper/AssetsEvaluationTargetMapper.java

@@ -24,4 +24,11 @@ public interface AssetsEvaluationTargetMapper extends CustomBaseMapper<AssetsEva
      */
     List<AssetsEvaluationTargetVO> getAETargetListByAssetsId(@Param("id") Long id);
 
+    /**
+     * 评估对象添加产品号
+     * @param id 评估对象id
+     * @param productionNo 产品号
+     * @return BOolean
+     */
+    Boolean updateTargetProductionNo(@Param("id") Long id, @Param("productionNo") String productionNo);
 }

+ 14 - 0
dao/src/main/java/com/dayou/mapper/AssetsMapper.java

@@ -56,4 +56,18 @@ public interface AssetsMapper extends CustomBaseMapper<Assets> {
      * @return BusinessNumber
      */
     BusinessNumber getBusinessNum(@Param("takeType") String takeType, @Param("businessType") String businessType, @Param("year") Integer year);
+
+    /**
+     * 新增取号信息
+     * @param businessNumber 取号信息
+     * @return Boolean
+     */
+    Boolean addBusinessNum(BusinessNumber businessNumber);
+
+    /**
+     * 更新取号信息
+     * @param businessNumber 取号信息
+     * @return Boolean
+     */
+    Boolean updateBusinessNum(BusinessNumber businessNumber);
 }

+ 26 - 0
dao/src/main/java/com/dayou/mapper/AssetsProductionMapper.java

@@ -30,4 +30,30 @@ public interface AssetsProductionMapper extends CustomBaseMapper<AssetsProductio
      */
     AssetsProduction getProductionByBusinessId(@Param("businessId") Long businessId);
 
+    /**
+     * 获取产品号集合(用于判断下一个子号)
+     * @param businessId 业务id
+     * @param productionType 产品类型
+     * @return List<String>
+     */
+    List<String> getgetProductionNo(@Param("businessId") Long businessId, @Param("productionType") String productionType);
+
+    /**
+     * 跟新产品的产品号信息
+     * @param businessId 业务id
+     * @param productionType 产品类型
+     * @param productionNo 产品号
+     * @return Boolean
+     */
+    Boolean updateProductionNo(@Param("businessId") Long businessId, @Param("productionType") String productionType, @Param("productionNo") String productionNo);
+
+    /**
+     * 取子号情况下,再复制一份产品信息并添加
+     * @param businessId 业务id
+     * @param productionType 产品类型
+     * @param printCount 打印数量
+     * @return Boolean
+     */
+    Boolean copyProductionInfo(@Param("businessId") Long businessId, @Param("productionType") String productionType, @Param("printCount") Integer printCount);
+
 }

+ 10 - 1
dao/src/main/resources/mapper/AssetsEvaluationTargetMapper.xml

@@ -48,7 +48,8 @@
                type_name,
                (SELECT assets_evaluation_target_type.type_name FROM assets_evaluation_target_type WHERE assets_evaluation_target_type.id = target.evaluation_type_id) AS targetTypename,
                (SELECT assets_evaluation_target_type.type_name FROM assets_evaluation_target_type WHERE assets_evaluation_target_type.id = target.evaluation_type_sec_id) AS secTargetTypaName,
-               value_type.type_name AS valueTypeName
+               value_type.type_name AS valueTypeName,
+               production_no
         FROM assets_evaluation_target AS target
         LEFT JOIN assets_evaluation_target_purpose AS purpose ON purpose.id = target.evaluation_purpose_id
         LEFT JOIN assets_value_type AS value_type ON value_type.id = target.assets_value_id
@@ -56,4 +57,12 @@
         AND target.deleted = 0
     </select>
 
+    <!--评估对象添加产品号-->
+    <update id="updateTargetProductionNo">
+        UPDATE assets_evaluation_target
+        SET production_no = #{productionNo}
+        WHERE id = #{id}
+        AND deleted = 0
+    </update>
+
 </mapper>

+ 16 - 1
dao/src/main/resources/mapper/AssetsMapper.xml

@@ -269,7 +269,7 @@
 
     <!--根据业务类型与取号类型获取业务取号信息-->
     <select id="getBusinessNum" resultType="com.dayou.entity.BusinessNumber">
-        SELECT year, month, next_no
+        SELECT id, year, month, next_no
         FROM business_number
         WHERE take_type = #{takeType}
         AND business_type = #{businessType}
@@ -277,4 +277,19 @@
         AND deleted = 0
     </select>
 
+    <!--新增取号信息-->
+    <insert id="addBusinessNum">
+        INSERT INTO business_number(id, take_type, business_type, year, month, next_no)
+        VALUE (NULL, #{takeType}, #{businessType}, #{year}, #{month}, #{nextNo})
+    </insert>
+
+    <!--更新取号信息-->
+    <update id="updateBusinessNum">
+        UPDATE business_number
+        SET month = #{month},
+            next_no = #{nextNo}
+        WHERE id = #{id}
+    </update>
+
+
 </mapper>

+ 25 - 0
dao/src/main/resources/mapper/AssetsProductionMapper.xml

@@ -55,4 +55,29 @@
           AND deleted = 0
     </select>
 
+    <!--获取产品号集合(用于判断下一个子号)-->
+    <select id="getgetProductionNo" resultType="java.lang.String">
+        SELECT production_no
+        FROM assets_production
+        WHERE business_id = #{businessId}
+        AND production_type = #{productionType}
+        AND deleted = 0
+    </select>
+
+    <!--跟新产品的产品号信息-->
+    <update id="updateProductionNo">
+        UPDATE assets_production
+        SET production_no = #{productionNo}
+        WHERE deleted = 0
+        AND business_id = #{businessId}
+        AND production_type = #{productionType}
+        AND (production_no IS NULL OR production_no = '')
+    </update>
+
+    <!--取子号情况下,再复制一份产品信息并添加-->
+    <insert id="copyProductionInfo">
+        INSERT INTO assets_production(id, business_id, production_type, print_count)
+        VALUE (NULL, #{businessId}, #{productionType}, #{printCount})
+    </insert>
+
 </mapper>

+ 18 - 1
domain/src/main/java/com/dayou/dto/TakeAssetsProductionNoDTO.java

@@ -2,6 +2,8 @@ package com.dayou.dto;
 
 import lombok.Data;
 
+import java.util.List;
+
 @Data
 public class TakeAssetsProductionNoDTO {
 
@@ -16,8 +18,23 @@ public class TakeAssetsProductionNoDTO {
     private String productionType;
 
     /**
-     * 选择全部评估对象
+     * 是否还有未取号产品
+     */
+    private Boolean hasNotTakeNumTarget;
+
+    /**
+     * 是否选择全部评估对象
      */
     private Boolean selectAll;
 
+    /**
+     * 打印数量
+     */
+    private Integer printCount;
+
+    /**
+     * 评估对象id集合
+     */
+    private List<Long> targetIdList;
+
 }

+ 5 - 0
domain/src/main/java/com/dayou/entity/AssetsEvaluationTarget.java

@@ -134,5 +134,10 @@ public class AssetsEvaluationTarget extends BaseEntity {
     @ExportCell(columnName = "审核价格")
     private Double checkValue;
 
+    /**
+     * 资产产品id
+     */
+    private String productionNo;
+
 
 }

+ 178 - 26
service/src/main/java/com/dayou/service/impl/AssetsServiceImpl.java

@@ -4,10 +4,12 @@ import cn.hutool.core.util.ObjectUtil;
 import com.dayou.common.BaseEntity;
 import com.dayou.dto.*;
 import com.dayou.entity.Assets;
+import com.dayou.entity.AssetsEvaluationTarget;
 import com.dayou.entity.BusinessNumber;
 import com.dayou.exception.ErrorCode;
+import com.dayou.mapper.AssetsEvaluationTargetMapper;
 import com.dayou.mapper.AssetsMapper;
-import com.dayou.mapper.BusinessNumberMapper;
+import com.dayou.mapper.AssetsProductionMapper;
 import com.dayou.service.IAssetsService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.dayou.service.IBusinessNumberService;
@@ -18,8 +20,12 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
+import org.springframework.transaction.annotation.Transactional;
 
 import java.util.Calendar;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
 
 import static com.dayou.enums.MainBusinessEnum.ASSET_BUSINESS;
 import static com.dayou.enums.ProductionEnum.*;
@@ -45,22 +51,27 @@ public class AssetsServiceImpl extends ServiceImpl<AssetsMapper, Assets> impleme
     private AssetsMapper assetsMapper;
 
     @Autowired
-    private BusinessNumberMapper businessNumberMapper;
+    private AssetsProductionMapper assetsProductionMapper;
+
+    @Autowired
+    private AssetsEvaluationTargetMapper assetsEvaluationTargetMapper;
 
     /**
      * 条件查询资产任务列表
-     * @param page 分页条件
+     *
+     * @param page            分页条件
      * @param assetsSelectDTO 查询条件
      * @return Page<AssetsVO>
      */
     @Override
-    public Page<AssetsVO> selectPage(Page page, AssetsSelectDTO assetsSelectDTO){
+    public Page<AssetsVO> selectPage(Page page, AssetsSelectDTO assetsSelectDTO) {
         return assetsMapper.selectPage(page, assetsSelectDTO);
     }
 
     /**
      * 条件查询我的资产任务订单列表
-     * @param page 分页条件
+     *
+     * @param page            分页条件
      * @param assetsSelectDTO 查询条件
      * @return Page<AssetsVO>
      */
@@ -71,6 +82,7 @@ public class AssetsServiceImpl extends ServiceImpl<AssetsMapper, Assets> impleme
 
     /**
      * 根据业务id获取资产业务详情
+     *
      * @param id 业务id
      * @return AssetsVO
      */
@@ -83,29 +95,31 @@ public class AssetsServiceImpl extends ServiceImpl<AssetsMapper, Assets> impleme
 
     /**
      * 新增资产业务订单
+     *
      * @param assets 资产订单信息
      * @return Boolean
      */
     @Override
-    public WorkNodeCommit add(Assets assets){
+    public WorkNodeCommit add(Assets assets) {
         //获取项目编号
         assets.setOrderId(businessNumberService.takeOrderNumber());
         //新增订单信息
         this.save(assets);
         //发起流程
-        return workFlowService.openingOrder(ASSET_BUSINESS,assets.getId(),null,assets.getRemark());
+        return workFlowService.openingOrder(ASSET_BUSINESS, assets.getId(), null, assets.getRemark());
     }
 
     /**
      * 修改资产业务订单项目负责人与项目成员
+     *
      * @param taskRecordDTO 修改dto
      * @return Boolean
      */
     @Override
     public Boolean updatePrincipalAndMembers(TaskRecordDTO<AssetsPrincipalMembersDTO> taskRecordDTO) {
         AssetsPrincipalMembersDTO assetsPrincipalMembersDTO = taskRecordDTO.getTaskData();
-        if (ObjectUtil.isNull(assetsPrincipalMembersDTO.getPrincipalId()) && ObjectUtil.isNull(assetsPrincipalMembersDTO.getMembers())){
-            ErrorCode.throwBusinessException(ErrorCode.CUSTOM_ERROR,"项目负责人和项目参与人员不能为空。");
+        if (ObjectUtil.isNull(assetsPrincipalMembersDTO.getPrincipalId()) && ObjectUtil.isNull(assetsPrincipalMembersDTO.getMembers())) {
+            ErrorCode.throwBusinessException(ErrorCode.CUSTOM_ERROR, "项目负责人和项目参与人员不能为空。");
         }
         return this.update(new LambdaUpdateWrapper<Assets>().set(Assets::getMembers, assetsPrincipalMembersDTO.getMembers()).set(Assets::getPrincipalId, assetsPrincipalMembersDTO.getPrincipalId())
                 .eq(BaseEntity::getId, assetsPrincipalMembersDTO.getId()));
@@ -113,6 +127,7 @@ public class AssetsServiceImpl extends ServiceImpl<AssetsMapper, Assets> impleme
 
     /**
      * 根据业务id获取资产业务款项信息
+     *
      * @param id 业务id
      * @return AssetsOrderFundInvoiceVO
      */
@@ -122,46 +137,183 @@ public class AssetsServiceImpl extends ServiceImpl<AssetsMapper, Assets> impleme
     }
 
     @Override
-    public Boolean update(Assets assets){
-        return  this.updateById(assets);
+    public Boolean update(Assets assets) {
+        return this.updateById(assets);
     }
 
     @Override
-    public Boolean delete(Long id){
+    public Boolean delete(Long id) {
         //逻辑删除
         return this.removeById(id);
     }
 
     /**
      * 资产业务产品取号
-     * @param takeAssetsProductionNoDTO 取号dto
+     * 格式示例:川友预报字2024第0101-2号
+     *
+     * @param dto 取号dto
      * @return String
      */
+    @Transactional(rollbackFor = Exception.class)
     @Override
-    public String takeAssetsProductionNo(TakeAssetsProductionNoDTO takeAssetsProductionNoDTO) {
+    public String takeAssetsProductionNo(TakeAssetsProductionNoDTO dto) {
+        String productionNo = genProductionNo(dto);
+        //产品添加产品号
+        assetsProductionMapper.updateProductionNo(dto.getBusinessId(), dto.getProductionType(), productionNo);
+        //如果还有未取号评估对象,再添加一份同类型产品
+        if (!dto.getHasNotTakeNumTarget()){
+            assetsProductionMapper.copyProductionInfo(dto.getBusinessId(), dto.getProductionType(), dto.getPrintCount());
+        }
+        //评估对象添加产品号
+        for (Long id : dto.getTargetIdList()){
+            assetsEvaluationTargetMapper.updateTargetProductionNo(id, productionNo);
+        }
+        return null;
+    }
+
+    /**
+     * 生成资产产品号
+     * @param takeAssetsProductionNoDTO 取号dto
+     * @return String
+     */
+    public String genProductionNo(TakeAssetsProductionNoDTO takeAssetsProductionNoDTO) {
+        //获取年份
         Calendar calendar = Calendar.getInstance();
         int nowYear = calendar.get(Calendar.YEAR);
-        String productionNo = "(" + nowYear +")";;
-        //取号产品为意见书
-        if (takeAssetsProductionNoDTO.getProductionType().equals(STATEMENT.getCode())){
-            //获取取号信息
-            BusinessNumber businessNumber = assetsMapper.getBusinessNum(STATEMENT.getCode() + "_NUMBER", ASSET_BUSINESS.getCode(), nowYear);
+        String productionNo = "(" + nowYear + ")" + "第";
+
+        //获取资产产品取号信息
+        BusinessNumber businessNumber = assetsMapper.getBusinessNum(takeAssetsProductionNoDTO.getProductionType() + "_NUMBER", ASSET_BUSINESS.getCode(), nowYear);
+
+        //判断是否有取号信息
+        if (ObjectUtil.isNotNull(businessNumber)) { //取号信息不为空组合产品号
+            //判断两个进位是否都>9,具有两位数
+            if (businessNumber.getMonth() > 9 && businessNumber.getNextNo() > 9) {
+                productionNo = productionNo + businessNumber.getMonth() + businessNumber.getNextNo();
+            } else {
+                //第一进位小于10,前面多加一个0组成两位
+                if (businessNumber.getMonth() < 10) {
+                    productionNo = productionNo + "0" + businessNumber.getMonth() + businessNumber.getNextNo();
+                }
+                //第二进位小于10,前面多加一个0组成两位
+                if (businessNumber.getNextNo() < 10) {
+                    productionNo = productionNo + businessNumber.getMonth() + "0" + businessNumber.getNextNo();
+                }
+            }
+            //设置下一个产品号取号信息
+            if (businessNumber.getNextNo() < 99) {
+                businessNumber.setNextNo(businessNumber.getNextNo() + 1);
+            } else {
+                businessNumber.setMonth(businessNumber.getMonth() + 1);
+                businessNumber.setNextNo(1);
+            }
+            //更新取号信息
+            assetsMapper.updateBusinessNum(businessNumber);
+        } else { //为空插入取号规则信息,并重新获取
+            businessNumber = addBusinessNumber(takeAssetsProductionNoDTO.getProductionType() + "_NUMBER", ASSET_BUSINESS.getCode(), nowYear);
+            //判断两个进位是否都>9,具有两位数
+            if (businessNumber.getMonth() > 9 && businessNumber.getNextNo() > 9) {
+                productionNo = productionNo + businessNumber.getMonth() + businessNumber.getNextNo();
+            } else {
+                //第一进位小于10,前面多加一个0组成两位
+                if (businessNumber.getMonth() < 10) {
+                    productionNo = productionNo + "0" + businessNumber.getMonth() + businessNumber.getNextNo();
+                }
+                //第二进位小于10,前面多加一个0组成两位
+                if (businessNumber.getNextNo() < 10) {
+                    productionNo = productionNo + businessNumber.getMonth() + "0" + businessNumber.getNextNo();
+                }
+            }
+            //设置下一个产品号取号信息
+            if (businessNumber.getNextNo() < 99) {
+                businessNumber.setNextNo(businessNumber.getNextNo() + 1);
+            } else {
+                businessNumber.setMonth(businessNumber.getMonth() + 1);
+                businessNumber.setNextNo(1);
+            }
+            //更新取号信息
+            assetsMapper.updateBusinessNum(businessNumber);
+        }
+
+        //判断取号产品类型
+        if (takeAssetsProductionNoDTO.getProductionType().equals(STATEMENT.getCode())) { //取号产品为意见书
             productionNo = "川友预报字" + productionNo;
         } else if (takeAssetsProductionNoDTO.getProductionType().equals(REPORT.getCode())) { //取号产品为评估报告
-            productionNo = "川友评报字" + productionNo;;
+            productionNo = "川友评报字" + productionNo;
         } else if (takeAssetsProductionNoDTO.getProductionType().equals(CONSULT.getCode())) { //取号产品为咨询报告
-            productionNo = "川友咨报字" + productionNo;;
-        }else if (takeAssetsProductionNoDTO.getProductionType().equals(LETTER.getCode())) { //取号产品为意见函
-            productionNo = "川友字" + productionNo;;
+            productionNo = "川友咨报字" + productionNo;
+        } else if (takeAssetsProductionNoDTO.getProductionType().equals(LETTER.getCode())) { //取号产品为意见函
+            productionNo = "川友字" + productionNo;
+        } else { //都不是返回null
+            return null;
+        }
+
+        // 判断有无子号
+        if (takeAssetsProductionNoDTO.getSelectAll()) { //true 则选择了全部评估对象,仅主号无子号
+            return productionNo + "号";
+        } else { //false 选择了部分评估对象,有子号
+            return getProductionSecNum(productionNo, takeAssetsProductionNoDTO.getBusinessId(), takeAssetsProductionNoDTO.getProductionType());
+        }
+    }
+
+    /**
+     * 获取资产产品子号
+     *
+     * @param businessId     业务id
+     * @param productionType 业务类型
+     * @return String
+     */
+    public String getProductionSecNum(String productionNo, Long businessId, String productionType) {
+        // 根据资产业务id与产品类型获取产品号集合
+        List<String> productionNoList = assetsProductionMapper.getgetProductionNo(businessId, productionType);
+        // 判断同一资产业务的同一类型产品是否有生成过子号
+        if (ObjectUtil.isNotNull(productionNoList)) { //为null还没有生成过子号,生成第一个
+            return productionNo + "-1号";
+        } else { //不为null则说明已经生成过子号,找到目前最大的子号并生成下一个子号
+            // 初始化最大子号为Integer.MIN_VALUE
+            int maxNumber = Integer.MIN_VALUE;
+
+            // 正则表达式,用于匹配短横线-后面的数字
+            Pattern pattern = Pattern.compile("-(\\d+)");
+
+            // 遍历字符串列表
+            for (String str : productionNoList) {
+                // 创建匹配器
+                Matcher matcher = pattern.matcher(str);
+                // 在字符串中查找短横线后面的数字
+                while (matcher.find()) {
+                    // 将找到的子号从字符串转换为整数
+                    int secNum = Integer.parseInt(matcher.group(1));
+                    // 更新最大的子号
+                    if (secNum > maxNumber) {
+                        maxNumber = secNum;
+                    }
+                }
+            }
+            // 将找到的最大子号 + 1, 得到下一个子号
+            maxNumber = maxNumber + 1;
+            return productionNo + "-" + maxNumber + "号";
         }
-        return productionNo;
     }
 
-    public BusinessNumber addBusinessNumber(String takeType, String businessType, Integer year){
+    /**
+     * 新增资产取号信息,并返回
+     *
+     * @param takeType     取号类型(同产品类型)
+     * @param businessType 业务类型
+     * @param year         年份
+     * @return BusinessNumber
+     */
+    public BusinessNumber addBusinessNumber(String takeType, String businessType, Integer year) {
         BusinessNumber businessNumber = new BusinessNumber();
         businessNumber.setTakeType(takeType);
         businessNumber.setBusinessType(businessType);
         businessNumber.setYear(year);
-        return null;
+        businessNumber.setMonth(1);
+        businessNumber.setNextNo(1);
+        //新增
+        assetsMapper.addBusinessNum(businessNumber);
+        //查询
+        return assetsMapper.getBusinessNum(takeType, businessType, year);
     }
 }

+ 8 - 1
sql/update_sql.sql

@@ -264,4 +264,11 @@ ALTER TABLE assets_production MODIFY COLUMN production_no VARCHAR(128) NULL comm
   修改人:苟耕铨
  */
  # 修改注释
-ALTER TABLE assets_production MODIFY COLUMN production_no VARCHAR(128) NULL comment '产品号';
+ALTER TABLE assets_production MODIFY COLUMN production_no VARCHAR(128) NULL comment '产品号';
+
+/**
+  日期:2024-04-12
+  修改人:苟耕铨
+ */
+# 资产评估对象表新增字段
+ALTER TABLE `assets_evaluation_target` ADD production_no VARCHAR(128) NULL COMMENT '产品号';