Browse Source

add 商品新增和列表展示 以及修改删除

bzd_lxf 6 months ago
parent
commit
d11c862685

+ 240 - 0
health-admin/src/main/java/com/bzd/web/controller/spgl/SPConfigInfoController.java

@@ -0,0 +1,240 @@
+package com.bzd.web.controller.spgl;
+
+import com.bzd.common.annotation.Log;
+import com.bzd.common.config.dao.PageData;
+import com.bzd.common.core.controller.BaseController;
+import com.bzd.common.core.domain.AjaxResult;
+import com.bzd.common.core.page.TableDataInfo;
+import com.bzd.common.enums.BusinessType;
+import com.bzd.common.utils.StringUtils;
+import com.bzd.system.service.spgl.SPProductinfoService;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.json.JSONObject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.util.HashMap;
+import java.util.List;
+
+import static com.bzd.common.config.dao.ConfigFile.result;
+
+/**
+ *
+ * 门店积分商品列表 前端控制器Controller
+ * @author LiXiangFei
+ * @since 2024-12-17
+ */
+@Controller
+@RequestMapping(value = "sp/sp")
+public class SPConfigInfoController extends BaseController {
+
+    // 页面跳转前缀
+    private String prefix = "spgl";
+
+    @Autowired
+    private SPProductinfoService sPProductinfoService;
+
+    @RequiresPermissions("sp:sp:view")
+    @GetMapping("/SPProductinfoListView")
+    public String SPProductinfoListView() {
+        return prefix + "/SPProductinfoList";
+    }
+
+    @RequiresPermissions("sp:sp:list")
+    @PostMapping("/SPProductinfoList")
+    @ResponseBody
+    public TableDataInfo SPProductinfoList() throws Exception {
+        PageData pd = this.getPageData();
+        startPage();
+        List<PageData> pageData = sPProductinfoService.findSPProductinfoList(pd);
+        return getDataTable(pageData);
+    }
+
+    @RequiresPermissions("sp:sp:add")
+    @GetMapping("/SPProductAdd")
+    public String SPProductAdd() throws Exception {
+        return prefix + "/SPProductAdd";
+    }
+
+    @RequiresPermissions("sp:sp:add")
+    @GetMapping("/SPProductEdit/{id}")
+    public String SPProductEdit(@PathVariable("id") Long id, ModelMap mmap) throws Exception {
+        PageData pd = this.getPageData();
+        pd.put("id", id);
+        PageData pageData = sPProductinfoService.findAllList(pd);
+        mmap.putAll(pageData);;
+        return prefix + "/SPProductEdit";
+    }
+
+    @RequiresPermissions("dtp:sp:add")
+    @PostMapping("/ProductAdd")
+    @ResponseBody
+    public AjaxResult ProductAdd() {
+        try {
+            PageData pd = this.getPageData();
+            // 直接service 保存
+            List<PageData> pageData = sPProductinfoService.findSPProductinfoList(pd);
+            if (pageData.size() > 0){
+                return AjaxResult.error("商品编号已存在");
+            }
+            Integer result = sPProductinfoService.productAdd(pd);
+            if (result == 1) {
+                return AjaxResult.success("新增成功");
+            } else {
+                logger.error("Failed to update 表ProductAdd with ID: {}", pd.get("id"));
+                return AjaxResult.error("新增失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error("添加失败 请联系管理员");
+        }
+    }
+
+    @RequiresPermissions("dtp:sp:edit")
+    @PostMapping("/ProductUpdate")
+    @ResponseBody
+    public AjaxResult ProductUpdate() {
+        try {
+            PageData pd = this.getPageData();
+            Integer result = sPProductinfoService.ProductUpdate(pd);
+            if (result == 1) {
+                return AjaxResult.success("修改成功");
+            } else {
+                logger.error("Failed to update 表ProductUpdate with ID: {}", pd.get("id"));
+                return AjaxResult.error("修改失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error("修改失败 请联系管理员");
+        }
+    }
+    @RequiresPermissions("dtp:sp:add")
+    @PostMapping("/ProductAdd2")
+    @ResponseBody
+    public AjaxResult ProductAdd2() {
+        try {
+            PageData pd = this.getPageData();
+            // 直接service 保存
+            Integer result = sPProductinfoService.productAdd2(pd);
+            if (result == 1) {
+                return AjaxResult.success("新增成功");
+            } else {
+                logger.error("Failed to update 表ProductAdd2 with ID: {}", pd.get("id"));
+                return AjaxResult.error("新增失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error();
+        }
+    }
+    @RequiresPermissions("dtp:sp:add")
+    @PostMapping("/ProductAdd3")
+    @ResponseBody
+    public AjaxResult ProductAdd3() {
+        try {
+            PageData pd = this.getPageData();
+            // 直接service 保存
+            Integer result = sPProductinfoService.productAdd3(pd);
+            if (result == 1) {
+                return AjaxResult.success("新增成功");
+            } else {
+                logger.error("Failed to update 表ProductAdd3 with ID: {}", pd.get("id"));
+                return AjaxResult.error("新增失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error();
+        }
+    }
+    @RequiresPermissions("dtp:sp:add")
+    @PostMapping("/ProductAdd4")
+    @ResponseBody
+    public AjaxResult ProductAdd4() {
+        try {
+            PageData pd = this.getPageData();
+            // 直接service 保存
+            Integer result = sPProductinfoService.productAdd4(pd);
+            if (result == 1) {
+                return AjaxResult.success("新增成功");
+            } else {
+                logger.error("Failed to update 表ProductAdd4 with ID: {}", pd.get("id"));
+                return AjaxResult.error("新增失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error();
+        }
+    }
+    @RequiresPermissions("dtp:sp:add")
+    @PostMapping("/ProductAdd5")
+    @ResponseBody
+    public AjaxResult ProductAdd5() {
+        try {
+            PageData pd = this.getPageData();
+            // 直接service 保存
+            Integer result = sPProductinfoService.productAdd5(pd);
+            if (result == 1) {
+                return AjaxResult.success("新增成功");
+            } else {
+                logger.error("Failed to update 表ProductAdd5 with ID: {}", pd.get("id"));
+                return AjaxResult.error("新增失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error();
+        }
+    }
+    @RequiresPermissions("dtp:sp:add")
+    @PostMapping("/ProductAdd6")
+    @ResponseBody
+    public AjaxResult ProductAdd6() {
+        try {
+            PageData pd = this.getPageData();
+            // 直接service 保存
+            Integer result = sPProductinfoService.productAdd6(pd);
+            if (result == 1) {
+                return AjaxResult.success("新增成功");
+            } else {
+                logger.error("Failed to update 表ProductAdd6 with ID: {}", pd.get("id"));
+                return AjaxResult.error("新增失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error();
+        }
+    }
+
+    @RequiresPermissions("dtp:sp:add")
+    @PostMapping("/ProductAdd12")
+    @ResponseBody
+    public AjaxResult ProductAdd12() {
+        try {
+            PageData pd = this.getPageData();
+            // 直接service 保存
+            Integer result = sPProductinfoService.productAdd12(pd);
+            if (result == 1) {
+                return AjaxResult.success("新增成功");
+            } else {
+                logger.error("Failed to update 表ProductAdd12 with ID: {}", pd.get("id"));
+                return AjaxResult.error("新增失败");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return AjaxResult.error();
+        }
+    }
+
+    @RequiresPermissions("sp:sp:remove")
+    @Log(title = "新增配置删除", businessType = BusinessType.DELETE)
+    @PostMapping("/SPProductRemove")
+    @ResponseBody
+    public AjaxResult SPProductRemove() throws Exception {
+        PageData pd = this.getPageData();
+        Integer integer = sPProductinfoService.SPProductinfoRemove(pd);
+        return toAjax(integer);
+    }
+
+}

+ 2 - 23
health-admin/src/main/resources/banner.txt

@@ -1,24 +1,3 @@
-Application Version: ${bzd.version}
+Application Version: ${health.version}
 Spring Boot Version: ${spring-boot.version}
-////////////////////////////////////////////////////////////////////
-//                          _ooOoo_                               //
-//                         o8888888o                              //
-//                         88" . "88                              //
-//                         (| ^_^ |)                              //
-//                         O\  =  /O                              //
-//                      ____/`---'\____                           //
-//                    .'  \\|     |//  `.                         //
-//                   /  \\|||  :  |||//  \                        //
-//                  /  _||||| -:- |||||-  \                       //
-//                  |   | \\\  -  /// |   |                       //
-//                  | \_|  ''\---/''  |   |                       //
-//                  \  .-\__  `-`  ___/-. /                       //
-//                ___`. .'  /--.--\  `. . ___                     //
-//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
-//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
-//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
-//      ========`-.____`-.___\_____/___.-`____.-'========         //
-//                           `=---='                              //
-//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
-//             佛祖保佑       永不宕机      永无BUG               //
-////////////////////////////////////////////////////////////////////
+//////////项目启动中//////////

+ 1 - 1
health-admin/src/main/resources/static/health/js/input-styles.js

@@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", function() {
         var initialValue = input.getAttribute('data-default-value') || ''; // 获取默认值,默认为空字符串
         input.addEventListener('change', function() {
             var currentValue = this.value;
-            console.log("初始值", initialValue,"输入的值",currentValue,"结果 ",currentValue !== initialValue)
+            //console.log("初始值", initialValue,"输入的值",currentValue,"结果 ",currentValue !== initialValue)
             if (currentValue !== '') {
                 this.classList.remove('changed');
                 // 当值改变时,添加一个类来标识

+ 1682 - 0
health-admin/src/main/resources/templates/spgl/SPProductAdd.html

@@ -0,0 +1,1682 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
+<head>
+    <th:block th:include="include :: header('档案明细')" />
+</head>
+<style>
+
+</style>
+<script>
+
+</script>
+<body>
+<div class="ui-layout-center">
+    <h4 class="form-header h4">商品详情</h4>
+    <div class="col-sm-12">
+        <div class="tabs-container">
+            <ul class="nav nav-tabs" id="myTabs3">
+                <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 基本信息</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-12" aria-expanded="false">DTP属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">采购属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false" >物流属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">质管属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">销售属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">业态属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-7" aria-expanded="false">图片属性</a>
+                </li>
+                <!-- 下面再看 先把上面的弄完-->
+                <li class=""><a data-toggle="tab" href="#tab-8" aria-expanded="false">处方属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-9" aria-expanded="false">D值配置属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-10" aria-expanded="false">说明书属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-11" aria-expanded="false">知识库属性</a>
+                </li>
+
+            </ul>
+            <div class="tab-content">
+                <!-- 基本信息 -->
+                <div id="tab-1" class="tab-pane active">
+                    <form class="customize-search-form" id="form-server-edit1" >
+                        <!-- 商品编码 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品编码:</label>
+                            <input type="text" name="product_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品名称 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品名称:</label>
+                            <input type="text" name="product_name" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 助记码 -->
+                        <div class="customize-form-group edit">
+                            <label>助记码:</label>
+                            <input type="text" name="mnemonic_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品描述 -->
+                        <div class="customize-form-group edit">
+                            <label>商品描述:</label>
+                            <textarea name="product_description" class="styled-input edit_inputs"  th:text="${product_description}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 通用名 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">通用名:</label>
+                            <input type="text" name="generic_name" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 通用名助记码 -->
+                        <div class="customize-form-group edit">
+                            <label>通用名助记码:</label>
+                            <input type="text" name="generic_mnemonic_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 通用名曾用名 -->
+                        <div class="customize-form-group edit">
+                            <label>通用名曾用名:</label>
+                            <input type="text" name="generic_previous_names" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本计量单位 -->
+                        <div class="customize-form-group edit">
+                            <label>基本计量单位:</label>
+                            <input type="text" name="base_unit" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商标 -->
+                        <div class="customize-form-group edit">
+                            <label>商标:</label>
+                            <input type="text" name="trademark" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 规格 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">规格:</label>
+                            <input type="text" name="specification" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                        <!-- 包装 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">包装:</label>
+                            <input type="text" name="packaging" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国际条形码 (EAN-13) -->
+                        <div class="customize-form-group edit">
+                            <label>国际条形码 (EAN-13):</label>
+                            <input type="text" name="international_barcode" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 生产厂家 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">生产厂家:</label>
+                            <input type="text" name="manufacturer" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 委托厂家 -->
+                        <div class="customize-form-group edit">
+                            <label>委托厂家:</label>
+                            <input type="text" name="entrusted_manufacturer" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 厂家缩写 -->
+                        <div class="customize-form-group edit">
+                            <label>厂家缩写:</label>
+                            <input type="text" name="manufacturer_abbreviation" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 产地 -->
+                        <div class="customize-form-group edit">
+                            <label>产地:</label>
+                            <input type="text" name="origin" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品大类 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品大类:</label>
+                            <input type="text" name="category_maj" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品子类 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品子类:</label>
+                            <input type="text" name="category_min" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品类型 -->
+                        <div class="customize-form-group edit">
+                            <label>商品类型:</label>
+                            <input type="text" name="product_type" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品状态 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品状态:</label>
+                            <input type="text" name="product_status" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 进项税率 -->
+                        <div class="customize-form-group edit">
+                            <label>进项税率:</label>
+                            <input type="text" name="purchase_tax_rate" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 销项税率 -->
+                        <div class="customize-form-group edit">
+                            <label>销项税率:</label>
+                            <input type="text" name="sales_tax_rate" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 进口/国产商品 -->
+                        <div class="customize-form-group edit">
+                            <label>进口/国产商品:</label>
+                            <select name="import_export_status" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
+                                <option value="">--  是(进口) / 否(国产)请选择  --</option>
+                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品大类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品大类:</label>
+                            <input type="text" name="major_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品中类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品中类:</label>
+                            <input type="text" name="medium_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品小类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品小类:</label>
+                            <input type="text" name="minor_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品子类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品子类:</label>
+                            <input type="text" name="sub_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 成分 -->
+                        <div class="customize-form-group edit">
+                            <label>成分:</label>
+                            <input type="text" name="ingredients" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- DTP商品标识 -->
+                        <div class="customize-form-group edit">
+                            <label>DTP商品标识:</label>
+                            <select name="dtp_flag" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 日标准消耗量 -->
+                        <div class="customize-form-group edit">
+                            <label>日标准消耗量:</label>
+                            <input type="text" name="daily_standard_consumption" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 疑似重复 -->
+                        <div class="customize-form-group edit">
+                            <label>疑似重复:</label>
+                            <input type="text" name="duplicate_suspected" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 替代编码 -->
+                        <div class="customize-form-group edit">
+                            <label>替代编码:</label>
+                            <input type="text" name="alternative_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 上市许可持有人/注册人/备案人 -->
+                        <div class="customize-form-group edit">
+                            <label>上市许可持有人/注册人/备案人:</label>
+                            <input type="text" name="marketing_authorization_holder" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 用药天数 -->
+                        <div class="customize-form-group edit">
+                            <label>用药天数:</label>
+                            <input type="text" name="medication_days" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 小码华南专用 -->
+                        <div class="customize-form-group edit">
+                            <label>小码华南专用:</label>
+                            <input type="text" name="small_code_southchina_specific" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 对应大码 -->
+                        <div class="customize-form-group edit">
+                            <label>对应大码:</label>
+                            <input type="text" name="corresponding_major_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 与替代编码转换比 -->
+                        <div class="customize-form-group edit">
+                            <label>与替代编码转换比:</label>
+                            <input type="text" name="conversion_ratio_to_alternative" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 疾病种 -->
+                        <div class="customize-form-group edit">
+                            <label>疾病种:</label>
+                            <input type="text" name="disease_type" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 品牌厂家名称 -->
+                        <div class="customize-form-group edit">
+                            <label>品牌厂家名称:</label>
+                            <input type="text" name="brand_manufacturer_name" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 集团名称 -->
+                        <div class="customize-form-group edit">
+                            <label>集团名称:</label>
+                            <input type="text" name="group_name" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 外部组织机构 -->
+                        <div class="customize-form-group edit">
+                            <label>外部组织机构:</label>
+                            <input type="text" name="external_organization" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                        <!-- 国谈品种 -->
+                        <div class="customize-form-group edit">
+                            <label>国谈品种:</label>
+                            <input type="text" name="national_negotiated_product" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国家贯标码 -->
+                        <div class="customize-form-group edit">
+                            <label>国家贯标码:</label>
+                            <input type="text" name="national_standard_code" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国家贯标码2 -->
+                        <div class="customize-form-group edit">
+                            <label>国家贯标码2:</label>
+                            <input type="text" name="national_standard_code_2" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 医保最小剂量单位 -->
+                        <div class="customize-form-group edit">
+                            <label>医保最小剂量单位:</label>
+                            <input type="text" name="medical_insurance_min_dose_unit" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 医保市场状态 -->
+                        <div class="customize-form-group edit">
+                            <label>医保市场状态:</label>
+                            <input type="text" name="medical_market_status" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 核算厂家 -->
+                        <div class="customize-form-group edit">
+                            <label>核算厂家:</label>
+                            <input type="text" name="accounting_manufacturer" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 部门归属 -->
+                        <div class="customize-form-group edit">
+                            <label>部门归属:</label>
+                            <input type="text" name="department_affiliation" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 慢病一线治疗用药 -->
+                        <div class="customize-form-group edit">
+                            <label>慢病一线治疗用药:</label>
+                            <input type="text" name="chronic_disease_first_line_treatment" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否医保通用名 -->
+                        <div class="customize-form-group edit">
+                            <label>是否医保通用名:</label>
+                            <input type="text" name="is_medical_generic_name" class="styled-input edit_inputs"  />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 新冠商品标签 -->
+                        <div class="customize-form-group edit">
+                            <label>新冠商品标签:</label>
+                            <input type="text" name="covid_tag" class="styled-input edit_inputs"/>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 备注 -->
+                        <div class="customize-form-group edit">
+                            <label>备注:</label>
+                            <textarea name="product_remarks" class="styled-input edit_inputs" ></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- dtp -->
+                <div id="tab-12" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit12" >
+                        <div class="customize-form-group edit">
+                            <label>是否医保药品:</label>
+                            <select name="is_insurance_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label>医保类别:</label>
+                            <input type="text" name="insurance_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label>限购数量:</label>
+                            <input type="number" name="purchase_limit_quantity" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label class="is-required">是否凭处方销售:</label>
+                            <select name="prescription_required" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label>禁止请货:</label>
+                            <select name="prohibit_ordering" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label>中包装请货逻辑:</label>
+                            <textarea name="mid_pack_order_logic" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label>请货最大上限:</label>
+                            <input type="number" name="max_order_limit" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label class="is-required">登记品:</label>
+                            <select name="registered_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label class="is-required">随访品:</label>
+                            <select name="follow_up_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label class="is-required">冷链品:</label>
+                            <select name="cold_chain_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label class="is-required">流向品:</label>
+                            <select name="flow_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <div class="customize-form-group edit">
+                            <label>慈善援助品:</label>
+                            <select name="charity_aid_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 采购属性 -->
+                <div id="tab-2" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit2" >
+                        <!-- 参考进价 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">参考进价:</label>
+                            <input type="text" name="reference_purchase_price" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否越库 -->
+                        <div class="customize-form-group edit">
+                            <label>是否越库:</label>
+                            <select name="is_direct_to_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 采购组 -->
+                        <div class="customize-form-group edit">
+                            <label>采购组:</label>
+                            <input type="text" name="purchase_group" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 渠道属性 -->
+                        <div class="customize-form-group edit">
+                            <label>渠道属性:</label>
+                            <input type="text" name="channel_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 采购组织 -->
+                        <div class="customize-form-group edit">
+                            <label>采购组织:</label>
+                            <input type="text" name="purchase_organization" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止采购 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止采购:</label>
+                            <select name="is_purchase_prohibited" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 集团商品采购属性 -->
+                        <div class="customize-form-group edit">
+                            <label>集团商品采购属性:</label>
+                            <input type="text" name="group_product_purchase_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否原研 -->
+                        <div class="customize-form-group edit">
+                            <label>是否原研:</label>
+                            <select name="is_original_research" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 品牌属性 -->
+                        <div class="customize-form-group edit">
+                            <label>品牌属性:</label>
+                            <input type="text" name="brand_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 消费健康自有品牌商品 -->
+                        <div class="customize-form-group edit">
+                            <label>消费健康自有品牌商品:</label>
+                            <select name="consumer_health_own_brand" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 大健康品类 -->
+                        <div class="customize-form-group edit">
+                            <label>大健康品类:</label>
+                            <input type="text" name="health_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册人营业执照统一信用代码 -->
+                        <div class="customize-form-group edit">
+                            <label>注册人营业执照统一信用代码:</label>
+                            <input type="text" name="registrant_unified_social_credit_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否泛DTP -->
+                        <div class="customize-form-group edit">
+                            <label>是否泛DTP:</label>
+                            <select name="is_broad_dtp" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 采购属性 -->
+                        <div class="customize-form-group edit">
+                            <label>采购属性:</label>
+                            <input type="text" name="purchase_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 经营属性 -->
+                        <div class="customize-form-group edit">
+                            <label>经营属性:</label>
+                            <input type="text" name="operation_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 档案号 -->
+                        <div class="customize-form-group edit">
+                            <label>档案号:</label>
+                            <input type="text" name="archive_number" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 特殊销售属性 -->
+                        <div class="customize-form-group edit">
+                            <label>特殊销售属性:</label>
+                            <input type="text" name="special_sales_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 大仓是否正常备货 -->
+                        <div class="customize-form-group edit">
+                            <label>大仓是否正常备货:</label>
+                            <select name="is_normal_stock_in_central_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否已首营 -->
+                        <div class="customize-form-group edit">
+                            <label>是否已首营:</label>
+                            <select name="is_first_operation" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 数据创建时间 -->
+                        <div class="customize-form-group edit">
+                            <label>数据创建时间:</label>
+                            <input type="datetime-local" name="data_creation_time" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品中码策略 -->
+                        <div class="customize-form-group edit">
+                            <label>商品中码策略:</label>
+                            <input type="text" name="product_mid_code_strategy" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否完成成分梳理 -->
+                        <div class="customize-form-group edit">
+                            <label>是否完成成分梳理:</label>
+                            <select name="is_completed_component_analysis" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 控制销售属性标识 -->
+                        <div class="customize-form-group edit">
+                            <label>控制销售属性标识:</label>
+                            <input type="text" name="sales_control_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 4+7标识 -->
+                        <div class="customize-form-group edit">
+                            <label>4+7标识:</label>
+                            <select name="four_plus_seven_label" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 平台共性首推 -->
+                        <div class="customize-form-group edit">
+                            <label>平台共性首推:</label>
+                            <select name="platform_common_recommendation" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商业大流通商品 -->
+                        <div class="customize-form-group edit">
+                            <label>商业大流通商品:</label>
+                            <select name="commercial_large_circulation_product" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 统采淘汰时间 -->
+                        <div class="customize-form-group edit">
+                            <label>统采淘汰时间:</label>
+                            <input type="date" name="unified_procurement_elimination_time" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 集采淘汰时间 -->
+                        <div class="customize-form-group edit">
+                            <label>集采淘汰时间:</label>
+                            <input type="date" name="centralized_procurement_elimination_time" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中参特殊属性 -->
+                        <div class="customize-form-group edit">
+                            <label>中参特殊属性:</label>
+                            <input type="text" name="zc_special_attributes" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 新旧编码转换比例 -->
+                        <div class="customize-form-group edit">
+                            <label>新旧编码转换比例:</label>
+                            <input type="text" name="old_new_code_conversion_ratio" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 双通道药品 -->
+                        <div class="customize-form-group edit">
+                            <label>双通道药品:</label>
+                            <select name="dual_channel_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国谈价格 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">国谈价格:</label>
+                            <input type="text" name="national_negotiated_price" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 广州药监商品码 -->
+                        <div class="customize-form-group edit">
+                            <label>广州药监商品码:</label>
+                            <input type="text" name="guangzhou_pharmaceutical_supervision_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 统筹报销商品 -->
+                        <div class="customize-form-group edit">
+                            <label>统筹报销商品:</label>
+                            <select name="coordinated_reimbursement_product" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 两盘货属性 -->
+                        <div class="customize-form-group edit">
+                            <label>两盘货属性:</label>
+                            <input type="text" name="two_pantry_goods_attribute" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否限制门店经营 -->
+                        <div class="customize-form-group edit">
+                            <label>是否限制门店经营:</label>
+                            <select name="is_store_operation_restricted" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否可配加盟店 -->
+                        <div class="customize-form-group edit">
+                            <label>是否可配加盟店:</label>
+                            <select name="can_be_allocated_to_franchise_stores" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 加盟店是否享受统采政策 -->
+                        <div class="customize-form-group edit">
+                            <label>加盟店是否享受统采政策:</label>
+                            <select name="franchise_stores_enjoy_unified_procurement_policy" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 医保采购类型 -->
+                        <div class="customize-form-group edit">
+                            <label>医保采购类型:</label>
+                            <input type="text" name="medical_insurance_purchase_type" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 物流属性 -->
+                <div id="tab-3" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit3" >
+                        <!-- 存储分类 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">存储分类:</label>
+                            <input type="text" name="storage_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否易碎 -->
+                        <div class="customize-form-group edit">
+                            <label>是否易碎:</label>
+                            <select name="is_fragile" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否危险品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否危险品:</label>
+                            <select name="is_hazardous" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否异形品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否异形品:</label>
+                            <select name="is_odd_shape" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本包装长 -->
+                        <div class="customize-form-group edit">
+                            <label>基本包装长:</label>
+                            <input type="text" name="basic_package_length" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本包装宽 -->
+                        <div class="customize-form-group edit">
+                            <label>基本包装宽:</label>
+                            <input type="text" name="basic_package_width" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本包装高 -->
+                        <div class="customize-form-group edit">
+                            <label>基本包装高:</label>
+                            <input type="text" name="basic_package_height" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 饮片最小包装量 -->
+                        <div class="customize-form-group edit">
+                            <label>饮片最小包装量:</label>
+                            <input type="text" name="minimum_package_quantity" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中包装量 -->
+                        <div class="customize-form-group edit">
+                            <label>中包装量:</label>
+                            <input type="text" name="medium_package_quantity" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 箱包装量 -->
+                        <div class="customize-form-group edit">
+                            <label>箱包装量:</label>
+                            <input type="text" name="box_package_quantity" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否启用中包装 -->
+                        <div class="customize-form-group edit">
+                            <label>是否启用中包装:</label>
+                            <select name="is_medium_package_enabled" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中包装起请比例 -->
+                        <div class="customize-form-group edit">
+                            <label>中包装起请比例:</label>
+                            <input type="text" name="medium_package_request_ratio" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 质管属性 -->
+                <div id="tab-4" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit4" >
+                        <!-- 是否生产批号管理 -->
+                        <div class="customize-form-group edit">
+                            <label>是否生产批号管理:</label>
+                            <select name="is_production_batch_management" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 经营范围 -->
+                        <div class="customize-form-group edit">
+                            <label>经营范围:</label>
+                            <textarea name="business_scope" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方类别 -->
+                        <div class="customize-form-group edit">
+                            <label>处方类别:</label>
+                            <input type="text" name="prescription_category" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方类别二级 -->
+                        <div class="customize-form-group edit">
+                            <label>处方类别二级:</label>
+                            <input type="text" name="prescription_category_secondary" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方类别三级 -->
+                        <div class="customize-form-group edit">
+                            <label>处方类别三级:</label>
+                            <input type="text" name="prescription_category_tertiary" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号1 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">批准文号1:</label>
+                            <input type="text" name="approval_number_1" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号1有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>批准文号1有效期:</label>
+                            <input type="date" name="approval_number_1_expiry" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号2 -->
+                        <div class="customize-form-group edit">
+                            <label>批准文号2:</label>
+                            <input type="text" name="approval_number_2" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号2有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>批准文号2有效期:</label>
+                            <input type="date" name="approval_number_2_expiry" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号1 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号1:</label>
+                            <input type="text" name="registration_certificate_1" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号1有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号1有效期:</label>
+                            <input type="date" name="registration_certificate_1_expiry" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号2 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号2:</label>
+                            <input type="text" name="registration_certificate_2" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号2有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号2有效期:</label>
+                            <input type="date" name="registration_certificate_2_expiry" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 生产许可证号/备案 -->
+                        <div class="customize-form-group edit">
+                            <label>生产许可证号/备案:</label>
+                            <input type="text" name="production_license" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 生产许可证号有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>生产许可证号有效期:</label>
+                            <input type="date" name="production_license_expiry" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否冷链药品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否冷链药品:</label>
+                            <select name="is_cold_chain_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否二次验复 -->
+                        <div class="customize-form-group edit">
+                            <label>是否二次验复:</label>
+                            <select name="is_second_inspection" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 本位码 -->
+                        <div class="customize-form-group edit">
+                            <label>本位码:</label>
+                            <input type="text" name="local_code" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 药理毒理 -->
+                        <div class="customize-form-group edit">
+                            <label>药理毒理:</label>
+                            <textarea name="pharmacology_toxicology" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 临床试验 -->
+                        <div class="customize-form-group edit">
+                            <label>临床试验:</label>
+                            <textarea name="clinical_trial" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 药物过量 -->
+                        <div class="customize-form-group edit">
+                            <label>药物过量:</label>
+                            <textarea name="drug_overdose" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 老年患者用药 -->
+                        <div class="customize-form-group edit">
+                            <label>老年患者用药:</label>
+                            <textarea name="elderly_patient_usage" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 儿童患者用药 -->
+                        <div class="customize-form-group edit">
+                            <label>儿童患者用药:</label>
+                            <textarea name="pediatric_patient_usage" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 孕妇及哺乳期用药 -->
+                        <div class="customize-form-group edit">
+                            <label>孕妇及哺乳期用药:</label>
+                            <textarea name="pregnant_breastfeeding_usage" class="styled-input edit_inputs"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 药品成份 -->
+                        <div class="customize-form-group edit">
+                            <label>药品成份:</label>
+                            <textarea name="zgingredients" class="styled-input edit_inputs" rows="4"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+                        <!-- 集团质量状态 -->
+                        <div class="customize-form-group edit">
+                            <label>集团质量状态:</label>
+                            <input type="text" name="group_quality_status" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 包装规格 -->
+                        <div class="customize-form-group edit">
+                            <label>包装规格:</label>
+                            <input type="text" name="package_specification" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 贮藏 -->
+                        <div class="customize-form-group edit">
+                            <label>贮藏:</label>
+                            <textarea name="storage_conditions" class="styled-input edit_inputs" rows="4"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 包装是否含追溯码 -->
+                        <div class="customize-form-group edit">
+                            <label>包装是否含追溯码:</label>
+                            <select name="has_traceability_code" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 允收期(天) -->
+                        <div class="customize-form-group edit">
+                            <label>允收期(天):</label>
+                            <input type="number" name="acceptance_period_days" class="styled-input edit_inputs" min="0" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否管理序列号 -->
+                        <div class="customize-form-group edit">
+                            <label>是否管理序列号:</label>
+                            <select name="is_serial_number_managed" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 近效期 -->
+                        <div class="customize-form-group edit">
+                            <label>近效期:</label>
+                            <input type="date" name="near_expiry_date" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 企业持有批准文号有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>企业持有批准文号有效期:</label>
+                            <input type="date" name="company_approval_expiry" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 企业持有注册证号有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>企业持有注册证号有效期:</label>
+                            <input type="date" name="company_registration_expiry" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否扫码追溯商品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否扫码追溯商品:</label>
+                            <select name="is_scan_traceable" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中国野生动物经营利用管理专用标识 -->
+                        <div class="customize-form-group edit">
+                            <label>中国野生动物经营利用管理专用标识:</label>
+                            <input type="text" name="wildlife_management_identification" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 特定药品销售管控 -->
+                        <div class="customize-form-group edit">
+                            <label>特定药品销售管控:</label>
+                            <textarea name="special_sales_control" class="styled-input edit_inputs" rows="4"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否UDI扫码 -->
+                        <div class="customize-form-group edit">
+                            <label>是否UDI扫码:</label>
+                            <select name="is_udi_scanned" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方最大用药天数 -->
+                        <div class="customize-form-group edit">
+                            <label>处方最大用药天数:</label>
+                            <input type="number" name="max_prescription_days" class="styled-input edit_inputs" min="0" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 限制用药 -->
+                        <div class="customize-form-group edit">
+                            <label>限制用药:</label>
+                            <textarea name="restricted_usage" class="styled-input edit_inputs" rows="4"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 销售属性 -->
+                <div id="tab-5" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit5" >
+                        <!-- 参考零售价 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">参考零售价:</label>
+                            <input type="text" name="reference_retail_price" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上销售 -->
+                        <div class="customize-form-group edit">
+                            <label>线上销售:</label>
+                            <select name="online_sales" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中台商品SPUID -->
+                        <div class="customize-form-group edit">
+                            <label>中台商品SPUID:</label>
+                            <input type="text" name="mid_platform_product_spuid" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中台商品类型 -->
+                        <div class="customize-form-group edit">
+                            <label>中台商品类型:</label>
+                            <input type="text" name="mid_platform_product_type" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 外部传输系统 -->
+                        <div class="customize-form-group edit">
+                            <label>外部传输系统:</label>
+                            <input type="text" name="external_transmission_system" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上O2O -->
+                        <div class="customize-form-group edit">
+                            <label>线上O2O:</label>
+                            <select name="online_o2o" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上B2C -->
+                        <div class="customize-form-group edit">
+                            <label>线上B2C:</label>
+                            <select name="online_b2c" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上互医 -->
+                        <div class="customize-form-group edit">
+                            <label>线上互医:</label>
+                            <select name="online_mutual_medical" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上品牌健康 -->
+                        <div class="customize-form-group edit">
+                            <label>线上品牌健康:</label>
+                            <select name="online_brand_health" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品名 -->
+                        <div class="customize-form-group edit">
+                            <label>商品名:</label>
+                            <input type="text" name="xproduct_name" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 最小陈列量 -->
+                        <div class="customize-form-group edit">
+                            <label>最小陈列量:</label>
+                            <input type="text" name="minimum_display_quantity" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 销售属性 -->
+                        <div class="customize-form-group edit">
+                            <label>销售属性:</label>
+                            <textarea name="sales_attributes" class="styled-input edit_inputs" rows="4"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止配送 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止配送:</label>
+                            <select name="prohibit_delivery" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止返仓 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止返仓:</label>
+                            <select name="prohibit_return_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止销售 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止销售:</label>
+                            <select name="prohibit_sales" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否可拆零 -->
+                        <div class="customize-form-group edit">
+                            <label>是否可拆零:</label>
+                            <select name="can_be_divided" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 拆零单位 -->
+                        <div class="customize-form-group edit">
+                            <label>拆零单位:</label>
+                            <input type="text" name="division_unit" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 拆零比例 -->
+                        <div class="customize-form-group edit">
+                            <label>拆零比例:</label>
+                            <input type="text" name="division_ratio" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- DAAS业态 -->
+                        <div class="customize-form-group edit">
+                            <label>DAAS业态:</label>
+                            <input type="text" name="daas_business_model" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 促销审批 -->
+                        <div class="customize-form-group edit">
+                            <label>促销审批:</label>
+                            <select name="promotion_approval" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option value=""></option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批发主推等级 -->
+                        <div class="customize-form-group edit">
+                            <label>批发主推等级:</label>
+                            <input type="text" name="wholesale_priority_level" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 业态属性 -->
+                <div id="tab-6" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit6" >
+                        <!-- 平台属性 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">平台属性:</label>
+                            <input type="text" name="platform_property" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 企业属性 -->
+                        <div class="customize-form-group edit">
+                            <label>企业属性:</label>
+                            <input type="text" name="company_property" class="styled-input edit_inputs" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品加盟属性 -->
+                        <div class="customize-form-group edit">
+                            <label>商品加盟属性:</label>
+                            <textarea name="product_franchise_attribute" class="styled-input edit_inputs" rows="4"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 图片属性 -->
+                <div id="tab-7" class="tab-pane">
+                    <div class="ibox-content">
+                        <div class="fileinput fileinput-new" data-provides="fileinput">
+                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
+                                <span class="preview-text">点击上传图片</span>
+                            </div>
+                            <div>
+                                <input type="file" id="external_packaging_file" style="display: none;" />
+                                <a href="javascript:;" class="btn btn-white fileinput-exists clear-button" data-dismiss="fileinput">清除</a>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+    <div class="main-content" id="content-main">
+        <div class="col-sm-offset-5 col-sm-10">
+            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
+            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
+        </div>
+    </div>
+</div>
+<th:block th:include="include :: footer" />
+<th:block th:include="include :: select2-css" />
+<th:block th:include="include :: bootstrap-select-css" />
+<th:block th:include="include :: select2-js" />
+<th:block th:include="include :: bootstrap-select-js" />
+<th:block th:include="include :: jasny-bootstrap-js" />
+</body>
+</html>
+<style>
+    .fileinput-preview {
+        position: relative;
+        width: 200px;
+        height: 150px;
+        border: 1px solid #ccc;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+    }
+
+    .plus-sign {
+        font-size: 36px;
+        color: #ccc;
+        position: absolute;
+        top: 50%;
+        left: 50%;
+        transform: translate(-50%, -50%);
+    }
+
+    .preview-text {
+        font-size: 14px;
+        color: #999;
+        position: absolute;
+        top: 50%;
+        left: 50%;
+        transform: translate(-50%, -50%);
+    }
+
+    .clear-button {
+        margin-top: 10px;
+    }
+</style>
+<script th:inline="javascript">
+    var prefix = ctx + "sp/sp";
+
+    function collectFormData() {
+        // 定义要收集的表单
+        var forms = [
+            $("#form-server-edit1"),
+            $("#form-server-edit2"),
+            $("#form-server-edit3"),
+            $("#form-server-edit4"),
+            $("#form-server-edit5"),
+            $("#form-server-edit6"),
+            $("#form-server-edit12")
+        ];
+
+        // 获取 product_code 并验证是否已填写
+        var productCodeData = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_code');
+        if (productCodeData.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】产品编码!");
+            return null;
+        }
+        var product_name = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_name');
+        if (product_name.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品名称!");
+            return null;
+        }
+        var manufacturer = $("#form-server-edit1").serializeArray().find(item => item.name === 'manufacturer');
+        if (manufacturer.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】生产厂家!");
+            return null;
+        }
+        var product_status = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_status');
+        if (product_status.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品状态!");
+            return null;
+        }
+        var category_maj = $("#form-server-edit1").serializeArray().find(item => item.name === 'category_maj');
+        if (category_maj.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品大类!");
+            return null;
+        }
+        var category_min = $("#form-server-edit1").serializeArray().find(item => item.name === 'category_min');
+        if (category_min.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品小类!");
+            return null;
+        }
+        var specification = $("#form-server-edit1").serializeArray().find(item => item.name === 'specification');
+        if (specification.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】规格!");
+            return null;
+        }
+        var packaging = $("#form-server-edit1").serializeArray().find(item => item.name === 'packaging');
+        if (packaging.value === '') {
+            $.modal.alertWarning("请先填【基本属性】写包装!");
+            return null;
+        }
+        var reference_purchase_price = $("#form-server-edit2").serializeArray().find(item => item.name === 'reference_purchase_price');
+        if (reference_purchase_price.value === '') {
+            $.modal.alertWarning("请先填写【采购属性】参考进价!");
+            return null;
+        }
+        var national_negotiated_price = $("#form-server-edit2").serializeArray().find(item => item.name === 'national_negotiated_price');
+        if (national_negotiated_price.value === '') {
+            $.modal.alertWarning("请先填写【采购属性】国谈价格!");
+            return null;
+        }
+        var storage_category = $("#form-server-edit3").serializeArray().find(item => item.name === 'storage_category');
+        if (storage_category.value === '') {
+            $.modal.alertWarning("请先填写【存储分类】存储分类!");
+            return null;
+        }
+
+        var approval_number_1 = $("#form-server-edit4").serializeArray().find(item => item.name === 'approval_number_1');
+        if (approval_number_1.value === '') {
+            $.modal.alertWarning("请先填写【质管属性】批准文号1!");
+            return null;
+        }
+        var reference_retail_price = $("#form-server-edit5").serializeArray().find(item => item.name === 'reference_retail_price');
+        if (reference_retail_price.value === '') {
+            $.modal.alertWarning("请先填写【销售属性】参考零售价!");
+            return null;
+        }
+        var platform_property = $("#form-server-edit6").serializeArray().find(item => item.name === 'platform_property');
+        if (platform_property.value === '') {
+            $.modal.alertWarning("请先填写【业态属性】平台属性!");
+            return null;
+        }
+
+        var follow_up_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'follow_up_item');
+        if (follow_up_item.value === '') {
+            $.modal.alertWarning("请选择是【DTP属性】否随访品!");
+            return null;
+        }
+
+        var cold_chain_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'cold_chain_item');
+        if (cold_chain_item.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否冷链品!");
+            return null;
+        }
+
+        var registered_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'registered_item');
+        if (registered_item.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否登记品!");
+            return null;
+        }
+
+        var flow_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'flow_item');
+        if (flow_item.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否流向品!");
+            return null;
+        }
+
+        var prescription_required = $("#form-server-edit12").serializeArray().find(item => item.name === 'prescription_required');
+        if (prescription_required.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否是否凭处方销售!");
+            return null;
+        }
+
+        // 初始化合并后的数据数组
+        var allData = [];
+
+        // 遍历每个表单并将数据添加到 allData 中
+        forms.forEach(function(form) {
+            var formData = $(form).serializeArray();
+            // 确保 product_code 存在于每个表单数据中
+            formData.push({ name: 'product_code', value: productCodeData.value });
+            allData = allData.concat(formData);
+        });
+
+        return allData;
+    }
+    function submitHandler() {
+        if ($.validate.form()) {
+            var allData = collectFormData();
+            if (allData.product_code === '') {
+                $.modal.alertWarning("请先填写产品编码!");
+                return;
+            }
+
+            $.ajax({
+                url: prefix + "/ProductAdd", // 后台接口地址
+                type: "post",
+                dataType: "json",
+                data: allData,
+                beforeSend: function () {
+                    $.modal.loading("正在处理中,请稍候...");
+                },
+                success: function(result) {
+                    $.modal.closeLoading();
+                    if (result.code===0) {
+                        $.modal.alertSuccess(result.msg || "操作成功");
+                        $.operate.successTabCallback(result);
+                    } else {
+                        $.modal.alertWarning(result.msg || "操作失败");
+                    }
+                },
+                error: function(xhr, status, error) {
+                    $.modal.closeLoading();
+                    console.error("AJAX Error: ", status, error);
+                    $.modal.alertWarning("服务器错误:" + error);
+                }
+            });
+        }
+    }
+</script>

+ 1660 - 0
health-admin/src/main/resources/templates/spgl/SPProductEdit.html

@@ -0,0 +1,1660 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
+<head>
+    <th:block th:include="include :: header('商品修改')" />
+</head>
+<style>
+
+</style>
+<script>
+
+</script>
+<body>
+<div class="ui-layout-center">
+    <h4 class="form-header h4">商品修改</h4>
+    <div class="col-sm-12">
+        <div class="tabs-container">
+            <ul class="nav nav-tabs" id="myTabs3">
+                <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 基本信息</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-12" aria-expanded="false">DTP属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">采购属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false" >物流属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">质管属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">销售属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">业态属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-7" aria-expanded="false">图片属性</a>
+                </li>
+                <!-- 下面再看 先把上面的弄完-->
+                <li class=""><a data-toggle="tab" href="#tab-8" aria-expanded="false">处方属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-9" aria-expanded="false">D值配置属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-10" aria-expanded="false">说明书属性</a>
+                </li>
+                <li class=""><a data-toggle="tab" href="#tab-11" aria-expanded="false">知识库属性</a>
+                </li>
+
+            </ul>
+            <div class="tab-content">
+                <!-- 基本信息 -->
+                <div id="tab-1" class="tab-pane active">
+                    <form class="customize-search-form" id="form-server-edit1" >
+                        <!-- 商品编码 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品编码:</label>
+                            <input type="text" name="product_code" class="styled-input edit_inputs" th:value="${product_code}" disabled/>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品名称 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品名称:</label>
+                            <input type="text" name="product_name" class="styled-input edit_inputs" th:value="${product_name}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 助记码 -->
+                        <div class="customize-form-group edit">
+                            <label>助记码:</label>
+                            <input type="text" name="mnemonic_code" class="styled-input edit_inputs" th:value="${mnemonic_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品描述 -->
+                        <div class="customize-form-group edit">
+                            <label>商品描述:</label>
+                            <textarea name="product_description" class="styled-input edit_inputs" th:text="${product_description}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 通用名 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">通用名:</label>
+                            <input type="text" name="generic_name" class="styled-input edit_inputs" th:value="${generic_name}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 通用名助记码 -->
+                        <div class="customize-form-group edit">
+                            <label>通用名助记码:</label>
+                            <input type="text" name="generic_mnemonic_code" class="styled-input edit_inputs" th:value="${generic_mnemonic_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 通用名曾用名 -->
+                        <div class="customize-form-group edit">
+                            <label>通用名曾用名:</label>
+                            <input type="text" name="generic_previous_names" class="styled-input edit_inputs" th:value="${generic_previous_names}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本计量单位 -->
+                        <div class="customize-form-group edit">
+                            <label>基本计量单位:</label>
+                            <input type="text" name="base_unit" class="styled-input edit_inputs" th:value="${base_unit}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商标 -->
+                        <div class="customize-form-group edit">
+                            <label>商标:</label>
+                            <input type="text" name="trademark" class="styled-input edit_inputs" th:value="${trademark}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 规格 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">规格:</label>
+                            <input type="text" name="specification" class="styled-input edit_inputs" th:value="${specification}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 包装 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">包装:</label>
+                            <input type="text" name="packaging" class="styled-input edit_inputs" th:value="${packaging}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国际条形码 (EAN-13) -->
+                        <div class="customize-form-group edit">
+                            <label>国际条形码 (EAN-13):</label>
+                            <input type="text" name="international_barcode" class="styled-input edit_inputs" th:value="${international_barcode}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 生产厂家 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">生产厂家:</label>
+                            <input type="text" name="manufacturer" class="styled-input edit_inputs" th:value="${manufacturer}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 委托厂家 -->
+                        <div class="customize-form-group edit">
+                            <label>委托厂家:</label>
+                            <input type="text" name="entrusted_manufacturer" class="styled-input edit_inputs" th:value="${entrusted_manufacturer}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 厂家缩写 -->
+                        <div class="customize-form-group edit">
+                            <label>厂家缩写:</label>
+                            <input type="text" name="manufacturer_abbreviation" class="styled-input edit_inputs" th:value="${manufacturer_abbreviation}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 产地 -->
+                        <div class="customize-form-group edit">
+                            <label>产地:</label>
+                            <input type="text" name="origin" class="styled-input edit_inputs" th:value="${origin}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品大类 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品大类:</label>
+                            <input type="text" name="category_maj" class="styled-input edit_inputs" th:value="${category_maj}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品子类 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品子类:</label>
+                            <input type="text" name="category_min" class="styled-input edit_inputs" th:value="${category_min}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品类型 -->
+                        <div class="customize-form-group edit">
+                            <label>商品类型:</label>
+                            <input type="text" name="product_type" class="styled-input edit_inputs" th:value="${product_type}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品状态 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">商品状态:</label>
+                            <input type="text" name="product_status" class="styled-input edit_inputs" th:value="${product_status}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 进项税率 -->
+                        <div class="customize-form-group edit">
+                            <label>进项税率:</label>
+                            <input type="text" name="purchase_tax_rate" class="styled-input edit_inputs" th:value="${purchase_tax_rate}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 销项税率 -->
+                        <div class="customize-form-group edit">
+                            <label>销项税率:</label>
+                            <input type="text" name="sales_tax_rate" class="styled-input edit_inputs" th:value="${sales_tax_rate}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 进口/国产商品 -->
+                        <div class="customize-form-group edit">
+                            <label>进口/国产商品:</label>
+                            <select name="import_export_status" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
+                                <option value="">--  是(进口) / 否(国产)请选择  --</option>
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${import_export_status}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 将最后的商品大类和商品中类字段改为备注字段 -->
+                        <div class="customize-form-group edit">
+                            <label>备注:</label>
+                            <textarea name="product_remarks" class="styled-input edit_inputs" th:text="${product_remarks}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品大类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品大类:</label>
+                            <input type="text" name="major_category" class="styled-input edit_inputs" th:value="${major_category}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品中类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品中类:</label>
+                            <input type="text" name="medium_category" class="styled-input edit_inputs" th:value="${medium_category}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品小类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品小类:</label>
+                            <input type="text" name="minor_category" class="styled-input edit_inputs" th:value="${minor_category}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品子类 -->
+                        <div class="customize-form-group edit">
+                            <label>商品子类:</label>
+                            <input type="text" name="sub_category" class="styled-input edit_inputs" th:value="${sub_category}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 成分 -->
+                        <div class="customize-form-group edit">
+                            <label>成分:</label>
+                            <input type="text" name="ingredients" class="styled-input edit_inputs" th:value="${ingredients}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- DTP商品标识 -->
+                        <div class="customize-form-group edit">
+                            <label>DTP商品标识:</label>
+                            <select name="dtp_flag" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${dtp_flag}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 日标准消耗量 -->
+                        <div class="customize-form-group edit">
+                            <label>日标准消耗量:</label>
+                            <input type="text" name="daily_standard_consumption" class="styled-input edit_inputs" th:value="${daily_standard_consumption}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 疑似重复 -->
+                        <div class="customize-form-group edit">
+                            <label>疑似重复:</label>
+                            <input type="text" name="duplicate_suspected" class="styled-input edit_inputs" th:value="${duplicate_suspected}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 替代编码 -->
+                        <div class="customize-form-group edit">
+                            <label>替代编码:</label>
+                            <input type="text" name="alternative_code" class="styled-input edit_inputs" th:value="${alternative_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 上市许可持有人/注册人/备案人 -->
+                        <div class="customize-form-group edit">
+                            <label>上市许可持有人/注册人/备案人:</label>
+                            <input type="text" name="marketing_authorization_holder" class="styled-input edit_inputs" th:value="${marketing_authorization_holder}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 用药天数 -->
+                        <div class="customize-form-group edit">
+                            <label>用药天数:</label>
+                            <input type="text" name="medication_days" class="styled-input edit_inputs" th:value="${medication_days}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 小码华南专用 -->
+                        <div class="customize-form-group edit">
+                            <label>小码华南专用:</label>
+                            <input type="text" name="small_code_southchina_specific" class="styled-input edit_inputs" th:value="${small_code_southchina_specific}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 对应大码 -->
+                        <div class="customize-form-group edit">
+                            <label>对应大码:</label>
+                            <input type="text" name="corresponding_major_code" class="styled-input edit_inputs" th:value="${corresponding_major_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 与替代编码转换比 -->
+                        <div class="customize-form-group edit">
+                            <label>与替代编码转换比:</label>
+                            <input type="text" name="conversion_ratio_to_alternative" class="styled-input edit_inputs" th:value="${conversion_ratio_to_alternative}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 疾病种 -->
+                        <div class="customize-form-group edit">
+                            <label>疾病种:</label>
+                            <input type="text" name="disease_type" class="styled-input edit_inputs" th:value="${disease_type}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 品牌厂家名称 -->
+                        <div class="customize-form-group edit">
+                            <label>品牌厂家名称:</label>
+                            <input type="text" name="brand_manufacturer_name" class="styled-input edit_inputs" th:value="${brand_manufacturer_name}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 集团名称 -->
+                        <div class="customize-form-group edit">
+                            <label>集团名称:</label>
+                            <input type="text" name="group_name" class="styled-input edit_inputs" th:value="${group_name}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 外部组织机构 -->
+                        <div class="customize-form-group edit">
+                            <label>外部组织机构:</label>
+                            <input type="text" name="external_organization" class="styled-input edit_inputs" th:value="${external_organization}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国谈品种 -->
+                        <div class="customize-form-group edit">
+                            <label>国谈品种:</label>
+                            <input type="text" name="national_negotiated_product" class="styled-input edit_inputs" th:value="${national_negotiated_product}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国家贯标码 -->
+                        <div class="customize-form-group edit">
+                            <label>国家贯标码:</label>
+                            <input type="text" name="national_standard_code" class="styled-input edit_inputs" th:value="${national_standard_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国家贯标码2 -->
+                        <div class="customize-form-group edit">
+                            <label>国家贯标码2:</label>
+                            <input type="text" name="national_standard_code_2" class="styled-input edit_inputs" th:value="${national_standard_code_2}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 医保最小剂量单位 -->
+                        <div class="customize-form-group edit">
+                            <label>医保最小剂量单位:</label>
+                            <input type="text" name="medical_insurance_min_dose_unit" class="styled-input edit_inputs" th:value="${medical_insurance_min_dose_unit}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 医保市场状态 -->
+                        <div class="customize-form-group edit">
+                            <label>医保市场状态:</label>
+                            <input type="text" name="medical_market_status" class="styled-input edit_inputs" th:value="${medical_market_status}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 核算厂家 -->
+                        <div class="customize-form-group edit">
+                            <label>核算厂家:</label>
+                            <input type="text" name="accounting_manufacturer" class="styled-input edit_inputs" th:value="${accounting_manufacturer}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 部门归属 -->
+                        <div class="customize-form-group edit">
+                            <label>部门归属:</label>
+                            <input type="text" name="department_affiliation" class="styled-input edit_inputs" th:value="${department_affiliation}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 慢病一线治疗用药 -->
+                        <div class="customize-form-group edit">
+                            <label>慢病一线治疗用药:</label>
+                            <input type="text" name="chronic_disease_first_line_treatment" class="styled-input edit_inputs" th:value="${chronic_disease_first_line_treatment}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否医保通用名 -->
+                        <div class="customize-form-group edit">
+                            <label>是否医保通用名:</label>
+                            <select name="is_medical_generic_name" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_medical_generic_name}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 新冠商品标签 -->
+                        <div class="customize-form-group edit">
+                            <label>新冠商品标签:</label>
+                            <input type="text" name="covid_tag" class="styled-input edit_inputs" th:value="${covid_tag}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 备注 -->
+                        <div class="customize-form-group edit">
+                            <label>备注:</label>
+                            <textarea name="product_remarks" class="styled-input edit_inputs" th:text="${product_remarks}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                    </form>
+                </div>
+                <!-- dtp -->
+                <div id="tab-12" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit12" >
+                        <!-- 是否医保药品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否医保药品:</label>
+                            <select name="is_insurance_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_insurance_drug}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 医保类别 -->
+                        <div class="customize-form-group edit">
+                            <label>医保类别:</label>
+                            <input type="text" name="insurance_category" class="styled-input edit_inputs" th:value="${insurance_category}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 限购数量 -->
+                        <div class="customize-form-group edit">
+                            <label>限购数量:</label>
+                            <input type="number" name="purchase_limit_quantity" class="styled-input edit_inputs" th:value="${purchase_limit_quantity}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否凭处方销售 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">是否凭处方销售:</label>
+                            <select name="prescription_required" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prescription_required}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止请货 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止请货:</label>
+                            <select name="prohibit_ordering" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_ordering}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中包装请货逻辑 -->
+                        <div class="customize-form-group edit">
+                            <label>中包装请货逻辑:</label>
+                            <textarea name="mid_pack_order_logic" class="styled-input edit_inputs" th:text="${mid_pack_order_logic}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 请货最大上限 -->
+                        <div class="customize-form-group edit">
+                            <label>请货最大上限:</label>
+                            <input type="number" name="max_order_limit" class="styled-input edit_inputs" th:value="${max_order_limit}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 登记品 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">登记品:</label>
+                            <select name="registered_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${registered_item}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 随访品 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">随访品:</label>
+                            <select name="follow_up_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${follow_up_item}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 冷链品 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">冷链品:</label>
+                            <select name="cold_chain_item" class="styled-input edit_inputs"  th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${cold_chain_item}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 流向品 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">流向品:</label>
+                            <select name="flow_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${flow_item}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 慈善援助品 -->
+                        <div class="customize-form-group edit">
+                            <label>慈善援助品:</label>
+                            <select name="charity_aid_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${charity_aid_item}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 采购属性 -->
+                <div id="tab-2" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit2" >
+                        <!-- 参考进价 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">参考进价:</label>
+                            <input type="text" name="reference_purchase_price" class="styled-input edit_inputs" th:value="${reference_purchase_price}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否越库 -->
+                        <div class="customize-form-group edit">
+                            <label>是否越库:</label>
+                            <select name="is_direct_to_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_direct_to_warehouse}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 采购组 -->
+                        <div class="customize-form-group edit">
+                            <label>采购组:</label>
+                            <input type="text" name="purchase_group" class="styled-input edit_inputs" th:value="${purchase_group}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 渠道属性 -->
+                        <div class="customize-form-group edit">
+                            <label>渠道属性:</label>
+                            <input type="text" name="channel_attribute" class="styled-input edit_inputs" th:value="${channel_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 采购组织 -->
+                        <div class="customize-form-group edit">
+                            <label>采购组织:</label>
+                            <input type="text" name="purchase_organization" class="styled-input edit_inputs" th:value="${purchase_organization}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止采购 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止采购:</label>
+                            <select name="is_purchase_prohibited" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_purchase_prohibited}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 集团商品采购属性 -->
+                        <div class="customize-form-group edit">
+                            <label>集团商品采购属性:</label>
+                            <input type="text" name="group_product_purchase_attribute" class="styled-input edit_inputs" th:value="${group_product_purchase_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否原研 -->
+                        <div class="customize-form-group edit">
+                            <label>是否原研:</label>
+                            <select name="is_original_research" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_original_research}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 品牌属性 -->
+                        <div class="customize-form-group edit">
+                            <label>品牌属性:</label>
+                            <input type="text" name="brand_attribute" class="styled-input edit_inputs" th:value="${brand_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 消费健康自有品牌商品 -->
+                        <div class="customize-form-group edit">
+                            <label>消费健康自有品牌商品:</label>
+                            <select name="consumer_health_own_brand" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${consumer_health_own_brand}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 大健康品类 -->
+                        <div class="customize-form-group edit">
+                            <label>大健康品类:</label>
+                            <input type="text" name="health_category" class="styled-input edit_inputs" th:value="${health_category}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册人营业执照统一信用代码 -->
+                        <div class="customize-form-group edit">
+                            <label>注册人营业执照统一信用代码:</label>
+                            <input type="text" name="registrant_unified_social_credit_code" class="styled-input edit_inputs" th:value="${registrant_unified_social_credit_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否泛DTP -->
+                        <div class="customize-form-group edit">
+                            <label>是否泛DTP:</label>
+                            <select name="is_broad_dtp" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_broad_dtp}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 采购属性 -->
+                        <div class="customize-form-group edit">
+                            <label>采购属性:</label>
+                            <input type="text" name="purchase_attribute" class="styled-input edit_inputs" th:value="${purchase_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 经营属性 -->
+                        <div class="customize-form-group edit">
+                            <label>经营属性:</label>
+                            <input type="text" name="operation_attribute" class="styled-input edit_inputs" th:value="${operation_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 档案号 -->
+                        <div class="customize-form-group edit">
+                            <label>档案号:</label>
+                            <input type="text" name="archive_number" class="styled-input edit_inputs" th:value="${archive_number}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 特殊销售属性 -->
+                        <div class="customize-form-group edit">
+                            <label>特殊销售属性:</label>
+                            <input type="text" name="special_sales_attribute" class="styled-input edit_inputs" th:value="${special_sales_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 大仓是否正常备货 -->
+                        <div class="customize-form-group edit">
+                            <label>大仓是否正常备货:</label>
+                            <select name="is_normal_stock_in_central_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_normal_stock_in_central_warehouse}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否已首营 -->
+                        <div class="customize-form-group edit">
+                            <label>是否已首营:</label>
+                            <select name="is_first_operation" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_first_operation}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 数据创建时间 -->
+                        <div class="customize-form-group edit">
+                            <label>数据创建时间:</label>
+                            <input type="datetime-local" name="data_creation_time" class="styled-input edit_inputs" th:value="${data_creation_time}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品中码策略 -->
+                        <div class="customize-form-group edit">
+                            <label>商品中码策略:</label>
+                            <input type="text" name="product_mid_code_strategy" class="styled-input edit_inputs" th:value="${product_mid_code_strategy}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                        <!-- 是否完成成分梳理 -->
+                        <div class="customize-form-group edit">
+                            <label>是否完成成分梳理:</label>
+                            <select name="is_completed_component_analysis" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_completed_component_analysis}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 控制销售属性标识 -->
+                        <div class="customize-form-group edit">
+                            <label>控制销售属性标识:</label>
+                            <input type="text" name="sales_control_attribute" class="styled-input edit_inputs" th:value="${sales_control_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 4+7标识 -->
+                        <div class="customize-form-group edit">
+                            <label>4+7标识:</label>
+                            <select name="four_plus_seven_label" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${four_plus_seven_label}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 平台共性首推 -->
+                        <div class="customize-form-group edit">
+                            <label>平台共性首推:</label>
+                            <select name="platform_common_recommendation" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${platform_common_recommendation}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商业大流通商品 -->
+                        <div class="customize-form-group edit">
+                            <label>商业大流通商品:</label>
+                            <select name="commercial_large_circulation_product" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${commercial_large_circulation_product}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 统采淘汰时间 -->
+                        <div class="customize-form-group edit">
+                            <label>统采淘汰时间:</label>
+                            <input type="date" name="unified_procurement_elimination_time" class="styled-input edit_inputs" th:value="${unified_procurement_elimination_time}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 集采淘汰时间 -->
+                        <div class="customize-form-group edit">
+                            <label>集采淘汰时间:</label>
+                            <input type="date" name="centralized_procurement_elimination_time" class="styled-input edit_inputs" th:value="${centralized_procurement_elimination_time}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中参特殊属性 -->
+                        <div class="customize-form-group edit">
+                            <label>中参特殊属性:</label>
+                            <input type="text" name="zc_special_attributes" class="styled-input edit_inputs" th:value="${zc_special_attributes}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 新旧编码转换比例 -->
+                        <div class="customize-form-group edit">
+                            <label>新旧编码转换比例:</label>
+                            <input type="text" name="old_new_code_conversion_ratio" class="styled-input edit_inputs" th:value="${old_new_code_conversion_ratio}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 双通道药品 -->
+                        <div class="customize-form-group edit">
+                            <label>双通道药品:</label>
+                            <select name="dual_channel_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${dual_channel_drug}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 国谈价格 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">国谈价格:</label>
+                            <input type="text" name="national_negotiated_price" class="styled-input edit_inputs" th:value="${national_negotiated_price}" required />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 广州药监商品码 -->
+                        <div class="customize-form-group edit">
+                            <label>广州药监商品码:</label>
+                            <input type="text" name="guangzhou_pharmaceutical_supervision_code" class="styled-input edit_inputs" th:value="${guangzhou_pharmaceutical_supervision_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 统筹报销商品 -->
+                        <div class="customize-form-group edit">
+                            <label>统筹报销商品:</label>
+                            <select name="coordinated_reimbursement_product" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${coordinated_reimbursement_product}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 两盘货属性 -->
+                        <div class="customize-form-group edit">
+                            <label>两盘货属性:</label>
+                            <input type="text" name="two_pantry_goods_attribute" class="styled-input edit_inputs" th:value="${two_pantry_goods_attribute}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否限制门店经营 -->
+                        <div class="customize-form-group edit">
+                            <label>是否限制门店经营:</label>
+                            <select name="is_store_operation_restricted" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_store_operation_restricted}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否可配加盟店 -->
+                        <div class="customize-form-group edit">
+                            <label>是否可配加盟店:</label>
+                            <select name="can_be_allocated_to_franchise_stores" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${can_be_allocated_to_franchise_stores}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 加盟店是否享受统采政策 -->
+                        <div class="customize-form-group edit">
+                            <label>加盟店是否享受统采政策:</label>
+                            <select name="franchise_stores_enjoy_unified_procurement_policy" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${franchise_stores_enjoy_unified_procurement_policy}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 医保采购类型 -->
+                        <div class="customize-form-group edit">
+                            <label>医保采购类型:</label>
+                            <input type="text" name="medical_insurance_purchase_type" class="styled-input edit_inputs" th:value="${medical_insurance_purchase_type}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 物流属性 -->
+                <div id="tab-3" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit3" >
+                        <!-- 存储分类 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">存储分类:</label>
+                            <input type="text" name="storage_category" class="styled-input edit_inputs" th:value="${storage_category}" required />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否易碎 -->
+                        <div class="customize-form-group edit">
+                            <label>是否易碎:</label>
+                            <select name="is_fragile" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_fragile}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否危险品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否危险品:</label>
+                            <select name="is_hazardous" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_hazardous}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否异形品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否异形品:</label>
+                            <select name="is_odd_shape" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_odd_shape}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本包装长 -->
+                        <div class="customize-form-group edit">
+                            <label>基本包装长:</label>
+                            <input type="text" name="basic_package_length" class="styled-input edit_inputs" th:value="${basic_package_length}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本包装宽 -->
+                        <div class="customize-form-group edit">
+                            <label>基本包装宽:</label>
+                            <input type="text" name="basic_package_width" class="styled-input edit_inputs" th:value="${basic_package_width}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 基本包装高 -->
+                        <div class="customize-form-group edit">
+                            <label>基本包装高:</label>
+                            <input type="text" name="basic_package_height" class="styled-input edit_inputs" th:value="${basic_package_height}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 饮片最小包装量 -->
+                        <div class="customize-form-group edit">
+                            <label>饮片最小包装量:</label>
+                            <input type="text" name="minimum_package_quantity" class="styled-input edit_inputs" th:value="${minimum_package_quantity}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中包装量 -->
+                        <div class="customize-form-group edit">
+                            <label>中包装量:</label>
+                            <input type="text" name="medium_package_quantity" class="styled-input edit_inputs" th:value="${medium_package_quantity}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 箱包装量 -->
+                        <div class="customize-form-group edit">
+                            <label>箱包装量:</label>
+                            <input type="text" name="box_package_quantity" class="styled-input edit_inputs" th:value="${box_package_quantity}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否启用中包装 -->
+                        <div class="customize-form-group edit">
+                            <label>是否启用中包装:</label>
+                            <select name="is_medium_package_enabled" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_medium_package_enabled}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中包装起请比例 -->
+                        <div class="customize-form-group edit">
+                            <label>中包装起请比例:</label>
+                            <input type="text" name="medium_package_request_ratio" class="styled-input edit_inputs" th:value="${medium_package_request_ratio}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 质管属性 -->
+                <div id="tab-4" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit4" >
+                        <!-- 是否生产批号管理 -->
+                        <div class="customize-form-group edit">
+                            <label>是否生产批号管理:</label>
+                            <select name="is_production_batch_management" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_production_batch_management}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 经营范围 -->
+                        <div class="customize-form-group edit">
+                            <label>经营范围:</label>
+                            <textarea name="business_scope" class="styled-input edit_inputs" th:text="${business_scope}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方类别 -->
+                        <div class="customize-form-group edit">
+                            <label>处方类别:</label>
+                            <input type="text" name="prescription_category" class="styled-input edit_inputs" th:value="${prescription_category}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方类别二级 -->
+                        <div class="customize-form-group edit">
+                            <label>处方类别二级:</label>
+                            <input type="text" name="prescription_category_secondary" class="styled-input edit_inputs" th:value="${prescription_category_secondary}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方类别三级 -->
+                        <div class="customize-form-group edit">
+                            <label>处方类别三级:</label>
+                            <input type="text" name="prescription_category_tertiary" class="styled-input edit_inputs" th:value="${prescription_category_tertiary}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号1 -->
+                        <div class="customize-form-group edit">
+                            <label class="is-required">批准文号1:</label>
+                            <input type="text" name="approval_number_1" class="styled-input edit_inputs" th:value="${approval_number_1}" required />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号1有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>批准文号1有效期:</label>
+                            <input type="date" name="approval_number_1_expiry" class="styled-input edit_inputs" th:value="${approval_number_1_expiry}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号2 -->
+                        <div class="customize-form-group edit">
+                            <label>批准文号2:</label>
+                            <input type="text" name="approval_number_2" class="styled-input edit_inputs" th:value="${approval_number_2}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批准文号2有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>批准文号2有效期:</label>
+                            <input type="date" name="approval_number_2_expiry" class="styled-input edit_inputs" th:value="${approval_number_2_expiry}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号1 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号1:</label>
+                            <input type="text" name="registration_certificate_1" class="styled-input edit_inputs" th:value="${registration_certificate_1}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号1有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号1有效期:</label>
+                            <input type="date" name="registration_certificate_1_expiry" class="styled-input edit_inputs" th:value="${registration_certificate_1_expiry}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号2 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号2:</label>
+                            <input type="text" name="registration_certificate_2" class="styled-input edit_inputs" th:value="${registration_certificate_2}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 注册证号2有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>注册证号2有效期:</label>
+                            <input type="date" name="registration_certificate_2_expiry" class="styled-input edit_inputs" th:value="${registration_certificate_2_expiry}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 生产许可证号/备案 -->
+                        <div class="customize-form-group edit">
+                            <label>生产许可证号/备案:</label>
+                            <input type="text" name="production_license" class="styled-input edit_inputs" th:value="${production_license}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 生产许可证号有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>生产许可证号有效期:</label>
+                            <input type="date" name="production_license_expiry" class="styled-input edit_inputs" th:value="${production_license_expiry}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否冷链药品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否冷链药品:</label>
+                            <select name="is_cold_chain_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_cold_chain_drug}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否二次验复 -->
+                        <div class="customize-form-group edit">
+                            <label>是否二次验复:</label>
+                            <select name="is_second_inspection" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_second_inspection}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 本位码 -->
+                        <div class="customize-form-group edit">
+                            <label>本位码:</label>
+                            <input type="text" name="local_code" class="styled-input edit_inputs" th:value="${local_code}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 药理毒理 -->
+                        <div class="customize-form-group edit">
+                            <label>药理毒理:</label>
+                            <textarea name="pharmacology_toxicology" class="styled-input edit_inputs" th:text="${pharmacology_toxicology}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 临床试验 -->
+                        <div class="customize-form-group edit">
+                            <label>临床试验:</label>
+                            <textarea name="clinical_trial" class="styled-input edit_inputs" th:text="${clinical_trial}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 药物过量 -->
+                        <div class="customize-form-group edit">
+                            <label>药物过量:</label>
+                            <textarea name="drug_overdose" class="styled-input edit_inputs" th:text="${drug_overdose}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 老年患者用药 -->
+                        <div class="customize-form-group edit">
+                            <label>老年患者用药:</label>
+                            <textarea name="elderly_patient_usage" class="styled-input edit_inputs" th:text="${elderly_patient_usage}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 儿童患者用药 -->
+                        <div class="customize-form-group edit">
+                            <label>儿童患者用药:</label>
+                            <textarea name="pediatric_patient_usage" class="styled-input edit_inputs" th:text="${pediatric_patient_usage}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 孕妇及哺乳期用药 -->
+                        <div class="customize-form-group edit">
+                            <label>孕妇及哺乳期用药:</label>
+                            <textarea name="pregnant_breastfeeding_usage" class="styled-input edit_inputs" th:text="${pregnant_breastfeeding_usage}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 药品成份 -->
+                        <div class="customize-form-group edit">
+                            <label>药品成份:</label>
+                            <textarea name="ingredients" class="styled-input edit_inputs" rows="4" th:text="${ingredients}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 集团质量状态 -->
+                        <div class="customize-form-group edit">
+                            <label>集团质量状态:</label>
+                            <input type="text" name="group_quality_status" class="styled-input edit_inputs" th:value="${group_quality_status}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 包装规格 -->
+                        <div class="customize-form-group edit">
+                            <label>包装规格:</label>
+                            <input type="text" name="package_specification" class="styled-input edit_inputs" th:value="${package_specification}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 贮藏 -->
+                        <div class="customize-form-group edit">
+                            <label>贮藏:</label>
+                            <textarea name="storage_conditions" class="styled-input edit_inputs" rows="4" th:text="${storage_conditions}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 包装是否含追溯码 -->
+                        <div class="customize-form-group edit">
+                            <label>包装是否含追溯码:</label>
+                            <select name="has_traceability_code" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${has_traceability_code}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 允收期(天) -->
+                        <div class="customize-form-group edit">
+                            <label>允收期(天):</label>
+                            <input type="number" name="acceptance_period_days" class="styled-input edit_inputs" min="0" th:value="${acceptance_period_days}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否管理序列号 -->
+                        <div class="customize-form-group edit">
+                            <label>是否管理序列号:</label>
+                            <select name="is_serial_number_managed" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_serial_number_managed}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 近效期 -->
+                        <div class="customize-form-group edit">
+                            <label>近效期:</label>
+                            <input type="date" name="near_expiry_date" class="styled-input edit_inputs" th:value="${near_expiry_date}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 企业持有批准文号有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>企业持有批准文号有效期:</label>
+                            <input type="date" name="company_approval_expiry" class="styled-input edit_inputs" th:value="${company_approval_expiry}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 企业持有注册证号有效期 -->
+                        <div class="customize-form-group edit">
+                            <label>企业持有注册证号有效期:</label>
+                            <input type="date" name="company_registration_expiry" class="styled-input edit_inputs" th:value="${company_registration_expiry}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否扫码追溯商品 -->
+                        <div class="customize-form-group edit">
+                            <label>是否扫码追溯商品:</label>
+                            <select name="is_scan_traceable" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_scan_traceable}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中国野生动物经营利用管理专用标识 -->
+                        <div class="customize-form-group edit">
+                            <label>中国野生动物经营利用管理专用标识:</label>
+                            <input type="text" name="wildlife_management_identification" class="styled-input edit_inputs" th:value="${wildlife_management_identification}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 特定药品销售管控 -->
+                        <div class="customize-form-group edit">
+                            <label>特定药品销售管控:</label>
+                            <textarea name="special_sales_control" class="styled-input edit_inputs" rows="4" th:text="${special_sales_control}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否UDI扫码 -->
+                        <div class="customize-form-group edit">
+                            <label>是否UDI扫码:</label>
+                            <select name="is_udi_scanned" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_udi_scanned}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 处方最大用药天数 -->
+                        <div class="customize-form-group edit">
+                            <label>处方最大用药天数:</label>
+                            <input type="number" name="max_prescription_days" class="styled-input edit_inputs" min="0" th:value="${max_prescription_days}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 限制用药 -->
+                        <div class="customize-form-group edit">
+                            <label>限制用药:</label>
+                            <textarea name="restricted_usage" class="styled-input edit_inputs" rows="4" th:text="${restricted_usage}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 销售属性 -->
+                <div id="tab-5" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit5" >
+                        <!-- 参考零售价 -->
+                        <div class="customize-form-group edit">
+                            <label>参考零售价:</label>
+                            <input type="number" name="reference_retail_price" class="styled-input edit_inputs" step="0.01" th:value="${reference_retail_price}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上销售 -->
+                        <div class="customize-form-group edit">
+                            <label>线上销售:</label>
+                            <select name="online_sales" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_sales}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中台商品SPUID -->
+                        <div class="customize-form-group edit">
+                            <label>中台商品SPUID:</label>
+                            <input type="text" name="mid_platform_product_spuid" class="styled-input edit_inputs" th:value="${mid_platform_product_spuid}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 中台商品类型 -->
+                        <div class="customize-form-group edit">
+                            <label>中台商品类型:</label>
+                            <input type="text" name="mid_platform_product_type" class="styled-input edit_inputs" th:value="${mid_platform_product_type}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 外部传输系统 -->
+                        <div class="customize-form-group edit">
+                            <label>外部传输系统:</label>
+                            <input type="text" name="external_transmission_system" class="styled-input edit_inputs" th:value="${external_transmission_system}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上O2O -->
+                        <div class="customize-form-group edit">
+                            <label>线上O2O:</label>
+                            <select name="online_o2o" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_o2o}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上B2C -->
+                        <div class="customize-form-group edit">
+                            <label>线上B2C:</label>
+                            <select name="online_b2c" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_b2c}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上互医 -->
+                        <div class="customize-form-group edit">
+                            <label>线上互医:</label>
+                            <select name="online_mutual_medical" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_mutual_medical}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 线上品牌健康 -->
+                        <div class="customize-form-group edit">
+                            <label>线上品牌健康:</label>
+                            <select name="online_brand_health" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_brand_health}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品名 -->
+                        <div class="customize-form-group edit">
+                            <label>商品名:</label>
+                            <input type="text" name="xproduct_name" class="styled-input edit_inputs" th:value="${xproduct_name}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 最小陈列量 -->
+                        <div class="customize-form-group edit">
+                            <label>最小陈列量:</label>
+                            <input type="number" name="minimum_display_quantity" class="styled-input edit_inputs" min="0" th:value="${minimum_display_quantity}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 销售属性 -->
+                        <div class="customize-form-group edit">
+                            <label>销售属性:</label>
+                            <textarea name="sales_attributes" class="styled-input edit_inputs" rows="4" th:text="${sales_attributes}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止配送 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止配送:</label>
+                            <select name="prohibit_delivery" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_delivery}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止返仓 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止返仓:</label>
+                            <select name="prohibit_return_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_return_warehouse}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 禁止销售 -->
+                        <div class="customize-form-group edit">
+                            <label>禁止销售:</label>
+                            <select name="prohibit_sales" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_sales}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 是否可拆零 -->
+                        <div class="customize-form-group edit">
+                            <label>是否可拆零:</label>
+                            <select name="can_be_divided" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${can_be_divided}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 拆零单位 -->
+                        <div class="customize-form-group edit">
+                            <label>拆零单位:</label>
+                            <input type="text" name="division_unit" class="styled-input edit_inputs" th:value="${division_unit}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 拆零比例 -->
+                        <div class="customize-form-group edit">
+                            <label>拆零比例:</label>
+                            <input type="number" name="division_ratio" class="styled-input edit_inputs" step="0.01" th:value="${division_ratio}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- DAAS业态 -->
+                        <div class="customize-form-group edit">
+                            <label>DAAS业态:</label>
+                            <input type="text" name="daas_business_model" class="styled-input edit_inputs" th:value="${daas_business_model}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 促销审批 -->
+                        <div class="customize-form-group edit">
+                            <label>促销审批:</label>
+                            <select name="promotion_approval" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
+                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${promotion_approval}" th:text="${dict.dictLabel}"></option>
+                            </select>
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 批发主推等级 -->
+                        <div class="customize-form-group edit">
+                            <label>批发主推等级:</label>
+                            <input type="text" name="wholesale_priority_level" class="styled-input edit_inputs" th:value="${wholesale_priority_level}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 业态属性 -->
+                <div id="tab-6" class="tab-pane">
+                    <form class="customize-search-form" id="form-server-edit6" >
+                        <!-- 平台属性 -->
+                        <div class="customize-form-group edit">
+                            <label>平台属性:</label>
+                            <input type="text" name="platform_property" class="styled-input edit_inputs" th:value="${platform_property}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 企业属性 -->
+                        <div class="customize-form-group edit">
+                            <label>企业属性:</label>
+                            <input type="text" name="company_property" class="styled-input edit_inputs" th:value="${company_property}" />
+                            <span class="span_line" readonly></span>
+                        </div>
+
+                        <!-- 商品加盟属性 -->
+                        <div class="customize-form-group edit">
+                            <label>商品加盟属性:</label>
+                            <textarea name="product_franchise_attribute" class="styled-input edit_inputs" rows="4" th:text="${product_franchise_attribute}"></textarea>
+                            <span class="span_line" readonly></span>
+                        </div>
+                    </form>
+                </div>
+                <!-- 图片属性 -->
+                <div id="tab-7" class="tab-pane">
+                    <div class="ibox-content">
+                        <div class="fileinput fileinput-new" data-provides="fileinput">
+                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
+                                <span class="preview-text">点击上传图片</span>
+                            </div>
+                            <div>
+                                <input type="file" id="external_packaging_file" style="display: none;" />
+                                <a href="javascript:;" class="btn btn-white fileinput-exists clear-button" data-dismiss="fileinput">清除</a>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+    <div class="main-content" id="content-main">
+        <div class="col-sm-offset-5 col-sm-10">
+            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
+            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
+        </div>
+    </div>
+</div>
+<th:block th:include="include :: footer" />
+<th:block th:include="include :: select2-css" />
+<th:block th:include="include :: bootstrap-select-css" />
+<th:block th:include="include :: select2-js" />
+<th:block th:include="include :: bootstrap-select-js" />
+<th:block th:include="include :: jasny-bootstrap-js" />
+</body>
+</html>
+<style>
+    .fileinput-preview {
+        position: relative;
+        width: 200px;
+        height: 150px;
+        border: 1px solid #ccc;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+    }
+
+    .plus-sign {
+        font-size: 36px;
+        color: #ccc;
+        position: absolute;
+        top: 50%;
+        left: 50%;
+        transform: translate(-50%, -50%);
+    }
+
+    .preview-text {
+        font-size: 14px;
+        color: #999;
+        position: absolute;
+        top: 50%;
+        left: 50%;
+        transform: translate(-50%, -50%);
+    }
+
+    .clear-button {
+        margin-top: 10px;
+    }
+</style>
+<script th:inline="javascript">
+    var prefix = ctx + "sp/sp";
+
+    function collectFormData() {
+        // 定义要收集的表单
+        var forms = [
+            $("#form-server-edit1"),
+            $("#form-server-edit2"),
+            $("#form-server-edit3"),
+            $("#form-server-edit4"),
+            $("#form-server-edit5"),
+            $("#form-server-edit6"),
+            $("#form-server-edit12")
+        ];
+
+        // 获取 product_code 并验证是否已填写
+        var productCodeData = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_code');
+        if (productCodeData.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】产品编码!");
+            return null;
+        }
+        var product_name = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_name');
+        if (product_name.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品名称!");
+            return null;
+        }
+        var manufacturer = $("#form-server-edit1").serializeArray().find(item => item.name === 'manufacturer');
+        if (manufacturer.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】生产厂家!");
+            return null;
+        }
+        var product_status = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_status');
+        if (product_status.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品状态!");
+            return null;
+        }
+        var category_maj = $("#form-server-edit1").serializeArray().find(item => item.name === 'category_maj');
+        if (category_maj.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品大类!");
+            return null;
+        }
+        var category_min = $("#form-server-edit1").serializeArray().find(item => item.name === 'category_min');
+        if (category_min.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】商品小类!");
+            return null;
+        }
+        var specification = $("#form-server-edit1").serializeArray().find(item => item.name === 'specification');
+        if (specification.value === '') {
+            $.modal.alertWarning("请先填写【基本属性】规格!");
+            return null;
+        }
+        var packaging = $("#form-server-edit1").serializeArray().find(item => item.name === 'packaging');
+        if (packaging.value === '') {
+            $.modal.alertWarning("请先填【基本属性】写包装!");
+            return null;
+        }
+        var reference_purchase_price = $("#form-server-edit2").serializeArray().find(item => item.name === 'reference_purchase_price');
+        if (reference_purchase_price.value === '') {
+            $.modal.alertWarning("请先填写【采购属性】参考进价!");
+            return null;
+        }
+        var national_negotiated_price = $("#form-server-edit2").serializeArray().find(item => item.name === 'national_negotiated_price');
+        if (national_negotiated_price.value === '') {
+            $.modal.alertWarning("请先填写【采购属性】国谈价格!");
+            return null;
+        }
+        var storage_category = $("#form-server-edit3").serializeArray().find(item => item.name === 'storage_category');
+        if (storage_category.value === '') {
+            $.modal.alertWarning("请先填写【存储分类】存储分类!");
+            return null;
+        }
+
+        var approval_number_1 = $("#form-server-edit4").serializeArray().find(item => item.name === 'approval_number_1');
+        if (approval_number_1.value === '') {
+            $.modal.alertWarning("请先填写【质管属性】批准文号1!");
+            return null;
+        }
+        var reference_retail_price = $("#form-server-edit5").serializeArray().find(item => item.name === 'reference_retail_price');
+        if (reference_retail_price.value === '') {
+            $.modal.alertWarning("请先填写【销售属性】参考零售价!");
+            return null;
+        }
+        var platform_property = $("#form-server-edit6").serializeArray().find(item => item.name === 'platform_property');
+        if (platform_property.value === '') {
+            $.modal.alertWarning("请先填写【业态属性】平台属性!");
+            return null;
+        }
+
+        var follow_up_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'follow_up_item');
+        if (follow_up_item.value === '') {
+            $.modal.alertWarning("请选择是【DTP属性】否随访品!");
+            return null;
+        }
+
+        var cold_chain_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'cold_chain_item');
+        if (cold_chain_item.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否冷链品!");
+            return null;
+        }
+
+        var registered_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'registered_item');
+        if (registered_item.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否登记品!");
+            return null;
+        }
+
+        var flow_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'flow_item');
+        if (flow_item.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否流向品!");
+            return null;
+        }
+
+        var prescription_required = $("#form-server-edit12").serializeArray().find(item => item.name === 'prescription_required');
+        if (prescription_required.value === '') {
+            $.modal.alertWarning("请选择【DTP属性】是否是否凭处方销售!");
+            return null;
+        }
+
+        // 初始化合并后的数据数组
+        var allData = [];
+
+        // 遍历每个表单并将数据添加到 allData 中
+        forms.forEach(function(form) {
+            var formData = $(form).serializeArray();
+            // 确保 product_code 存在于每个表单数据中
+            formData.push({ name: 'product_code', value: productCodeData.value });
+            allData = allData.concat(formData);
+        });
+
+        return allData;
+    }
+    function submitHandler() {
+        if ($.validate.form()) {
+            var allData = collectFormData();
+            if (allData.product_code === '') {
+                $.modal.alertWarning("请先填写产品编码!");
+                return;
+            }
+
+            $.ajax({
+                url: prefix + "/ProductUpdate", // 后台接口地址
+                type: "post",
+                dataType: "json",
+                data: allData,
+                beforeSend: function () {
+                    $.modal.loading("正在处理中,请稍候...");
+                },
+                success: function(result) {
+                    $.modal.closeLoading();
+                    if (result.code===0) {
+                        $.modal.alertSuccess(result.msg || "操作成功");
+                        $.operate.successTabCallback(result);
+                    } else {
+                        $.modal.alertWarning(result.msg || "操作失败");
+                    }
+                },
+                error: function(xhr, status, error) {
+                    $.modal.closeLoading();
+                    console.error("AJAX Error: ", status, error);
+                    $.modal.alertWarning("服务器错误:" + error);
+                }
+            });
+        }
+    }
+</script>

+ 178 - 0
health-admin/src/main/resources/templates/spgl/SPProductinfoList.html

@@ -0,0 +1,178 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<head>
+    <meta charset="UTF-8">
+    <meta name="format-detection" content="telephone=no">
+    <th:block th:include="include :: header('商品列表')" />
+    <th:block th:include="include :: layout-latest-css" />
+    <th:block th:include="include :: ztree-css" />
+</head>
+
+<body class="gray-bg">
+<div class="ui-layout-center">
+    <div class="container-div">
+        <div class="row">
+            <div class="col-sm-12 search-collapse" >
+                <div class="query-condition-container">
+                    <h4 class="query-condition-title">查询条件</h4>
+                    <div class="query-buttons">
+                        <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
+                        <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
+                    </div>
+                </div>
+                <form id="SSpglJfspProductinfo-form" class="customize-search-form">
+                <div class="customize-form-group-container">
+
+                <div class="customize-form-group">
+                    <label>商品编码:</label>
+                    <input type="text" class="styled-input" placeholder="请输入商品编码" name="product_code"/>
+                </div>
+
+                <div class="customize-form-group">
+                    <label>商品名称:</label>
+                    <input type="text" class="styled-input" placeholder="请输入商品名称" name="product_name"/>
+                </div>
+             </div>
+             </form>
+            </div>
+
+            <div class="btn-group-sm" id="toolbar" role="group">
+                <a class="btn btn-success" onclick="$.operate.addTab()" shiro:hasPermission="sp:sp:add">
+                    <i class="fa fa-plus"></i> 新增商品
+                </a>
+<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">-->
+<!--                    <i class="fa fa-remove"></i> 删除-->
+<!--                </a>-->
+
+            </div>
+
+            <div class="col-sm-12 select-table table-striped" style="width: 100%; overflow-x: auto;">
+                <table id="bootstrap-table" class="fixed-layout-table"></table>
+            </div>
+        </div>
+    </div>
+</div>
+
+<th:block th:include="include :: footer" />
+<th:block th:include="include :: layout-latest-js" />
+<th:block th:include="include :: bootstrap-table-fixed-columns-js" />
+<th:block th:include="include :: ztree-js" />
+<script th:inline="javascript">
+    var editFlag = [[${@permission.hasPermi('sp:sp:edit')}]];
+    var removeFlag = [[${@permission.hasPermi('sp:sp:remove')}]];
+    var prefix = ctx + "sp/sp";
+    $(function() {
+        var panehHidden = false;
+        if ($(this).width() < 1590) {
+            panehHidden = true;
+        }
+        $('body').layout({ initClosed: panehHidden, west__size: 185, resizeWithWindow: false });
+        // 回到顶部绑定
+        if ($.fn.toTop !== undefined) {
+            var opt = {
+                win:$('.ui-layout-center'),
+                doc:$('.ui-layout-center')
+            };
+            $('#scroll-up').toTop(opt);
+        }
+        queryArchivesList();
+    });
+
+    function queryArchivesList() {
+        var options = {
+            url: prefix + "/SPProductinfoList",
+            viewUrl: prefix + "/sSpglJfspProductinfoView/{id}",
+            createUrl: prefix + "/SPProductAdd",
+            updateUrl: prefix + "/SPProductEdit/{id}",
+            removeUrl: prefix + "/SPProductRemove",
+            /*exportUrl: prefix + "/export",
+            importUrl: prefix + "/importData",
+            importTemplateUrl: prefix + "/importTemplate",*/
+            sortName: "id",
+            sortOrder: "asc",
+            modalName: "药品",
+            fitColumns: true,
+            striped: true,
+            autoRowHeight: true,
+            rowNumbers: true,
+            showFooter:true,  //是否显示表格底部区域。
+            clickToSelect: true, //是否启用点击行时选中整行的功能。
+            singleSelect: false, //是否仅允许选择一行
+            fixedColumns: true,
+            //fixedNumber: 3,
+            fixedRightNumber: 1,
+            columns: [{
+                checkbox: true
+            },
+                { field: 'id', title: '主键', align: 'center', visible: false },
+                { field: 'product_code', title: '商品编码', align: 'center' },
+                { field: 'product_name', title: '商品名称', align: 'center' },
+                { field: 'manufacturer', title: '生产厂家', align: 'center' },
+                { field: 'product_status', title: '商品状态', align: 'center' },
+                { field: 'category_maj', title: '商品大类', align: 'center' },
+                { field: 'category_min', title: '商品子类', align: 'center' },
+                { field: 'specification', title: '规格', align: 'center' },
+                { field: 'packaging', title: '包装', align: 'center' },
+
+                { field: 'reference_purchase_price', title: '参考进价', align: 'center' },
+                { field: 'national_negotiated_price', title: '国谈价格', align: 'center' },
+
+                { field: 'storage_category', title: '存储分类', align: 'center' },
+
+                { field: 'approval_number_1', title: '批准文号1', align: 'center' },
+
+                {
+                    title: '操作',
+                    align: 'center',
+                    width: 165,
+                    formatter: function(value, row, index) {
+                        if (row.id) {
+                            var actions = [];
+                            actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.id + '\')"><i class="fa fa-edit"></i>修改</a> ');
+                            /*actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="$.operate.view(\'' + row.id + '\')"><i class="fa fa-eye"></i>详情</a> ');*/
+                            actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
+                            return actions.join('');
+                        } else {
+                            return "";
+                        }
+                    }
+                }]
+        };
+        $.table.init(options);
+    }
+
+    /* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
+    function resetPre() {
+        resetDate();
+        $("#SSpglJfspProductinfo-form")[0].reset();
+        $.table.search();
+        _refresh();
+    }
+    function edit_page(id){
+        table.set();
+        var url = "/404.html";
+        if ($.common.isNotEmpty(id)) {
+            url = table.options.updateUrl.replace("{id}", id);
+        } else {
+            var id = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
+            if (id.length == 0) {
+                $.modal.alertWarning("请至少选择一条记录");
+                return;
+            }
+            url = table.options.updateUrl.replace("{id}", id);
+        }
+        $.modal.openTab("修改" + table.options.modalName, url + "?editTage=1" );
+    }
+
+    /* 用户状态显示 */
+    function statusTools(row) {
+        if (row.status == 1) {
+            return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="enable(\'' + row.userId + '\')"></i> ';
+        } else {
+            return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="disable(\'' + row.userId + '\')"></i> ';
+        }
+    }
+</script>
+</body>
+
+</html>

+ 138 - 0
health-system/src/main/java/com/bzd/system/service/spgl/SPProductinfoService.java

@@ -0,0 +1,138 @@
+package com.bzd.system.service.spgl;
+
+import com.bzd.common.config.dao.DaoBase;
+import com.bzd.common.config.dao.DaoSupport;
+import com.bzd.common.config.dao.PageData;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+
+/**
+*
+* 门店积分商品列表 service
+* @author LiXiangFei
+* @since 2024-10-15
+*/
+
+@Service
+public class SPProductinfoService {
+
+    @Autowired
+    private DaoBase dao;
+
+    @Resource(name = "daoSupport")
+    private DaoSupport daoSupport;
+
+    @Transactional
+    public Integer productAdd(PageData pd)throws Exception {
+        Integer i = productAdd2(pd);
+        Integer i3 = productAdd3(pd);
+        Integer i4 = productAdd4(pd);
+        Integer i5 = productAdd5(pd);
+        Integer i6 = productAdd6(pd);
+        Integer i12 = productAdd12(pd);
+        if (i!=1||i3!=1||i4!=1||i5!=1||i6!=1||i12!=1){
+            return 0;
+        }
+        return daoSupport.update("SPProductinfoMapper.addProductAdd", pd);
+    }
+
+    @Transactional
+    public Integer ProductUpdate(PageData pd)throws Exception {
+        //查询
+        List<PageData> pageData = (List<PageData>) daoSupport.findForList("SPProductinfoMapper.findSPProductinfoCode", pd);
+
+        if(!pageData.get(0).get("code3").toString().equals("0")){
+            Integer i = daoSupport.update("SPProductinfoMapper.productUpdate2", pd);
+        }else {
+            productAdd2(pd);
+        }
+        if(!pageData.get(0).get("code4").toString().equals("0")) {
+            Integer i3 = daoSupport.update("SPProductinfoMapper.productUpdate3", pd);
+        }else {
+            productAdd3(pd);
+        }
+        if(!pageData.get(0).get("code5").toString().equals("0")) {
+            Integer i4 = daoSupport.update("SPProductinfoMapper.productUpdate4", pd);
+        }else {
+            productAdd4(pd);
+        }
+        if(!pageData.get(0).get("code6").toString().equals("0")) {
+            Integer i5 = daoSupport.update("SPProductinfoMapper.productUpdate5", pd);
+        }else {
+            productAdd5(pd);
+        }
+        if(!pageData.get(0).get("code7").toString().equals("0")) {
+            Integer i6 = daoSupport.update("SPProductinfoMapper.productUpdate6", pd);
+        }else {
+            productAdd6(pd);
+        }
+        if(!pageData.get(0).get("code12").toString().equals("0")) {
+            Integer i12 = daoSupport.update("SPProductinfoMapper.productUpdate12", pd);
+        }else {
+            productAdd12(pd);
+        }
+        return daoSupport.update("SPProductinfoMapper.productUpdate", pd);
+    }
+    public Integer productAdd2(PageData pd)throws Exception {
+        return daoSupport.update("SPProductinfoMapper.addProductAdd2", pd);
+    }
+    public Integer productAdd3(PageData pd)throws Exception {
+        return daoSupport.update("SPProductinfoMapper.addProductAdd3", pd);
+    }
+    public Integer productAdd4(PageData pd)throws Exception {
+        return daoSupport.update("SPProductinfoMapper.addProductAdd4", pd);
+    }
+    public Integer productAdd5(PageData pd)throws Exception {
+        return daoSupport.update("SPProductinfoMapper.addProductAdd5", pd);
+    }
+    public Integer productAdd6(PageData pd)throws Exception {
+        return daoSupport.update("SPProductinfoMapper.addProductAdd6", pd);
+    }
+
+    public Integer productAdd12(PageData pd)throws Exception {
+        return daoSupport.update("SPProductinfoMapper.addProductAdd12", pd);
+    }
+
+    public List<PageData> findSPProductinfoList(PageData pd) throws Exception{
+        return (List<PageData>) daoSupport.findForList("SPProductinfoMapper.findSPProductinfoList", pd);
+    }
+
+    public Integer SPProductinfoRemove(PageData pd)throws Exception {
+        // 查询数据 code
+        List<PageData> codeList = (List<PageData>) daoSupport.findForList("SPProductinfoMapper.findSPProductinfoProductCode", pd);
+        if(codeList.size()>0){
+            if (codeList.get(0).get("product_code")!=null){
+                pd.put("product_code",codeList.get(0).get("product_code"));
+                daoSupport.delete("SPProductinfoMapper.deleteProductByCode", pd);
+                daoSupport.delete("SPProductinfoMapper.deleteProductInformationByCode", pd);
+                daoSupport.delete("SPProductinfoMapper.deleteProductDetailsByCode", pd);
+                daoSupport.delete("SPProductinfoMapper.deleteProductClassificationByCode", pd);
+                daoSupport.delete("SPProductinfoMapper.deleteProductAttributesByCode", pd);
+                daoSupport.delete("SPProductinfoMapper.deleteProductDtpinfoByCode", pd);
+            }
+        }
+        return daoSupport.delete("SPProductinfoMapper.SPProductinfoRemove", pd);
+    }
+
+
+    public Integer updateSSpglJfspProductinfo(PageData pd)throws Exception {
+        return daoSupport.update("SSpglJfspProductinfoMapper.updateSSpglJfspProductinfo", pd);
+    }
+
+    public PageData findAllList(PageData pd) throws Exception{
+        List<PageData> codeList = (List<PageData>) daoSupport.findForList("SPProductinfoMapper.findSPProductinfoProductCode", pd);
+        if(codeList.size()>0){
+            if (codeList.get(0).get("product_code")!=null){
+                pd.put("product_code",codeList.get(0).get("product_code"));
+                List<PageData> list = (List<PageData>) daoSupport.findForList("SPProductinfoMapper.findAllList", pd);
+                return list.get(0);
+            }
+        }
+        return null;
+    }
+}

+ 1939 - 0
health-system/src/main/resources/mapper/spgl/SPProductinfoMapper.xml

@@ -0,0 +1,1939 @@
+<?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="SPProductinfoMapper" >
+    <!-- 通用查询映射结果 -->
+    <select id="findAllList" parameterType="pd" resultType="pd">
+        select *
+        from s_gxhpz_product_info pi
+        left join s_gxhpz_product_dtpinfo di on di.product_code=pi.product_code
+        left join s_gxhpz_product_information pf on pf.product_code=pi.product_code
+        left join s_gxhpz_product_zg zg on zg.product_code=pi.product_code
+        left join s_gxhpz_product_details pd on pd.product_code=pi.product_code
+        left join s_gxhpz_product_classification pc on pc.product_code=pi.product_code
+        left join s_gxhpz_product_attributes pa on pa.product_code=pi.product_code
+        where 1=1
+        <if test="product_name != null and product_name != ''">
+            and pi.product_name = #{product_name}
+        </if>
+        <if test="product_code != null and product_code != ''">
+            and pi.product_code = #{product_code}
+        </if>
+    </select>
+
+    <select id="findSPProductinfoList" parameterType="pd" resultType="pd">
+        select * from (select pi.id ,
+        pi.product_code,
+        pi.product_name,
+        pi.manufacturer,
+        pi.product_status,
+        pi.category_maj,
+        pi.category_min,
+        pi.specification,
+        pi.packaging,
+
+        pf.reference_purchase_price,
+        pf.national_negotiated_price,
+
+        pc.storage_category,
+
+        zg.approval_number_1
+
+
+        from s_gxhpz_product_info pi
+        left join s_gxhpz_product_dtpinfo di on di.product_code=pi.product_code
+        left join s_gxhpz_product_information pf on pf.product_code=pi.product_code
+        left join s_gxhpz_product_zg zg on zg.product_code=pi.product_code
+        left join s_gxhpz_product_details pd on pd.product_code=pi.product_code
+        left join s_gxhpz_product_classification pc on pc.product_code=pi.product_code
+        left join s_gxhpz_product_attributes pa on pa.product_code=pi.product_code
+        where 1=1
+        )pi where 1=1
+        <if test="product_name != null and product_name != ''">
+            and product_name = #{product_name}
+        </if>
+        <if test="product_code != null and product_code != ''">
+            and product_code = #{product_code}
+        </if>
+        <if test="manufacturer != null and manufacturer != ''">
+            and manufacturer = #{manufacturer}
+        </if>
+        <if test="product_status != null and product_status != ''">
+            and product_status = #{product_status}
+        </if>
+        <if test="category_maj != null and category_maj != ''">
+            and category_maj = #{category_maj}
+        </if>
+        <if test="category_min != null and category_min != ''">
+            and category_min = #{category_min}
+        </if>
+        <if test="specification != null and specification != ''">
+            and specification = #{specification}
+        </if>
+        <if test="reference_purchase_price != null and reference_purchase_price != ''">
+            and reference_purchase_price = #{reference_purchase_price}
+        </if>
+        <if test="national_negotiated_price != null and national_negotiated_price != ''">
+            and national_negotiated_price = #{national_negotiated_price}
+        </if>
+        <if test="storage_category != null and storage_category != ''">
+            and storage_category = #{storage_category}
+        </if>
+        <if test="approval_number_1 != null and approval_number_1 != ''">
+            and approval_number_1 = #{approval_number_1}
+        </if>
+
+    </select>
+
+
+    <update id="updateSSpglJfspProductinfo" parameterType="pd" >
+        update s_gxhpz_product_info
+        <trim prefix=" SET " suffix="" prefixOverrides="," suffixOverrides=",">
+            <if test="product_name != null and product_name != ''">
+                and product_name = #{product_name}
+            </if>
+            <if test="product_code != null and product_code != ''">
+                and product_code = #{product_code}
+            </if>
+            <if test="mnemonic_code != null and mnemonic_code != ''">
+                and mnemonic_code = #{mnemonic_code}
+            </if>
+            <if test="product_description != null and product_description != ''">
+                and product_description = #{product_description}
+            </if>
+            <if test="generic_name != null and generic_name != ''">
+                and generic_name = #{generic_name}
+            </if>
+            <if test="generic_mnemonic_code != null and generic_mnemonic_code != ''">
+                and generic_mnemonic_code = #{generic_mnemonic_code}
+            </if>
+            <if test="generic_previous_names != null and generic_previous_names != ''">
+                and generic_previous_names = #{generic_previous_names}
+            </if>
+            <if test="base_unit != null and base_unit != ''">
+                and base_unit = #{base_unit}
+            </if>
+            <if test="trademark != null and trademark != ''">
+                and trademark = #{trademark}
+            </if>
+            <if test="specification != null and specification != ''">
+                and specification = #{specification}
+            </if>
+            <if test="international_barcode != null and international_barcode != ''">
+                and international_barcode = #{international_barcode}
+            </if>
+            <if test="manufacturer != null and manufacturer != ''">
+                and manufacturer = #{manufacturer}
+            </if>
+            <if test="entrusted_manufacturer != null and entrusted_manufacturer != ''">
+                and entrusted_manufacturer = #{entrusted_manufacturer}
+            </if>
+            <if test="manufacturer_abbreviation != null and manufacturer_abbreviation != ''">
+                and manufacturer_abbreviation = #{manufacturer_abbreviation}
+            </if>
+            <if test="origin != null and origin != ''">
+                and origin = #{origin}
+            </if>
+            <if test="category_maj != null and category_maj != ''">
+                and category_maj = #{category_maj}
+            </if>
+            <if test="category_min != null and category_min != ''">
+                and category_min = #{category_min}
+            </if>
+            <if test="product_type != null and product_type != ''">
+                and product_type = #{product_type}
+            </if>
+            <if test="product_status != null and product_status != ''">
+                and product_status = #{product_status}
+            </if>
+            <if test="purchase_tax_rate != null and purchase_tax_rate != ''">
+                and purchase_tax_rate = #{purchase_tax_rate}
+            </if>
+            <if test="sales_tax_rate != null and sales_tax_rate != ''">
+                and sales_tax_rate = #{sales_tax_rate}
+            </if>
+            <if test="import_export_status != null and import_export_status != ''">
+                and import_export_status = #{import_export_status}
+            </if>
+            <if test="major_category != null and major_category != ''">
+                and major_category = #{major_category}
+            </if>
+            <if test="medium_category != null and medium_category != ''">
+                and medium_category = #{medium_category}
+            </if>
+            <if test="minor_category != null and minor_category != ''">
+                and minor_category = #{minor_category}
+            </if>
+            <if test="sub_category != null and sub_category != ''">
+                and sub_category = #{sub_category}
+            </if>
+            <if test="ingredients != null and ingredients != ''">
+                and ingredients = #{ingredients}
+            </if>
+            <if test="dtp_flag != null and dtp_flag != ''">
+                and dtp_flag = #{dtp_flag}
+            </if>
+            <if test="daily_standard_consumption != null and daily_standard_consumption != ''">
+                and daily_standard_consumption = #{daily_standard_consumption}
+            </if>
+            <if test="duplicate_suspected != null and duplicate_suspected != ''">
+                and duplicate_suspected = #{duplicate_suspected}
+            </if>
+            <if test="alternative_code != null and alternative_code != ''">
+                and alternative_code = #{alternative_code}
+            </if>
+            <if test="marketing_authorization_holder != null and marketing_authorization_holder != ''">
+                and marketing_authorization_holder = #{marketing_authorization_holder}
+            </if>
+            <if test="medication_days != null and medication_days != ''">
+                and medication_days = #{medication_days}
+            </if>
+            <if test="small_code_southchina_specific != null and small_code_southchina_specific != ''">
+                and small_code_southchina_specific = #{small_code_southchina_specific}
+            </if>
+            <if test="corresponding_major_code != null and corresponding_major_code != ''">
+                and corresponding_major_code = #{corresponding_major_code}
+            </if>
+            <if test="conversion_ratio_to_alternative != null and conversion_ratio_to_alternative != ''">
+                and conversion_ratio_to_alternative = #{conversion_ratio_to_alternative}
+            </if>
+            <if test="disease_type != null and disease_type != ''">
+                and disease_type = #{disease_type}
+            </if>
+            <if test="brand_manufacturer_name != null and brand_manufacturer_name != ''">
+                and brand_manufacturer_name = #{brand_manufacturer_name}
+            </if>
+            <if test="group_name != null and group_name != ''">
+                and group_name = #{group_name}
+            </if>
+            <if test="external_organization != null and external_organization != ''">
+                and external_organization = #{external_organization}
+            </if>
+            <if test="national_negotiated_product != null and national_negotiated_product != ''">
+                and national_negotiated_product = #{national_negotiated_product}
+            </if>
+            <if test="national_standard_code != null and national_standard_code != ''">
+                and national_standard_code = #{national_standard_code}
+            </if>
+            <if test="national_standard_code_2 != null and national_standard_code_2 != ''">
+                and national_standard_code_2 = #{national_standard_code_2}
+            </if>
+            <if test="medical_insurance_min_dose_unit != null and medical_insurance_min_dose_unit != ''">
+                and medical_insurance_min_dose_unit = #{medical_insurance_min_dose_unit}
+            </if>
+            <if test="medical_market_status != null and medical_market_status != ''">
+                and medical_market_status = #{medical_market_status}
+            </if>
+            <if test="accounting_manufacturer != null and accounting_manufacturer != ''">
+                and accounting_manufacturer = #{accounting_manufacturer}
+            </if>
+            <if test="department_affiliation != null and department_affiliation != ''">
+                and department_affiliation = #{department_affiliation}
+            </if>
+            <if test="chronic_disease_first_line_treatment != null and chronic_disease_first_line_treatment != ''">
+                and chronic_disease_first_line_treatment = #{chronic_disease_first_line_treatment}
+            </if>
+            <if test="is_medical_generic_name != null and is_medical_generic_name != ''">
+                and is_medical_generic_name = #{is_medical_generic_name}
+            </if>
+            <if test="covid_tag != null and covid_tag != ''">
+                and covid_tag = #{covid_tag}
+            </if>
+            <if test="product_remarks != null and product_remarks != ''">
+                and product_remarks = #{product_remarks}
+            </if>
+        </trim>
+        <if test="up != null and up!=''">
+            <if test="id != null and id!=''">
+                where id=#{id}
+            </if>
+        </if>
+    </update>
+
+    <delete id="SPProductinfoRemove" parameterType="pd">
+        <if test="ids != null">
+            delete from s_gxhpz_product_info where
+            <if test="ids != null">
+                id in(${ids})
+            </if>
+        </if>
+    </delete>
+
+    <insert id="addProductAdd" parameterType="pd" >
+        insert into s_gxhpz_product_info
+        <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">product_code,</if>
+            <if test="product_name != null and product_name != ''">product_name,</if>
+            <if test="mnemonic_code != null and mnemonic_code != ''">mnemonic_code,</if>
+            <if test="product_description != null and product_description != ''">product_description,</if>
+            <if test="generic_name != null and generic_name != ''">generic_name,</if>
+            <if test="generic_mnemonic_code != null and generic_mnemonic_code != ''">generic_mnemonic_code,</if>
+            <if test="generic_previous_names != null and generic_previous_names != ''">generic_previous_names,</if>
+            <if test="base_unit != null and base_unit != ''">base_unit,</if>
+            <if test="trademark != null and trademark != ''">trademark,</if>
+            <if test="specification != null and specification != ''">specification,</if>
+            <if test="packaging != null and packaging != ''">packaging,</if>
+            <if test="international_barcode != null and international_barcode != ''">international_barcode,</if>
+            <if test="manufacturer != null and manufacturer != ''">manufacturer,</if>
+            <if test="entrusted_manufacturer != null and entrusted_manufacturer != ''">entrusted_manufacturer,</if>
+            <if test="manufacturer_abbreviation != null and manufacturer_abbreviation != ''">manufacturer_abbreviation,</if>
+            <if test="origin != null and origin != ''">origin,</if>
+            <if test="category_maj != null and category_maj != ''">category_maj,</if>
+            <if test="category_min != null and category_min != ''">category_min,</if>
+            <if test="product_type != null and product_type != ''">product_type,</if>
+            <if test="product_status != null and product_status != ''">product_status,</if>
+            <if test="purchase_tax_rate != null and purchase_tax_rate != ''">purchase_tax_rate,</if>
+            <if test="sales_tax_rate != null and sales_tax_rate != ''">sales_tax_rate,</if>
+            <if test="import_export_status != null and import_export_status != ''">import_export_status,</if>
+            <if test="major_category != null and major_category != ''">major_category,</if>
+            <if test="medium_category != null and medium_category != ''">medium_category,</if>
+            <if test="minor_category != null and minor_category != ''">minor_category,</if>
+            <if test="sub_category != null and sub_category != ''">sub_category,</if>
+            <if test="ingredients != null and ingredients != ''">ingredients,</if>
+            <if test="dtp_flag != null and dtp_flag != ''">dtp_flag,</if>
+            <if test="daily_standard_consumption != null and daily_standard_consumption != ''">daily_standard_consumption,</if>
+            <if test="duplicate_suspected != null and duplicate_suspected != ''">duplicate_suspected,</if>
+            <if test="alternative_code != null and alternative_code != ''">alternative_code,</if>
+            <if test="marketing_authorization_holder != null and marketing_authorization_holder != ''">marketing_authorization_holder,</if>
+            <if test="medication_days != null and medication_days != ''">medication_days,</if>
+            <if test="small_code_southchina_specific != null and small_code_southchina_specific != ''">small_code_southchina_specific,</if>
+            <if test="corresponding_major_code != null and corresponding_major_code != ''">corresponding_major_code,</if>
+            <if test="conversion_ratio_to_alternative != null and conversion_ratio_to_alternative != ''">conversion_ratio_to_alternative,</if>
+            <if test="disease_type != null and disease_type != ''">disease_type,</if>
+            <if test="brand_manufacturer_name != null and brand_manufacturer_name != ''">brand_manufacturer_name,</if>
+            <if test="group_name != null and group_name != ''">group_name,</if>
+            <if test="external_organization != null and external_organization != ''">external_organization,</if>
+            <if test="national_negotiated_product != null and national_negotiated_product != ''">national_negotiated_product,</if>
+            <if test="national_standard_code != null and national_standard_code != ''">national_standard_code,</if>
+            <if test="national_standard_code_2 != null and national_standard_code_2 != ''">national_standard_code_2,</if>
+            <if test="medical_insurance_min_dose_unit != null and medical_insurance_min_dose_unit != ''">medical_insurance_min_dose_unit,</if>
+            <if test="medical_market_status != null and medical_market_status != ''">medical_market_status,</if>
+            <if test="accounting_manufacturer != null and accounting_manufacturer != ''">accounting_manufacturer,</if>
+            <if test="department_affiliation != null and department_affiliation != ''">department_affiliation,</if>
+            <if test="chronic_disease_first_line_treatment != null and chronic_disease_first_line_treatment != ''">chronic_disease_first_line_treatment,</if>
+            <if test="is_medical_generic_name != null and is_medical_generic_name != ''">is_medical_generic_name,</if>
+            <if test="covid_tag != null and covid_tag != ''">covid_tag,</if>
+            <if test="product_remarks != null and product_remarks != ''">product_remarks,</if>
+        </trim>
+        <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">#{product_code},</if>
+            <if test="product_name != null and product_name != ''">#{product_name},</if>
+            <if test="mnemonic_code != null and mnemonic_code != ''">#{mnemonic_code},</if>
+            <if test="product_description != null and product_description != ''">#{product_description},</if>
+            <if test="generic_name != null and generic_name != ''">#{generic_name},</if>
+            <if test="generic_mnemonic_code != null and generic_mnemonic_code != ''">#{generic_mnemonic_code},</if>
+            <if test="generic_previous_names != null and generic_previous_names != ''">#{generic_previous_names},</if>
+            <if test="base_unit != null and base_unit != ''">#{base_unit},</if>
+            <if test="trademark != null and trademark != ''">#{trademark},</if>
+            <if test="specification != null and specification != ''">#{specification},</if>
+            <if test="packaging != null and packaging != ''">#{packaging},</if>
+            <if test="international_barcode != null and international_barcode != ''">#{international_barcode},</if>
+            <if test="manufacturer != null and manufacturer != ''">#{manufacturer},</if>
+            <if test="entrusted_manufacturer != null and entrusted_manufacturer != ''">#{entrusted_manufacturer},</if>
+            <if test="manufacturer_abbreviation != null and manufacturer_abbreviation != ''">#{manufacturer_abbreviation},</if>
+            <if test="origin != null and origin != ''">#{origin},</if>
+            <if test="category_maj != null and category_maj != ''">#{category_maj},</if>
+            <if test="category_min != null and category_min != ''">#{category_min},</if>
+            <if test="product_type != null and product_type != ''">#{product_type},</if>
+            <if test="product_status != null and product_status != ''">#{product_status},</if>
+            <if test="purchase_tax_rate != null and purchase_tax_rate != ''">#{purchase_tax_rate},</if>
+            <if test="sales_tax_rate != null and sales_tax_rate != ''">#{sales_tax_rate},</if>
+            <if test="import_export_status != null and import_export_status != ''">#{import_export_status},</if>
+            <if test="major_category != null and major_category != ''">#{major_category},</if>
+            <if test="medium_category != null and medium_category != ''">#{medium_category},</if>
+            <if test="minor_category != null and minor_category != ''">#{minor_category},</if>
+            <if test="sub_category != null and sub_category != ''">#{sub_category},</if>
+            <if test="ingredients != null and ingredients != ''">#{ingredients},</if>
+            <if test="dtp_flag != null and dtp_flag != ''">#{dtp_flag},</if>
+            <if test="daily_standard_consumption != null and daily_standard_consumption != ''">#{daily_standard_consumption},</if>
+            <if test="duplicate_suspected != null and duplicate_suspected != ''">#{duplicate_suspected},</if>
+            <if test="alternative_code != null and alternative_code != ''">#{alternative_code},</if>
+            <if test="marketing_authorization_holder != null and marketing_authorization_holder != ''">#{marketing_authorization_holder},</if>
+            <if test="medication_days != null and medication_days != ''">#{medication_days},</if>
+            <if test="small_code_southchina_specific != null and small_code_southchina_specific != ''">#{small_code_southchina_specific},</if>
+            <if test="corresponding_major_code != null and corresponding_major_code != ''">#{corresponding_major_code},</if>
+            <if test="conversion_ratio_to_alternative != null and conversion_ratio_to_alternative != ''">#{conversion_ratio_to_alternative},</if>
+            <if test="disease_type != null and disease_type != ''">#{disease_type},</if>
+            <if test="brand_manufacturer_name != null and brand_manufacturer_name != ''">#{brand_manufacturer_name},</if>
+            <if test="group_name != null and group_name != ''">#{group_name},</if>
+            <if test="external_organization != null and external_organization != ''">#{external_organization},</if>
+            <if test="national_negotiated_product != null and national_negotiated_product != ''">#{national_negotiated_product},</if>
+            <if test="national_standard_code != null and national_standard_code != ''">#{national_standard_code},</if>
+            <if test="national_standard_code_2 != null and national_standard_code_2 != ''">#{national_standard_code_2},</if>
+            <if test="medical_insurance_min_dose_unit != null and medical_insurance_min_dose_unit != ''">#{medical_insurance_min_dose_unit},</if>
+            <if test="medical_market_status != null and medical_market_status != ''">#{medical_market_status},</if>
+            <if test="accounting_manufacturer != null and accounting_manufacturer != ''">#{accounting_manufacturer},</if>
+            <if test="department_affiliation != null and department_affiliation != ''">#{department_affiliation},</if>
+            <if test="chronic_disease_first_line_treatment != null and chronic_disease_first_line_treatment != ''">#{chronic_disease_first_line_treatment},</if>
+            <if test="is_medical_generic_name != null and is_medical_generic_name != ''">#{is_medical_generic_name},</if>
+            <if test="covid_tag != null and covid_tag != ''">#{covid_tag},</if>
+            <if test="product_remarks != null and product_remarks != ''">#{product_remarks},</if>
+        </trim>
+
+    </insert>
+
+    <insert id="addProductAdd2" parameterType="pd" >
+        insert into s_gxhpz_product_information
+        <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                product_code,
+            </if>
+            <if test="reference_purchase_price != null and reference_purchase_price != ''">
+                reference_purchase_price,
+            </if>
+            <if test="is_direct_to_warehouse != null and is_direct_to_warehouse != ''">
+                is_direct_to_warehouse,
+            </if>
+            <if test="purchase_group != null and purchase_group != ''">
+                purchase_group,
+            </if>
+            <if test="channel_attribute != null and channel_attribute != ''">
+                channel_attribute,
+            </if>
+            <if test="purchase_organization != null and purchase_organization != ''">
+                purchase_organization,
+            </if>
+            <if test="is_purchase_prohibited != null and is_purchase_prohibited != ''">
+                is_purchase_prohibited,
+            </if>
+            <if test="group_product_purchase_attribute != null and group_product_purchase_attribute != ''">
+                group_product_purchase_attribute,
+            </if>
+            <if test="is_original_research != null and is_original_research != ''">
+                is_original_research,
+            </if>
+            <if test="brand_attribute != null and brand_attribute != ''">
+                brand_attribute,
+            </if>
+            <if test="consumer_health_own_brand != null and consumer_health_own_brand != ''">
+                consumer_health_own_brand,
+            </if>
+            <if test="health_category != null and health_category != ''">
+                health_category,
+            </if>
+            <if test="registrant_unified_social_credit_code != null and registrant_unified_social_credit_code != ''">
+                registrant_unified_social_credit_code,
+            </if>
+            <if test="is_broad_dtp != null and is_broad_dtp != ''">
+                is_broad_dtp,
+            </if>
+            <if test="purchase_attribute != null and purchase_attribute != ''">
+                purchase_attribute,
+            </if>
+            <if test="operation_attribute != null and operation_attribute != ''">
+                operation_attribute,
+            </if>
+            <if test="archive_number != null and archive_number != ''">
+                archive_number,
+            </if>
+            <if test="special_sales_attribute != null and special_sales_attribute != ''">
+                special_sales_attribute,
+            </if>
+            <if test="is_normal_stock_in_central_warehouse != null and is_normal_stock_in_central_warehouse != ''">
+                is_normal_stock_in_central_warehouse,
+            </if>
+            <if test="is_first_operation != null and is_first_operation != ''">
+                is_first_operation,
+            </if>
+            <if test="data_creation_time != null and data_creation_time != ''">
+                data_creation_time,
+            </if>
+            <if test="product_mid_code_strategy != null and product_mid_code_strategy != ''">
+                product_mid_code_strategy,
+            </if>
+            <if test="is_completed_component_analysis != null and is_completed_component_analysis != ''">
+                is_completed_component_analysis,
+            </if>
+            <if test="sales_control_attribute != null and sales_control_attribute != ''">
+                sales_control_attribute,
+            </if>
+            <if test="four_plus_seven_label != null and four_plus_seven_label != ''">
+                four_plus_seven_label,
+            </if>
+            <if test="platform_common_recommendation != null and platform_common_recommendation != ''">
+                platform_common_recommendation,
+            </if>
+            <if test="commercial_large_circulation_product != null and commercial_large_circulation_product != ''">
+                commercial_large_circulation_product,
+            </if>
+            <if test="unified_procurement_elimination_time != null and unified_procurement_elimination_time != ''">
+                unified_procurement_elimination_time,
+            </if>
+            <if test="centralized_procurement_elimination_time != null and centralized_procurement_elimination_time != ''">
+                centralized_procurement_elimination_time,
+            </if>
+            <if test="zc_special_attributes != null and zc_special_attributes != ''">
+                zc_special_attributes,
+            </if>
+            <if test="old_new_code_conversion_ratio != null and old_new_code_conversion_ratio != ''">
+                old_new_code_conversion_ratio,
+            </if>
+            <if test="dual_channel_drug != null and dual_channel_drug != ''">
+                dual_channel_drug,
+            </if>
+            <if test="national_negotiated_price != null and national_negotiated_price != ''">
+                national_negotiated_price,
+            </if>
+            <if test="guangzhou_pharmaceutical_supervision_code != null and guangzhou_pharmaceutical_supervision_code != ''">
+                guangzhou_pharmaceutical_supervision_code,
+            </if>
+            <if test="coordinated_reimbursement_product != null and coordinated_reimbursement_product != ''">
+                coordinated_reimbursement_product,
+            </if>
+            <if test="two_pantry_goods_attribute != null and two_pantry_goods_attribute != ''">
+                two_pantry_goods_attribute,
+            </if>
+            <if test="is_store_operation_restricted != null and is_store_operation_restricted != ''">
+                is_store_operation_restricted,
+            </if>
+            <if test="can_be_allocated_to_franchise_stores != null and can_be_allocated_to_franchise_stores != ''">
+                can_be_allocated_to_franchise_stores,
+            </if>
+            <if test="franchise_stores_enjoy_unified_procurement_policy != null and franchise_stores_enjoy_unified_procurement_policy != ''">
+                franchise_stores_enjoy_unified_procurement_policy,
+            </if>
+            <if test="medical_insurance_purchase_type != null and medical_insurance_purchase_type != ''">
+                medical_insurance_purchase_type,
+            </if>
+        </trim>
+        <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                #{product_code},
+            </if>
+            <if test="reference_purchase_price != null and reference_purchase_price != ''">
+                #{reference_purchase_price},
+            </if>
+            <if test="is_direct_to_warehouse != null and is_direct_to_warehouse != ''">
+                #{is_direct_to_warehouse},
+            </if>
+            <if test="purchase_group != null and purchase_group != ''">
+                #{purchase_group},
+            </if>
+            <if test="channel_attribute != null and channel_attribute != ''">
+                #{channel_attribute},
+            </if>
+            <if test="purchase_organization != null and purchase_organization != ''">
+                #{purchase_organization},
+            </if>
+            <if test="is_purchase_prohibited != null and is_purchase_prohibited != ''">
+                #{is_purchase_prohibited},
+            </if>
+            <if test="group_product_purchase_attribute != null and group_product_purchase_attribute != ''">
+                #{group_product_purchase_attribute},
+            </if>
+            <if test="is_original_research != null and is_original_research != ''">
+                #{is_original_research},
+            </if>
+            <if test="brand_attribute != null and brand_attribute != ''">
+                #{brand_attribute},
+            </if>
+            <if test="consumer_health_own_brand != null and consumer_health_own_brand != ''">
+                #{consumer_health_own_brand},
+            </if>
+            <if test="health_category != null and health_category != ''">
+                #{health_category},
+            </if>
+            <if test="registrant_unified_social_credit_code != null and registrant_unified_social_credit_code != ''">
+                #{registrant_unified_social_credit_code},
+            </if>
+            <if test="is_broad_dtp != null and is_broad_dtp != ''">
+                #{is_broad_dtp},
+            </if>
+            <if test="purchase_attribute != null and purchase_attribute != ''">
+                #{purchase_attribute},
+            </if>
+            <if test="operation_attribute != null and operation_attribute != ''">
+                #{operation_attribute},
+            </if>
+            <if test="archive_number != null and archive_number != ''">
+                #{archive_number},
+            </if>
+            <if test="special_sales_attribute != null and special_sales_attribute != ''">
+                #{special_sales_attribute},
+            </if>
+            <if test="is_normal_stock_in_central_warehouse != null and is_normal_stock_in_central_warehouse != ''">
+                #{is_normal_stock_in_central_warehouse},
+            </if>
+            <if test="is_first_operation != null and is_first_operation != ''">
+                #{is_first_operation},
+            </if>
+            <if test="data_creation_time != null and data_creation_time != ''">
+                #{data_creation_time},
+            </if>
+            <if test="product_mid_code_strategy != null and product_mid_code_strategy != ''">
+                #{product_mid_code_strategy},
+            </if>
+            <if test="is_completed_component_analysis != null and is_completed_component_analysis != ''">
+                #{is_completed_component_analysis},
+            </if>
+            <if test="sales_control_attribute != null and sales_control_attribute != ''">
+                #{sales_control_attribute},
+            </if>
+            <if test="four_plus_seven_label != null and four_plus_seven_label != ''">
+                #{four_plus_seven_label},
+            </if>
+            <if test="platform_common_recommendation != null and platform_common_recommendation != ''">
+                #{platform_common_recommendation},
+            </if>
+            <if test="commercial_large_circulation_product != null and commercial_large_circulation_product != ''">
+                #{commercial_large_circulation_product},
+            </if>
+            <if test="unified_procurement_elimination_time != null and unified_procurement_elimination_time != ''">
+                #{unified_procurement_elimination_time},
+            </if>
+            <if test="centralized_procurement_elimination_time != null and centralized_procurement_elimination_time != ''">
+                #{centralized_procurement_elimination_time},
+            </if>
+            <if test="zc_special_attributes != null and zc_special_attributes != ''">
+                #{zc_special_attributes},
+            </if>
+            <if test="old_new_code_conversion_ratio != null and old_new_code_conversion_ratio != ''">
+                #{old_new_code_conversion_ratio},
+            </if>
+            <if test="dual_channel_drug != null and dual_channel_drug != ''">
+                #{dual_channel_drug},
+            </if>
+            <if test="national_negotiated_price != null and national_negotiated_price != ''">
+                #{national_negotiated_price},
+            </if>
+            <if test="guangzhou_pharmaceutical_supervision_code != null and guangzhou_pharmaceutical_supervision_code != ''">
+                #{guangzhou_pharmaceutical_supervision_code},
+            </if>
+            <if test="coordinated_reimbursement_product != null and coordinated_reimbursement_product != ''">
+                #{coordinated_reimbursement_product},
+            </if>
+            <if test="two_pantry_goods_attribute != null and two_pantry_goods_attribute != ''">
+                #{two_pantry_goods_attribute},
+            </if>
+            <if test="is_store_operation_restricted != null and is_store_operation_restricted != ''">
+                #{is_store_operation_restricted},
+            </if>
+            <if test="can_be_allocated_to_franchise_stores != null and can_be_allocated_to_franchise_stores != ''">
+                #{can_be_allocated_to_franchise_stores},
+            </if>
+            <if test="franchise_stores_enjoy_unified_procurement_policy != null and franchise_stores_enjoy_unified_procurement_policy != ''">
+                #{franchise_stores_enjoy_unified_procurement_policy},
+            </if>
+            <if test="medical_insurance_purchase_type != null and medical_insurance_purchase_type != ''">
+                #{medical_insurance_purchase_type},
+            </if>
+        </trim>
+
+    </insert>
+
+    <insert id="addProductAdd3" parameterType="pd" >
+        insert into s_gxhpz_product_classification
+        <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                product_code,
+            </if>
+            <if test="storage_category != null and storage_category != ''">
+                storage_category,
+            </if>
+            <if test="is_fragile != null and is_fragile != ''">
+                is_fragile,
+            </if>
+            <if test="is_hazardous != null and is_hazardous != ''">
+                is_hazardous,
+            </if>
+            <if test="is_odd_shape != null and is_odd_shape != ''">
+                is_odd_shape,
+            </if>
+            <if test="basic_package_length != null and basic_package_length != ''">
+                basic_package_length,
+            </if>
+            <if test="basic_package_width != null and basic_package_width != ''">
+                basic_package_width,
+            </if>
+            <if test="basic_package_height != null and basic_package_height != ''">
+                basic_package_height,
+            </if>
+            <if test="minimum_package_quantity != null and minimum_package_quantity != ''">
+                minimum_package_quantity,
+            </if>
+            <if test="medium_package_quantity != null and medium_package_quantity != ''">
+                medium_package_quantity,
+            </if>
+            <if test="box_package_quantity != null and box_package_quantity != ''">
+                box_package_quantity,
+            </if>
+            <if test="is_medium_package_enabled != null and is_medium_package_enabled != ''">
+                is_medium_package_enabled,
+            </if>
+            <if test="medium_package_request_ratio != null and medium_package_request_ratio != ''">
+                medium_package_request_ratio,
+            </if>
+        </trim>
+        <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                #{product_code},
+            </if>
+            <if test="storage_category != null and storage_category != ''">
+                #{storage_category},
+            </if>
+            <if test="is_fragile != null and is_fragile != ''">
+                #{is_fragile},
+            </if>
+            <if test="is_hazardous != null and is_hazardous != ''">
+                #{is_hazardous},
+            </if>
+            <if test="is_odd_shape != null and is_odd_shape != ''">
+                #{is_odd_shape},
+            </if>
+            <if test="basic_package_length != null and basic_package_length != ''">
+                #{basic_package_length},
+            </if>
+            <if test="basic_package_width != null and basic_package_width != ''">
+                #{basic_package_width},
+            </if>
+            <if test="basic_package_height != null and basic_package_height != ''">
+                #{basic_package_height},
+            </if>
+            <if test="minimum_package_quantity != null and minimum_package_quantity != ''">
+                #{minimum_package_quantity},
+            </if>
+            <if test="medium_package_quantity != null and medium_package_quantity != ''">
+                #{medium_package_quantity},
+            </if>
+            <if test="box_package_quantity != null and box_package_quantity != ''">
+                #{box_package_quantity},
+            </if>
+            <if test="is_medium_package_enabled != null and is_medium_package_enabled != ''">
+                #{is_medium_package_enabled},
+            </if>
+            <if test="medium_package_request_ratio != null and medium_package_request_ratio != ''">
+                #{medium_package_request_ratio},
+            </if>
+        </trim>
+
+    </insert>
+
+    <insert id="addProductAdd4" parameterType="pd" >
+        insert into s_gxhpz_product_zg
+        <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                product_code,
+            </if>
+            <if test="is_production_batch_management != null and is_production_batch_management != ''">
+                is_production_batch_management,
+            </if>
+            <if test="business_scope != null and business_scope != ''">
+                business_scope,
+            </if>
+            <if test="prescription_category != null and prescription_category != ''">
+                prescription_category,
+            </if>
+            <if test="prescription_category_secondary != null and prescription_category_secondary != ''">
+                prescription_category_secondary,
+            </if>
+            <if test="prescription_category_tertiary != null and prescription_category_tertiary != ''">
+                prescription_category_tertiary,
+            </if>
+            <if test="approval_number_1 != null and approval_number_1 != ''">
+                approval_number_1,
+            </if>
+            <if test="approval_number_1_expiry != null and approval_number_1_expiry != ''">
+                approval_number_1_expiry,
+            </if>
+            <if test="approval_number_2 != null and approval_number_2 != ''">
+                approval_number_2,
+            </if>
+            <if test="approval_number_2_expiry != null and approval_number_2_expiry != ''">
+                approval_number_2_expiry,
+            </if>
+            <if test="registration_certificate_1 != null and registration_certificate_1 != ''">
+                registration_certificate_1,
+            </if>
+            <if test="registration_certificate_1_expiry != null and registration_certificate_1_expiry != ''">
+                registration_certificate_1_expiry,
+            </if>
+            <if test="registration_certificate_2 != null and registration_certificate_2 != ''">
+                registration_certificate_2,
+            </if>
+            <if test="registration_certificate_2_expiry != null and registration_certificate_2_expiry != ''">
+                registration_certificate_2_expiry,
+            </if>
+            <if test="production_license != null and production_license != ''">
+                production_license,
+            </if>
+            <if test="production_license_expiry != null and production_license_expiry != ''">
+                production_license_expiry,
+            </if>
+            <if test="is_cold_chain_drug != null and is_cold_chain_drug != ''">
+                is_cold_chain_drug,
+            </if>
+            <if test="is_second_inspection != null and is_second_inspection != ''">
+                is_second_inspection,
+            </if>
+            <if test="local_code != null and local_code != ''">
+                local_code,
+            </if>
+            <if test="pharmacology_toxicology != null and pharmacology_toxicology != ''">
+                pharmacology_toxicology,
+            </if>
+            <if test="clinical_trial != null and clinical_trial != ''">
+                clinical_trial,
+            </if>
+            <if test="drug_overdose != null and drug_overdose != ''">
+                drug_overdose,
+            </if>
+            <if test="elderly_patient_usage != null and elderly_patient_usage != ''">
+                elderly_patient_usage,
+            </if>
+            <if test="pediatric_patient_usage != null and pediatric_patient_usage != ''">
+                pediatric_patient_usage,
+            </if>
+            <if test="pregnant_breastfeeding_usage != null and pregnant_breastfeeding_usage != ''">
+                pregnant_breastfeeding_usage,
+            </if>
+            <if test="zgingredients != null and zgingredients != ''">
+                zgingredients,
+            </if>
+            <if test="group_quality_status != null and group_quality_status != ''">
+                group_quality_status,
+            </if>
+            <if test="package_specification != null and package_specification != ''">
+                package_specification,
+            </if>
+            <if test="storage_conditions != null and storage_conditions != ''">
+                storage_conditions,
+            </if>
+            <if test="has_traceability_code != null and has_traceability_code != ''">
+                has_traceability_code,
+            </if>
+            <if test="acceptance_period_days != null and acceptance_period_days != ''">
+                acceptance_period_days,
+            </if>
+            <if test="is_serial_number_managed != null and is_serial_number_managed != ''">
+                is_serial_number_managed,
+            </if>
+            <if test="near_expiry_date != null and near_expiry_date != ''">
+                near_expiry_date,
+            </if>
+            <if test="company_approval_expiry != null and company_approval_expiry != ''">
+                company_approval_expiry,
+            </if>
+            <if test="company_registration_expiry != null and company_registration_expiry != ''">
+                company_registration_expiry,
+            </if>
+            <if test="is_scan_traceable != null and is_scan_traceable != ''">
+                is_scan_traceable,
+            </if>
+            <if test="wildlife_management_identification != null and wildlife_management_identification != ''">
+                wildlife_management_identification,
+            </if>
+            <if test="special_sales_control != null and special_sales_control != ''">
+                special_sales_control,
+            </if>
+            <if test="is_udi_scanned != null and is_udi_scanned != ''">
+                is_udi_scanned,
+            </if>
+            <if test="max_prescription_days != null and max_prescription_days != ''">
+                max_prescription_days,
+            </if>
+            <if test="restricted_usage != null and restricted_usage != ''">
+                restricted_usage,
+            </if>
+        </trim>
+        <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                #{product_code},
+            </if>
+            <if test="is_production_batch_management != null and is_production_batch_management != ''">
+                #{is_production_batch_management},
+            </if>
+            <if test="business_scope != null and business_scope != ''">
+                #{business_scope},
+            </if>
+            <if test="prescription_category != null and prescription_category != ''">
+                #{prescription_category},
+            </if>
+            <if test="prescription_category_secondary != null and prescription_category_secondary != ''">
+                #{prescription_category_secondary},
+            </if>
+            <if test="prescription_category_tertiary != null and prescription_category_tertiary != ''">
+                #{prescription_category_tertiary},
+            </if>
+            <if test="approval_number_1 != null and approval_number_1 != ''">
+                #{approval_number_1},
+            </if>
+            <if test="approval_number_1_expiry != null and approval_number_1_expiry != ''">
+                #{approval_number_1_expiry},
+            </if>
+            <if test="approval_number_2 != null and approval_number_2 != ''">
+                #{approval_number_2},
+            </if>
+            <if test="approval_number_2_expiry != null and approval_number_2_expiry != ''">
+                #{approval_number_2_expiry},
+            </if>
+            <if test="registration_certificate_1 != null and registration_certificate_1 != ''">
+                #{registration_certificate_1},
+            </if>
+            <if test="registration_certificate_1_expiry != null and registration_certificate_1_expiry != ''">
+                #{registration_certificate_1_expiry},
+            </if>
+            <if test="registration_certificate_2 != null and registration_certificate_2 != ''">
+                #{registration_certificate_2},
+            </if>
+            <if test="registration_certificate_2_expiry != null and registration_certificate_2_expiry != ''">
+                #{registration_certificate_2_expiry},
+            </if>
+            <if test="production_license != null and production_license != ''">
+                #{production_license},
+            </if>
+            <if test="production_license_expiry != null and production_license_expiry != ''">
+                #{production_license_expiry},
+            </if>
+            <if test="is_cold_chain_drug != null and is_cold_chain_drug != ''">
+                #{is_cold_chain_drug},
+            </if>
+            <if test="is_second_inspection != null and is_second_inspection != ''">
+                #{is_second_inspection},
+            </if>
+            <if test="local_code != null and local_code != ''">
+                #{local_code},
+            </if>
+            <if test="pharmacology_toxicology != null and pharmacology_toxicology != ''">
+                #{pharmacology_toxicology},
+            </if>
+            <if test="clinical_trial != null and clinical_trial != ''">
+                #{clinical_trial},
+            </if>
+            <if test="drug_overdose != null and drug_overdose != ''">
+                #{drug_overdose},
+            </if>
+            <if test="elderly_patient_usage != null and elderly_patient_usage != ''">
+                #{elderly_patient_usage},
+            </if>
+            <if test="pediatric_patient_usage != null and pediatric_patient_usage != ''">
+                #{pediatric_patient_usage},
+            </if>
+            <if test="pregnant_breastfeeding_usage != null and pregnant_breastfeeding_usage != ''">
+                #{pregnant_breastfeeding_usage},
+            </if>
+            <if test="zgingredients != null and zgingredients != ''">
+                #{zgingredients},
+            </if>
+            <if test="group_quality_status != null and group_quality_status != ''">
+                #{group_quality_status},
+            </if>
+            <if test="package_specification != null and package_specification != ''">
+                #{package_specification},
+            </if>
+            <if test="storage_conditions != null and storage_conditions != ''">
+                #{storage_conditions},
+            </if>
+            <if test="has_traceability_code != null and has_traceability_code != ''">
+                #{has_traceability_code},
+            </if>
+            <if test="acceptance_period_days != null and acceptance_period_days != ''">
+                #{acceptance_period_days},
+            </if>
+            <if test="is_serial_number_managed != null and is_serial_number_managed != ''">
+                #{is_serial_number_managed},
+            </if>
+            <if test="near_expiry_date != null and near_expiry_date != ''">
+                #{near_expiry_date},
+            </if>
+            <if test="company_approval_expiry != null and company_approval_expiry != ''">
+                #{company_approval_expiry},
+            </if>
+            <if test="company_registration_expiry != null and company_registration_expiry != ''">
+                #{company_registration_expiry},
+            </if>
+            <if test="is_scan_traceable != null and is_scan_traceable != ''">
+                #{is_scan_traceable},
+            </if>
+            <if test="wildlife_management_identification != null and wildlife_management_identification != ''">
+                #{wildlife_management_identification},
+            </if>
+            <if test="special_sales_control != null and special_sales_control != ''">
+                #{special_sales_control},
+            </if>
+            <if test="is_udi_scanned != null and is_udi_scanned != ''">
+                #{is_udi_scanned},
+            </if>
+            <if test="max_prescription_days != null and max_prescription_days != ''">
+                #{max_prescription_days},
+            </if>
+            <if test="restricted_usage != null and restricted_usage != ''">
+                #{restricted_usage},
+            </if>
+        </trim>
+    </insert>
+
+    <insert id="addProductAdd5" parameterType="pd" >
+        insert into s_gxhpz_product_details
+        <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                product_code,
+            </if>
+            <if test="reference_retail_price != null and reference_retail_price != ''">
+                reference_retail_price,
+            </if>
+            <if test="online_sales != null and online_sales != ''">
+                online_sales,
+            </if>
+            <if test="mid_platform_product_spuid != null and mid_platform_product_spuid != ''">
+                mid_platform_product_spuid,
+            </if>
+            <if test="mid_platform_product_type != null and mid_platform_product_type != ''">
+                mid_platform_product_type,
+            </if>
+            <if test="external_transmission_system != null and external_transmission_system != ''">
+                external_transmission_system,
+            </if>
+            <if test="online_o2o != null and online_o2o != ''">
+                online_o2o,
+            </if>
+            <if test="online_b2c != null and online_b2c != ''">
+                online_b2c,
+            </if>
+            <if test="online_mutual_medical != null and online_mutual_medical != ''">
+                online_mutual_medical,
+            </if>
+            <if test="online_brand_health != null and online_brand_health != ''">
+                online_brand_health,
+            </if>
+            <if test="xproduct_name != null and xproduct_name != ''">
+                xproduct_name,
+            </if>
+            <if test="minimum_display_quantity != null and minimum_display_quantity != ''">
+                minimum_display_quantity,
+            </if>
+            <if test="sales_attributes != null and sales_attributes != ''">
+                sales_attributes,
+            </if>
+            <if test="prohibit_delivery != null and prohibit_delivery != ''">
+                prohibit_delivery,
+            </if>
+            <if test="prohibit_return_warehouse != null and prohibit_return_warehouse != ''">
+                prohibit_return_warehouse,
+            </if>
+            <if test="prohibit_sales != null and prohibit_sales != ''">
+                prohibit_sales,
+            </if>
+            <if test="can_be_divided != null and can_be_divided != ''">
+                can_be_divided,
+            </if>
+            <if test="division_unit != null and division_unit != ''">
+                division_unit,
+            </if>
+            <if test="division_ratio != null and division_ratio != ''">
+                division_ratio,
+            </if>
+            <if test="daas_business_model != null and daas_business_model != ''">
+                daas_business_model,
+            </if>
+            <if test="promotion_approval != null and promotion_approval != ''">
+                promotion_approval,
+            </if>
+            <if test="wholesale_priority_level != null and wholesale_priority_level != ''">
+                wholesale_priority_level,
+            </if>
+            <if test="external_packaging_path != null and external_packaging_path != ''">
+                external_packaging_path,
+            </if>
+            <if test="can_view != null and can_view != ''">
+                can_view,
+            </if>
+            <if test="can_delete != null and can_delete != ''">
+                can_delete,
+            </if>
+        </trim>
+        <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                #{product_code},
+            </if>
+            <if test="reference_retail_price != null and reference_retail_price != ''">
+                #{reference_retail_price},
+            </if>
+            <if test="online_sales != null and online_sales != ''">
+                #{online_sales},
+            </if>
+            <if test="mid_platform_product_spuid != null and mid_platform_product_spuid != ''">
+                #{mid_platform_product_spuid},
+            </if>
+            <if test="mid_platform_product_type != null and mid_platform_product_type != ''">
+                #{mid_platform_product_type},
+            </if>
+            <if test="external_transmission_system != null and external_transmission_system != ''">
+                #{external_transmission_system},
+            </if>
+            <if test="online_o2o != null and online_o2o != ''">
+                #{online_o2o},
+            </if>
+            <if test="online_b2c != null and online_b2c != ''">
+                #{online_b2c},
+            </if>
+            <if test="online_mutual_medical != null and online_mutual_medical != ''">
+                #{online_mutual_medical},
+            </if>
+            <if test="online_brand_health != null and online_brand_health != ''">
+                #{online_brand_health},
+            </if>
+            <if test="xproduct_name != null and xproduct_name != ''">
+                #{xproduct_name},
+            </if>
+            <if test="minimum_display_quantity != null and minimum_display_quantity != ''">
+                #{minimum_display_quantity},
+            </if>
+            <if test="sales_attributes != null and sales_attributes != ''">
+                #{sales_attributes},
+            </if>
+            <if test="prohibit_delivery != null and prohibit_delivery != ''">
+                #{prohibit_delivery},
+            </if>
+            <if test="prohibit_return_warehouse != null and prohibit_return_warehouse != ''">
+                #{prohibit_return_warehouse},
+            </if>
+            <if test="prohibit_sales != null and prohibit_sales != ''">
+                #{prohibit_sales},
+            </if>
+            <if test="can_be_divided != null and can_be_divided != ''">
+                #{can_be_divided},
+            </if>
+            <if test="division_unit != null and division_unit != ''">
+                #{division_unit},
+            </if>
+            <if test="division_ratio != null and division_ratio != ''">
+                #{division_ratio},
+            </if>
+            <if test="daas_business_model != null and daas_business_model != ''">
+                #{daas_business_model},
+            </if>
+            <if test="promotion_approval != null and promotion_approval != ''">
+                #{promotion_approval},
+            </if>
+            <if test="wholesale_priority_level != null and wholesale_priority_level != ''">
+                #{wholesale_priority_level},
+            </if>
+            <if test="external_packaging_path != null and external_packaging_path != ''">
+                #{external_packaging_path},
+            </if>
+            <if test="can_view != null and can_view != ''">
+                #{can_view},
+            </if>
+            <if test="can_delete != null and can_delete != ''">
+                #{can_delete},
+            </if>
+        </trim>
+
+    </insert>
+
+    <insert id="addProductAdd6" parameterType="pd" >
+        insert into s_gxhpz_product_attributes
+        <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                product_code,
+            </if>
+            <if test="platform_property != null and platform_property != ''">
+                platform_property,
+            </if>
+            <if test="company_property != null and company_property != ''">
+                company_property,
+            </if>
+            <if test="product_franchise_attribute != null and product_franchise_attribute != ''">
+                product_franchise_attribute,
+            </if>
+        </trim>
+        <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                #{product_code},
+            </if>
+            <if test="platform_property != null and platform_property != ''">
+                #{platform_property},
+            </if>
+            <if test="company_property != null and company_property != ''">
+                #{company_property},
+            </if>
+            <if test="product_franchise_attribute != null and product_franchise_attribute != ''">
+                #{product_franchise_attribute},
+            </if>
+        </trim>
+
+    </insert>
+
+    <insert id="addProductAdd12" parameterType="pd" >
+        insert into s_gxhpz_product_dtpinfo
+        <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                product_code,
+            </if>
+            <if test="is_insurance_drug != null and is_insurance_drug != ''">
+                is_insurance_drug,
+            </if>
+            <if test="insurance_category != null and insurance_category != ''">
+                insurance_category,
+            </if>
+            <if test="purchase_limit_quantity != null and purchase_limit_quantity != ''">
+                purchase_limit_quantity,
+            </if>
+            <if test="prescription_required != null and prescription_required != ''">
+                prescription_required,
+            </if>
+            <if test="prohibit_ordering != null and prohibit_ordering != ''">
+                prohibit_ordering,
+            </if>
+            <if test="mid_pack_order_logic != null and mid_pack_order_logic != ''">
+                mid_pack_order_logic,
+            </if>
+            <if test="max_order_limit != null and max_order_limit != ''">
+                max_order_limit,
+            </if>
+            <if test="registered_item != null and registered_item != ''">
+                registered_item,
+            </if>
+            <if test="follow_up_item != null and follow_up_item != ''">
+                follow_up_item,
+            </if>
+            <if test="cold_chain_item != null and cold_chain_item != ''">
+                cold_chain_item,
+            </if>
+            <if test="flow_item != null and flow_item != ''">
+                flow_item,
+            </if>
+            <if test="charity_aid_item != null and charity_aid_item != ''">
+                charity_aid_item,
+            </if>
+        </trim>
+        <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
+            <if test="product_code != null and product_code != ''">
+                #{product_code},
+            </if>
+            <if test="is_insurance_drug != null and is_insurance_drug != ''">
+                #{is_insurance_drug},
+            </if>
+            <if test="insurance_category != null and insurance_category != ''">
+                #{insurance_category},
+            </if>
+            <if test="purchase_limit_quantity != null and purchase_limit_quantity != ''">
+                #{purchase_limit_quantity},
+            </if>
+            <if test="prescription_required != null and prescription_required != ''">
+                #{prescription_required},
+            </if>
+            <if test="prohibit_ordering != null and prohibit_ordering != ''">
+                #{prohibit_ordering},
+            </if>
+            <if test="mid_pack_order_logic != null and mid_pack_order_logic != ''">
+                #{mid_pack_order_logic},
+            </if>
+            <if test="max_order_limit != null and max_order_limit != ''">
+                #{max_order_limit},
+            </if>
+            <if test="registered_item != null and registered_item != ''">
+                #{registered_item},
+            </if>
+            <if test="follow_up_item != null and follow_up_item != ''">
+                #{follow_up_item},
+            </if>
+            <if test="cold_chain_item != null and cold_chain_item != ''">
+                #{cold_chain_item},
+            </if>
+            <if test="flow_item != null and flow_item != ''">
+                #{flow_item},
+            </if>
+            <if test="charity_aid_item != null and charity_aid_item != ''">
+                #{charity_aid_item},
+            </if>
+        </trim>
+
+    </insert>
+
+    <select id="findSPProductinfoProductCode" parameterType="pd" resultType="pd">
+        select product_code from s_gxhpz_product_info where 1=1
+        <if test="product_name != null and product_name != ''">
+            and product_name = #{product_name}
+        </if>
+        <if test="product_code != null and product_code != ''">
+            and product_code = #{product_code}
+        </if>
+        <if test="ids != null">
+            and id in(${ids})
+        </if>
+        <if test="id != null">
+            and id =#{id}
+        </if>
+    </select>
+
+    <delete id="deleteProductByCode" parameterType="pd">
+        <if test="product_code != null">
+            DELETE FROM s_gxhpz_product_zg WHERE product_code = #{product_code}
+        </if>
+    </delete>
+
+    <delete id="deleteProductInformationByCode" parameterType="string">
+        <if test="product_code != null">
+            DELETE FROM s_gxhpz_product_information WHERE product_code = #{product_code}
+        </if>
+    </delete>
+
+    <delete id="deleteProductDetailsByCode" parameterType="string">
+        <if test="product_code != null">
+            DELETE FROM s_gxhpz_product_details WHERE product_code = #{product_code}
+        </if>
+    </delete>
+
+    <delete id="deleteProductClassificationByCode" parameterType="string">
+        <if test="product_code != null">
+            DELETE FROM s_gxhpz_product_classification WHERE product_code = #{product_code}
+        </if>
+    </delete>
+
+    <delete id="deleteProductAttributesByCode" parameterType="string">
+        <if test="product_code != null">
+            DELETE FROM s_gxhpz_product_attributes WHERE product_code = #{product_code}
+        </if>
+    </delete>
+
+    <delete id="deleteProductDtpinfoByCode" parameterType="string">
+        <if test="product_code != null">
+            DELETE FROM s_gxhpz_product_dtpinfo WHERE product_code = #{product_code}
+        </if>
+    </delete>
+
+
+    <update id="productUpdate" parameterType="pd" >
+        update s_gxhpz_product_info
+        <set>
+            <trim suffixOverrides=",">
+                <!-- 产品基本信息 -->
+                <if test="product_name != null and product_name != ''">
+                    product_name=#{product_name},
+                </if>
+                <if test="mnemonic_code != null and mnemonic_code != ''">
+                    mnemonic_code=#{mnemonic_code},
+                </if>
+                <if test="product_description != null and product_description != ''">
+                    product_description=#{product_description},
+                </if>
+                <if test="generic_name != null and generic_name != ''">
+                    generic_name=#{generic_name},
+                </if>
+                <if test="generic_mnemonic_code != null and generic_mnemonic_code != ''">
+                    generic_mnemonic_code=#{generic_mnemonic_code},
+                </if>
+                <if test="generic_previous_names != null and generic_previous_names != ''">
+                    generic_previous_names=#{generic_previous_names},
+                </if>
+
+                <!-- 产品规格和包装 -->
+                <if test="base_unit != null and base_unit != ''">
+                    base_unit=#{base_unit},
+                </if>
+                <if test="trademark != null and trademark != ''">
+                    trademark=#{trademark},
+                </if>
+                <if test="specification != null and specification != ''">
+                    specification=#{specification},
+                </if>
+                <if test="packaging != null and packaging != ''">
+                    packaging=#{packaging},
+                </if>
+                <if test="international_barcode != null and international_barcode != ''">
+                    international_barcode=#{international_barcode},
+                </if>
+
+                <!-- 生产商信息 -->
+                <if test="manufacturer != null and manufacturer != ''">
+                    manufacturer=#{manufacturer},
+                </if>
+                <if test="entrusted_manufacturer != null and entrusted_manufacturer != ''">
+                    entrusted_manufacturer=#{entrusted_manufacturer},
+                </if>
+                <if test="manufacturer_abbreviation != null and manufacturer_abbreviation != ''">
+                    manufacturer_abbreviation=#{manufacturer_abbreviation},
+                </if>
+                <if test="origin != null and origin != ''">
+                    origin=#{origin},
+                </if>
+
+                <!-- 分类和状态 -->
+                <if test="category_maj != null and category_maj != ''">
+                    category_maj=#{category_maj},
+                </if>
+                <if test="category_min != null and category_min != ''">
+                    category_min=#{category_min},
+                </if>
+                <if test="product_type != null and product_type != ''">
+                    product_type=#{product_type},
+                </if>
+                <if test="product_status != null and product_status != ''">
+                    product_status=#{product_status},
+                </if>
+                <if test="purchase_tax_rate != null and purchase_tax_rate != ''">
+                    purchase_tax_rate=#{purchase_tax_rate},
+                </if>
+                <if test="sales_tax_rate != null and sales_tax_rate != ''">
+                    sales_tax_rate=#{sales_tax_rate},
+                </if>
+                <if test="import_export_status != null and import_export_status != ''">
+                    import_export_status=#{import_export_status},
+                </if>
+                <if test="major_category != null and major_category != ''">
+                    major_category=#{major_category},
+                </if>
+                <if test="medium_category != null and medium_category != ''">
+                    medium_category=#{medium_category},
+                </if>
+                <if test="minor_category != null and minor_category != ''">
+                    minor_category=#{minor_category},
+                </if>
+                <if test="sub_category != null and sub_category != ''">
+                    sub_category=#{sub_category},
+                </if>
+
+                <!-- 其他属性 -->
+                <if test="ingredients != null and ingredients != ''">
+                    ingredients=#{ingredients},
+                </if>
+                <if test="dtp_flag != null and dtp_flag != ''">
+                    dtp_flag=#{dtp_flag},
+                </if>
+                <if test="daily_standard_consumption != null and daily_standard_consumption != ''">
+                    daily_standard_consumption=#{daily_standard_consumption},
+                </if>
+                <if test="duplicate_suspected != null and duplicate_suspected != ''">
+                    duplicate_suspected=#{duplicate_suspected},
+                </if>
+                <if test="alternative_code != null and alternative_code != ''">
+                    alternative_code=#{alternative_code},
+                </if>
+                <if test="marketing_authorization_holder != null and marketing_authorization_holder != ''">
+                    marketing_authorization_holder=#{marketing_authorization_holder},
+                </if>
+                <if test="medication_days != null and medication_days != ''">
+                    medication_days=#{medication_days},
+                </if>
+                <if test="small_code_southchina_specific != null and small_code_southchina_specific != ''">
+                    small_code_southchina_specific=#{small_code_southchina_specific},
+                </if>
+                <if test="corresponding_major_code != null and corresponding_major_code != ''">
+                    corresponding_major_code=#{corresponding_major_code},
+                </if>
+                <if test="conversion_ratio_to_alternative != null and conversion_ratio_to_alternative != ''">
+                    conversion_ratio_to_alternative=#{conversion_ratio_to_alternative},
+                </if>
+                <if test="disease_type != null and disease_type != ''">
+                    disease_type=#{disease_type},
+                </if>
+                <if test="brand_manufacturer_name != null and brand_manufacturer_name != ''">
+                    brand_manufacturer_name=#{brand_manufacturer_name},
+                </if>
+                <if test="group_name != null and group_name != ''">
+                    group_name=#{group_name},
+                </if>
+                <if test="external_organization != null and external_organization != ''">
+                    external_organization=#{external_organization},
+                </if>
+                <if test="national_negotiated_product != null and national_negotiated_product != ''">
+                    national_negotiated_product=#{national_negotiated_product},
+                </if>
+                <if test="national_standard_code != null and national_standard_code != ''">
+                    national_standard_code=#{national_standard_code},
+                </if>
+                <if test="national_standard_code_2 != null and national_standard_code_2 != ''">
+                    national_standard_code_2=#{national_standard_code_2},
+                </if>
+                <if test="medical_insurance_min_dose_unit != null and medical_insurance_min_dose_unit != ''">
+                    medical_insurance_min_dose_unit=#{medical_insurance_min_dose_unit},
+                </if>
+                <if test="medical_market_status != null and medical_market_status != ''">
+                    medical_market_status=#{medical_market_status},
+                </if>
+                <if test="accounting_manufacturer != null and accounting_manufacturer != ''">
+                    accounting_manufacturer=#{accounting_manufacturer},
+                </if>
+                <if test="department_affiliation != null and department_affiliation != ''">
+                    department_affiliation=#{department_affiliation},
+                </if>
+                <if test="chronic_disease_first_line_treatment != null and chronic_disease_first_line_treatment != ''">
+                    chronic_disease_first_line_treatment=#{chronic_disease_first_line_treatment},
+                </if>
+                <if test="is_medical_generic_name != null and is_medical_generic_name != ''">
+                    is_medical_generic_name=#{is_medical_generic_name},
+                </if>
+                <if test="covid_tag != null and covid_tag != ''">
+                    covid_tag=#{covid_tag},
+                </if>
+                <if test="product_remarks != null and product_remarks != ''">
+                    product_remarks=#{product_remarks},
+                </if>
+            </trim>
+        </set>
+        where product_code = #{product_code}
+    </update>
+
+    <update id="productUpdate2" parameterType="pd" >
+        update s_gxhpz_product_information
+            <trim prefix="SET" suffixOverrides=",">
+                <!-- 基本采购属性 -->
+                <if test="reference_purchase_price != null and reference_purchase_price != ''">
+                    reference_purchase_price=#{reference_purchase_price},
+                </if>
+                <if test="is_direct_to_warehouse != null and is_direct_to_warehouse != ''">
+                    is_direct_to_warehouse=#{is_direct_to_warehouse},
+                </if>
+                <if test="purchase_group != null and purchase_group != ''">
+                    purchase_group=#{purchase_group},
+                </if>
+                <if test="channel_attribute != null and channel_attribute != ''">
+                    channel_attribute=#{channel_attribute},
+                </if>
+                <if test="purchase_organization != null and purchase_organization != ''">
+                    purchase_organization=#{purchase_organization},
+                </if>
+                <if test="is_purchase_prohibited != null and is_purchase_prohibited != ''">
+                    is_purchase_prohibited=#{is_purchase_prohibited},
+                </if>
+
+                <!-- 产品和品牌属性 -->
+                <if test="group_product_purchase_attribute != null and group_product_purchase_attribute != ''">
+                    group_product_purchase_attribute=#{group_product_purchase_attribute},
+                </if>
+                <if test="is_original_research != null and is_original_research != ''">
+                    is_original_research=#{is_original_research},
+                </if>
+                <if test="brand_attribute != null and brand_attribute != ''">
+                    brand_attribute=#{brand_attribute},
+                </if>
+                <if test="consumer_health_own_brand != null and consumer_health_own_brand != ''">
+                    consumer_health_own_brand=#{consumer_health_own_brand},
+                </if>
+                <if test="health_category != null and health_category != ''">
+                    health_category=#{health_category},
+                </if>
+
+                <!-- 注册和管理属性 -->
+                <if test="registrant_unified_social_credit_code != null and registrant_unified_social_credit_code != ''">
+                    registrant_unified_social_credit_code=#{registrant_unified_social_credit_code},
+                </if>
+                <if test="is_broad_dtp != null and is_broad_dtp != ''">
+                    is_broad_dtp=#{is_broad_dtp},
+                </if>
+                <if test="purchase_attribute != null and purchase_attribute != ''">
+                    purchase_attribute=#{purchase_attribute},
+                </if>
+                <if test="operation_attribute != null and operation_attribute != ''">
+                    operation_attribute=#{operation_attribute},
+                </if>
+                <if test="archive_number != null and archive_number != ''">
+                    archive_number=#{archive_number},
+                </if>
+
+                <!-- 销售和特殊属性 -->
+                <if test="special_sales_attribute != null and special_sales_attribute != ''">
+                    special_sales_attribute=#{special_sales_attribute},
+                </if>
+                <if test="is_normal_stock_in_central_warehouse != null and is_normal_stock_in_central_warehouse != ''">
+                    is_normal_stock_in_central_warehouse=#{is_normal_stock_in_central_warehouse},
+                </if>
+                <if test="is_first_operation != null and is_first_operation != ''">
+                    is_first_operation=#{is_first_operation},
+                </if>
+                <if test="data_creation_time != null and data_creation_time != ''">
+                    data_creation_time=#{data_creation_time},
+                </if>
+                <if test="product_mid_code_strategy != null and product_mid_code_strategy != ''">
+                    product_mid_code_strategy=#{product_mid_code_strategy},
+                </if>
+
+                <!-- 其他属性 -->
+                <if test="is_completed_component_analysis != null and is_completed_component_analysis != ''">
+                    is_completed_component_analysis=#{is_completed_component_analysis},
+                </if>
+                <if test="sales_control_attribute != null and sales_control_attribute != ''">
+                    sales_control_attribute=#{sales_control_attribute},
+                </if>
+                <if test="four_plus_seven_label != null and four_plus_seven_label != ''">
+                    four_plus_seven_label=#{four_plus_seven_label},
+                </if>
+                <if test="platform_common_recommendation != null and platform_common_recommendation != ''">
+                    platform_common_recommendation=#{platform_common_recommendation},
+                </if>
+                <if test="commercial_large_circulation_product != null and commercial_large_circulation_product != ''">
+                    commercial_large_circulation_product=#{commercial_large_circulation_product},
+                </if>
+                <if test="unified_procurement_elimination_time != null and unified_procurement_elimination_time != ''">
+                    unified_procurement_elimination_time=#{unified_procurement_elimination_time},
+                </if>
+                <if test="centralized_procurement_elimination_time != null and centralized_procurement_elimination_time != ''">
+                    centralized_procurement_elimination_time=#{centralized_procurement_elimination_time},
+                </if>
+                <if test="zc_special_attributes != null and zc_special_attributes != ''">
+                    zc_special_attributes=#{zc_special_attributes},
+                </if>
+                <if test="old_new_code_conversion_ratio != null and old_new_code_conversion_ratio != ''">
+                    old_new_code_conversion_ratio=#{old_new_code_conversion_ratio},
+                </if>
+                <if test="dual_channel_drug != null and dual_channel_drug != ''">
+                    dual_channel_drug=#{dual_channel_drug},
+                </if>
+                <if test="national_negotiated_price != null and national_negotiated_price != ''">
+                    national_negotiated_price=#{national_negotiated_price},
+                </if>
+                <if test="guangzhou_pharmaceutical_supervision_code != null and guangzhou_pharmaceutical_supervision_code != ''">
+                    guangzhou_pharmaceutical_supervision_code=#{guangzhou_pharmaceutical_supervision_code},
+                </if>
+                <if test="coordinated_reimbursement_product != null and coordinated_reimbursement_product != ''">
+                    coordinated_reimbursement_product=#{coordinated_reimbursement_product},
+                </if>
+                <if test="two_pantry_goods_attribute != null and two_pantry_goods_attribute != ''">
+                    two_pantry_goods_attribute=#{two_pantry_goods_attribute},
+                </if>
+                <if test="is_store_operation_restricted != null and is_store_operation_restricted != ''">
+                    is_store_operation_restricted=#{is_store_operation_restricted},
+                </if>
+                <if test="can_be_allocated_to_franchise_stores != null and can_be_allocated_to_franchise_stores != ''">
+                    can_be_allocated_to_franchise_stores=#{can_be_allocated_to_franchise_stores},
+                </if>
+                <if test="franchise_stores_enjoy_unified_procurement_policy != null and franchise_stores_enjoy_unified_procurement_policy != ''">
+                    franchise_stores_enjoy_unified_procurement_policy=#{franchise_stores_enjoy_unified_procurement_policy},
+                </if>
+                <if test="medical_insurance_purchase_type != null and medical_insurance_purchase_type != ''">
+                    medical_insurance_purchase_type=#{medical_insurance_purchase_type},
+                </if>
+            </trim>
+        where product_code = #{product_code}
+    </update>
+
+    <update id="productUpdate3" parameterType="pd" >
+        update s_gxhpz_product_classification
+        <set>
+            <trim suffixOverrides=",">
+                <if test="storage_category != null and storage_category != ''">
+                    storage_category=#{storage_category},
+                </if>
+                <if test="is_fragile != null and is_fragile != ''">
+                    is_fragile=#{is_fragile},
+                </if>
+                <if test="is_hazardous != null and is_hazardous != ''">
+                    is_hazardous=#{is_hazardous},
+                </if>
+                <if test="is_odd_shape != null and is_odd_shape != ''">
+                    is_odd_shape=#{is_odd_shape},
+                </if>
+                <if test="basic_package_length != null and basic_package_length != ''">
+                    basic_package_length=#{basic_package_length},
+                </if>
+                <if test="basic_package_width != null and basic_package_width != ''">
+                    basic_package_width=#{basic_package_width},
+                </if>
+                <if test="basic_package_height != null and basic_package_height != ''">
+                    basic_package_height=#{basic_package_height},
+                </if>
+                <if test="minimum_package_quantity != null and minimum_package_quantity != ''">
+                    minimum_package_quantity=#{minimum_package_quantity},
+                </if>
+                <if test="medium_package_quantity != null and medium_package_quantity != ''">
+                    medium_package_quantity=#{medium_package_quantity},
+                </if>
+                <if test="box_package_quantity != null and box_package_quantity != ''">
+                    box_package_quantity=#{box_package_quantity},
+                </if>
+                <if test="is_medium_package_enabled != null and is_medium_package_enabled != ''">
+                    is_medium_package_enabled=#{is_medium_package_enabled},
+                </if>
+                <if test="medium_package_request_ratio != null and medium_package_request_ratio != ''">
+                    medium_package_request_ratio=#{medium_package_request_ratio},
+                </if>
+            </trim>
+        </set>
+        where product_code = #{product_code}
+    </update>
+
+    <update id="productUpdate4" parameterType="pd" >
+        update s_gxhpz_product_zg
+        <set>
+            <trim suffixOverrides=",">
+                <if test="is_production_batch_management != null and is_production_batch_management != ''">
+                    is_production_batch_management=#{is_production_batch_management},
+                </if>
+                <if test="business_scope != null and business_scope != ''">
+                    business_scope=#{business_scope},
+                </if>
+                <if test="prescription_category != null and prescription_category != ''">
+                    prescription_category=#{prescription_category},
+                </if>
+                <if test="prescription_category_secondary != null and prescription_category_secondary != ''">
+                    prescription_category_secondary=#{prescription_category_secondary},
+                </if>
+                <if test="prescription_category_tertiary != null and prescription_category_tertiary != ''">
+                    prescription_category_tertiary=#{prescription_category_tertiary},
+                </if>
+                <if test="approval_number_1 != null and approval_number_1 != ''">
+                    approval_number_1=#{approval_number_1},
+                </if>
+                <if test="approval_number_1_expiry != null and approval_number_1_expiry != ''">
+                    approval_number_1_expiry=#{approval_number_1_expiry},
+                </if>
+                <if test="approval_number_2 != null and approval_number_2 != ''">
+                    approval_number_2=#{approval_number_2},
+                </if>
+                <if test="approval_number_2_expiry != null and approval_number_2_expiry != ''">
+                    approval_number_2_expiry=#{approval_number_2_expiry},
+                </if>
+                <if test="registration_certificate_1 != null and registration_certificate_1 != ''">
+                    registration_certificate_1=#{registration_certificate_1},
+                </if>
+                <if test="registration_certificate_1_expiry != null and registration_certificate_1_expiry != ''">
+                    registration_certificate_1_expiry=#{registration_certificate_1_expiry},
+                </if>
+                <if test="registration_certificate_2 != null and registration_certificate_2 != ''">
+                    registration_certificate_2=#{registration_certificate_2},
+                </if>
+                <if test="registration_certificate_2_expiry != null and registration_certificate_2_expiry != ''">
+                    registration_certificate_2_expiry=#{registration_certificate_2_expiry},
+                </if>
+                <if test="production_license != null and production_license != ''">
+                    production_license=#{production_license},
+                </if>
+                <if test="production_license_expiry != null and production_license_expiry != ''">
+                    production_license_expiry=#{production_license_expiry},
+                </if>
+                <if test="is_cold_chain_drug != null and is_cold_chain_drug != ''">
+                    is_cold_chain_drug=#{is_cold_chain_drug},
+                </if>
+                <if test="is_second_inspection != null and is_second_inspection != ''">
+                    is_second_inspection=#{is_second_inspection},
+                </if>
+                <if test="local_code != null and local_code != ''">
+                    local_code=#{local_code},
+                </if>
+                <if test="pharmacology_toxicology != null and pharmacology_toxicology != ''">
+                    pharmacology_toxicology=#{pharmacology_toxicology},
+                </if>
+                <if test="clinical_trial != null and clinical_trial != ''">
+                    clinical_trial=#{clinical_trial},
+                </if>
+                <if test="drug_overdose != null and drug_overdose != ''">
+                    drug_overdose=#{drug_overdose},
+                </if>
+                <if test="elderly_patient_usage != null and elderly_patient_usage != ''">
+                    elderly_patient_usage=#{elderly_patient_usage},
+                </if>
+                <if test="pediatric_patient_usage != null and pediatric_patient_usage != ''">
+                    pediatric_patient_usage=#{pediatric_patient_usage},
+                </if>
+                <if test="pregnant_breastfeeding_usage != null and pregnant_breastfeeding_usage != ''">
+                    pregnant_breastfeeding_usage=#{pregnant_breastfeeding_usage},
+                </if>
+                <if test="zgingredients != null and zgingredients != ''">
+                    zgingredients=#{zgingredients},
+                </if>
+                <if test="group_quality_status != null and group_quality_status != ''">
+                    group_quality_status=#{group_quality_status},
+                </if>
+                <if test="package_specification != null and package_specification != ''">
+                    package_specification=#{package_specification},
+                </if>
+                <if test="storage_conditions != null and storage_conditions != ''">
+                    storage_conditions=#{storage_conditions},
+                </if>
+                <if test="has_traceability_code != null and has_traceability_code != ''">
+                    has_traceability_code=#{has_traceability_code},
+                </if>
+                <if test="acceptance_period_days != null and acceptance_period_days != ''">
+                    acceptance_period_days=#{acceptance_period_days},
+                </if>
+                <if test="is_serial_number_managed != null and is_serial_number_managed != ''">
+                    is_serial_number_managed=#{is_serial_number_managed},
+                </if>
+                <if test="near_expiry_date != null and near_expiry_date != ''">
+                    near_expiry_date=#{near_expiry_date},
+                </if>
+                <if test="company_approval_expiry != null and company_approval_expiry != ''">
+                    company_approval_expiry=#{company_approval_expiry},
+                </if>
+                <if test="company_registration_expiry != null and company_registration_expiry != ''">
+                    company_registration_expiry=#{company_registration_expiry},
+                </if>
+                <if test="is_scan_traceable != null and is_scan_traceable != ''">
+                    is_scan_traceable=#{is_scan_traceable},
+                </if>
+                <if test="wildlife_management_identification != null and wildlife_management_identification != ''">
+                    wildlife_management_identification=#{wildlife_management_identification},
+                </if>
+                <if test="special_sales_control != null and special_sales_control != ''">
+                    special_sales_control=#{special_sales_control},
+                </if>
+                <if test="is_udi_scanned != null and is_udi_scanned != ''">
+                    is_udi_scanned=#{is_udi_scanned},
+                </if>
+                <if test="max_prescription_days != null and max_prescription_days != ''">
+                    max_prescription_days=#{max_prescription_days},
+                </if>
+                <if test="restricted_usage != null and restricted_usage != ''">
+                    restricted_usage=#{restricted_usage},
+                </if>
+            </trim>
+        </set>
+        where product_code = #{product_code}
+    </update>
+
+    <update id="productUpdate5" parameterType="pd" >
+        update s_gxhpz_product_details
+        <set>
+            <trim suffixOverrides=",">
+                <if test="reference_retail_price != null and reference_retail_price != ''">
+                    reference_retail_price=#{reference_retail_price},
+                </if>
+                <if test="online_sales != null and online_sales != ''">
+                    online_sales=#{online_sales},
+                </if>
+                <if test="mid_platform_product_spuid != null and mid_platform_product_spuid != ''">
+                    mid_platform_product_spuid=#{mid_platform_product_spuid},
+                </if>
+                <if test="mid_platform_product_type != null and mid_platform_product_type != ''">
+                    mid_platform_product_type=#{mid_platform_product_type},
+                </if>
+                <if test="external_transmission_system != null and external_transmission_system != ''">
+                    external_transmission_system=#{external_transmission_system},
+                </if>
+                <if test="online_o2o != null and online_o2o != ''">
+                    online_o2o=#{online_o2o},
+                </if>
+                <if test="online_b2c != null and online_b2c != ''">
+                    online_b2c=#{online_b2c},
+                </if>
+                <if test="online_mutual_medical != null and online_mutual_medical != ''">
+                    online_mutual_medical=#{online_mutual_medical},
+                </if>
+                <if test="online_brand_health != null and online_brand_health != ''">
+                    online_brand_health=#{online_brand_health},
+                </if>
+                <if test="xproduct_name != null and xproduct_name != ''">
+                    xproduct_name=#{xproduct_name},
+                </if>
+                <if test="minimum_display_quantity != null and minimum_display_quantity != ''">
+                    minimum_display_quantity=#{minimum_display_quantity},
+                </if>
+                <if test="sales_attributes != null and sales_attributes != ''">
+                    sales_attributes=#{sales_attributes},
+                </if>
+                <if test="prohibit_delivery != null and prohibit_delivery != ''">
+                    prohibit_delivery=#{prohibit_delivery},
+                </if>
+                <if test="prohibit_return_warehouse != null and prohibit_return_warehouse != ''">
+                    prohibit_return_warehouse=#{prohibit_return_warehouse},
+                </if>
+                <if test="prohibit_sales != null and prohibit_sales != ''">
+                    prohibit_sales=#{prohibit_sales},
+                </if>
+                <if test="can_be_divided != null and can_be_divided != ''">
+                    can_be_divided=#{can_be_divided},
+                </if>
+                <if test="division_unit != null and division_unit != ''">
+                    division_unit=#{division_unit},
+                </if>
+                <if test="division_ratio != null and division_ratio != ''">
+                    division_ratio=#{division_ratio},
+                </if>
+                <if test="daas_business_model != null and daas_business_model != ''">
+                    daas_business_model=#{daas_business_model},
+                </if>
+                <if test="promotion_approval != null and promotion_approval != ''">
+                    promotion_approval=#{promotion_approval},
+                </if>
+                <if test="wholesale_priority_level != null and wholesale_priority_level != ''">
+                    wholesale_priority_level=#{wholesale_priority_level},
+                </if>
+                <if test="external_packaging_path != null and external_packaging_path != ''">
+                    external_packaging_path=#{external_packaging_path},
+                </if>
+                <if test="can_view != null and can_view != ''">
+                    can_view=#{can_view},
+                </if>
+                <if test="can_delete != null and can_delete != ''">
+                    can_delete=#{can_delete},
+                </if>
+            </trim>
+        </set>
+        where product_code = #{product_code}
+    </update>
+
+    <update id="productUpdate6" parameterType="pd" >
+        update s_gxhpz_product_attributes
+        <set>
+            <trim suffixOverrides=",">
+                <if test="platform_property != null and platform_property != ''">
+                    platform_property=#{platform_property},
+                </if>
+                <if test="company_property != null and company_property != ''">
+                    company_property=#{company_property},
+                </if>
+                <if test="product_franchise_attribute != null and product_franchise_attribute != ''">
+                    product_franchise_attribute=#{product_franchise_attribute},
+                </if>
+            </trim>
+        </set>
+        where product_code = #{product_code}
+    </update>
+
+    <update id="productUpdate12" parameterType="pd" >
+        update s_gxhpz_product_dtpinfo
+        <set>
+            <trim suffixOverrides=",">
+                <if test="is_insurance_drug != null and is_insurance_drug != ''">
+                    is_insurance_drug=#{is_insurance_drug},
+                </if>
+                <if test="insurance_category != null and insurance_category != ''">
+                    insurance_category=#{insurance_category},
+                </if>
+                <if test="purchase_limit_quantity != null and purchase_limit_quantity != ''">
+                    purchase_limit_quantity=#{purchase_limit_quantity},
+                </if>
+                <if test="prescription_required != null and prescription_required != ''">
+                    prescription_required=#{prescription_required},
+                </if>
+                <if test="prohibit_ordering != null and prohibit_ordering != ''">
+                    prohibit_ordering=#{prohibit_ordering},
+                </if>
+                <if test="mid_pack_order_logic != null and mid_pack_order_logic != ''">
+                    mid_pack_order_logic=#{mid_pack_order_logic},
+                </if>
+                <if test="max_order_limit != null and max_order_limit != ''">
+                    max_order_limit=#{max_order_limit},
+                </if>
+                <if test="registered_item != null and registered_item != ''">
+                    registered_item=#{registered_item},
+                </if>
+                <if test="follow_up_item != null and follow_up_item != ''">
+                    follow_up_item=#{follow_up_item},
+                </if>
+                <if test="cold_chain_item != null and cold_chain_item != ''">
+                    cold_chain_item=#{cold_chain_item},
+                </if>
+                <if test="flow_item != null and flow_item != ''">
+                    flow_item=#{flow_item},
+                </if>
+                <if test="charity_aid_item != null and charity_aid_item != ''">
+                    charity_aid_item=#{charity_aid_item},
+                </if>
+            </trim>
+        </set>
+        where product_code = #{product_code}
+
+    </update>
+    <select id="findSPProductinfoCode" parameterType="pd" resultType="pd">
+        SELECT
+            COALESCE(pi.product_code, '0') AS code,
+            COALESCE(di.product_code, '0') AS code12,
+            COALESCE(pf.product_code, '0') AS code3,
+            COALESCE(zg.product_code, '0') AS code4,
+            COALESCE(pd.product_code, '0') AS code5,
+            COALESCE(pc.product_code, '0') AS code6,
+            COALESCE(pa.product_code, '0') AS code7
+        FROM s_gxhpz_product_info pi
+                 LEFT JOIN s_gxhpz_product_dtpinfo di ON di.product_code = pi.product_code
+                 LEFT JOIN s_gxhpz_product_information pf ON pf.product_code = pi.product_code
+                 LEFT JOIN s_gxhpz_product_zg zg ON zg.product_code = pi.product_code
+                 LEFT JOIN s_gxhpz_product_details pd ON pd.product_code = pi.product_code
+                 LEFT JOIN s_gxhpz_product_classification pc ON pc.product_code = pi.product_code
+                 LEFT JOIN s_gxhpz_product_attributes pa ON pa.product_code = pi.product_code
+        WHERE pi.product_code = #{product_code}
+
+    </select>
+
+
+</mapper>