Browse Source

订单台账

dev
xiaoyu 1 month ago
parent
commit
0f563d7ae5
  1. 67
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/gss/DhcOrderLedgerController.java
  2. 237
      ruoyi-system/src/main/java/com/ruoyi/system/domain/DhcOrderLedger.java
  3. 18
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/DhcOrderLedgerMapper.java
  4. 18
      ruoyi-system/src/main/java/com/ruoyi/system/service/IDhcOrderLedgerService.java
  5. 49
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DhcOrderLedgerServiceImpl.java
  6. 101
      ruoyi-system/src/main/resources/mapper/system/DhcOrderLedgerMapper.xml
  7. 124
      sql/gss/订单台账.sql

67
ruoyi-admin/src/main/java/com/ruoyi/web/controller/gss/DhcOrderLedgerController.java

@ -0,0 +1,67 @@ @@ -0,0 +1,67 @@
package com.ruoyi.web.controller.gss;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.DhcOrderLedger;
import com.ruoyi.system.service.IDhcOrderLedgerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@RestController
@RequestMapping("/gss/orderLedger")
public class DhcOrderLedgerController extends BaseController {
@Autowired
private IDhcOrderLedgerService dhcOrderLedgerService;
@PreAuthorize("@ss.hasPermi('gss:orderLedger:list')")
@GetMapping("/list")
public TableDataInfo list(DhcOrderLedger dhcOrderLedger) {
startPage();
List<DhcOrderLedger> list = dhcOrderLedgerService.selectDhcOrderLedgerList(dhcOrderLedger);
return getDataTable(list);
}
@PreAuthorize("@ss.hasPermi('gss:orderLedger:export')")
@Log(title = "订单台账", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DhcOrderLedger dhcOrderLedger) {
List<DhcOrderLedger> list = dhcOrderLedgerService.selectDhcOrderLedgerList(dhcOrderLedger);
ExcelUtil<DhcOrderLedger> util = new ExcelUtil<DhcOrderLedger>(DhcOrderLedger.class);
util.exportExcel(response, list, "订单台账数据");
}
@PreAuthorize("@ss.hasPermi('gss:orderLedger:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(dhcOrderLedgerService.selectDhcOrderLedgerById(id));
}
@PreAuthorize("@ss.hasPermi('gss:orderLedger:add')")
@Log(title = "订单台账", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DhcOrderLedger dhcOrderLedger) {
return toAjax(dhcOrderLedgerService.insertDhcOrderLedger(dhcOrderLedger));
}
@PreAuthorize("@ss.hasPermi('gss:orderLedger:edit')")
@Log(title = "订单台账", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DhcOrderLedger dhcOrderLedger) {
return toAjax(dhcOrderLedgerService.updateDhcOrderLedger(dhcOrderLedger));
}
@PreAuthorize("@ss.hasPermi('gss:orderLedger:remove')")
@Log(title = "订单台账", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(dhcOrderLedgerService.deleteDhcOrderLedgerByIds(ids));
}
}

237
ruoyi-system/src/main/java/com/ruoyi/system/domain/DhcOrderLedger.java

@ -0,0 +1,237 @@ @@ -0,0 +1,237 @@
package com.ruoyi.system.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
public class DhcOrderLedger extends BaseEntity {
private static final long serialVersionUID = 1L;
@Excel(name = "主键ID")
private Long id;
@Excel(name = "落货纸号")
private String lhzNo;
@Excel(name = "滚动计划号")
private String rollPlanNumber;
@Excel(name = "生产版本")
private String productModel;
@Excel(name = "订单数量")
private Integer orderQty;
/** 客户名称 */
@Excel(name = "客户名称")
private String customerName;
/** 订单状态编码 */
@Excel(name = "订单状态编码")
private String orderStatusCode;
/** 订单状态名称 */
@Excel(name = "订单状态")
private String orderStatusName;
/** 销售区域代码 */
@Excel(name = "销售区域代码")
private String salesAreaCode;
/** 销售区域名称 */
@Excel(name = "销售区域名称")
private String salesAreaName;
/** 国家代码 */
@Excel(name = "国家代码")
private String countryCode;
/** 国家名称 */
@Excel(name = "国家名称")
private String countryName;
/** 实际客户 */
@Excel(name = "实际客户")
private String realCustomer;
/** 品牌代码 */
@Excel(name = "品牌代码")
private String brandCode;
/** 品牌名称 */
@Excel(name = "品牌名称")
private String brandName;
// getter/setter方法
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getLhzNo() {
return lhzNo;
}
public void setLhzNo(String lhzNo) {
this.lhzNo = lhzNo;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getOrderStatusCode() {
return orderStatusCode;
}
public void setOrderStatusCode(String orderStatusCode) {
this.orderStatusCode = orderStatusCode;
}
public String getOrderStatusName() {
return orderStatusName;
}
public void setOrderStatusName(String orderStatusName) {
this.orderStatusName = orderStatusName;
}
/** 计划交货期 */
@Excel(name = "计划交货期", width = 30, dateFormat = "yyyy-MM-dd")
private Date planDeliveryDate;
/** 计划交货期Weekday */
@Excel(name = "计划交货期Weekday")
private String planDeliveryWeekday;
public Date getPlanDeliveryDate() {
return planDeliveryDate;
}
public void setPlanDeliveryDate(Date planDeliveryDate) {
this.planDeliveryDate = planDeliveryDate;
}
public String getPlanDeliveryWeekday() {
return planDeliveryWeekday;
}
public void setPlanDeliveryWeekday(String planDeliveryWeekday) {
this.planDeliveryWeekday = planDeliveryWeekday;
}
public String getRollPlanNumber() {
return rollPlanNumber;
}
public void setRollPlanNumber(String rollPlanNumber) {
this.rollPlanNumber = rollPlanNumber;
}
public String getProductModel() {
return productModel;
}
public void setProductModel(String productModel) {
this.productModel = productModel;
}
public Integer getOrderQty() {
return orderQty;
}
public void setOrderQty(Integer orderQty) {
this.orderQty = orderQty;
}
/** 未生产数量 */
@Excel(name = "未生产数量")
private Integer noProductNum;
/** 已生产数量 */
@Excel(name = "已生产数量")
private Integer productNum;
public Integer getNoProductNum() {
return noProductNum;
}
public void setNoProductNum(Integer noProductNum) {
this.noProductNum = noProductNum;
}
public Integer getProductNum() {
return productNum;
}
public void setProductNum(Integer productNum) {
this.productNum = productNum;
}
public String getSalesAreaCode() {
return salesAreaCode;
}
public void setSalesAreaCode(String salesAreaCode) {
this.salesAreaCode = salesAreaCode;
}
public String getSalesAreaName() {
return salesAreaName;
}
public void setSalesAreaName(String salesAreaName) {
this.salesAreaName = salesAreaName;
}
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
public String getCountryName() {
return countryName;
}
public void setCountryName(String countryName) {
this.countryName = countryName;
}
public String getRealCustomer() {
return realCustomer;
}
public void setRealCustomer(String realCustomer) {
this.realCustomer = realCustomer;
}
public String getBrandCode() {
return brandCode;
}
public void setBrandCode(String brandCode) {
this.brandCode = brandCode;
}
public String getBrandName() {
return brandName;
}
public void setBrandName(String brandName) {
this.brandName = brandName;
}
}

18
ruoyi-system/src/main/java/com/ruoyi/system/mapper/DhcOrderLedgerMapper.java

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
package com.ruoyi.system.mapper;
import com.ruoyi.system.domain.DhcOrderLedger;
import java.util.List;
public interface DhcOrderLedgerMapper {
public List<DhcOrderLedger> selectDhcOrderLedgerList(DhcOrderLedger dhcOrderLedger);
public DhcOrderLedger selectDhcOrderLedgerById(Long id);
public int insertDhcOrderLedger(DhcOrderLedger dhcOrderLedger);
public int updateDhcOrderLedger(DhcOrderLedger dhcOrderLedger);
public int deleteDhcOrderLedgerById(Long id);
public int deleteDhcOrderLedgerByIds(Long[] ids);
}

18
ruoyi-system/src/main/java/com/ruoyi/system/service/IDhcOrderLedgerService.java

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
package com.ruoyi.system.service;
import com.ruoyi.system.domain.DhcOrderLedger;
import java.util.List;
public interface IDhcOrderLedgerService {
public List<DhcOrderLedger> selectDhcOrderLedgerList(DhcOrderLedger dhcOrderLedger);
public DhcOrderLedger selectDhcOrderLedgerById(Long id);
public int insertDhcOrderLedger(DhcOrderLedger dhcOrderLedger);
public int updateDhcOrderLedger(DhcOrderLedger dhcOrderLedger);
public int deleteDhcOrderLedgerByIds(Long[] ids);
public int deleteDhcOrderLedgerById(Long id);
}

49
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DhcOrderLedgerServiceImpl.java

@ -0,0 +1,49 @@ @@ -0,0 +1,49 @@
package com.ruoyi.system.service.impl;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.DhcOrderLedger;
import com.ruoyi.system.mapper.DhcOrderLedgerMapper;
import com.ruoyi.system.service.IDhcOrderLedgerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class DhcOrderLedgerServiceImpl implements IDhcOrderLedgerService {
@Autowired
private DhcOrderLedgerMapper dhcOrderLedgerMapper;
@Override
public List<DhcOrderLedger> selectDhcOrderLedgerList(DhcOrderLedger dhcOrderLedger) {
return dhcOrderLedgerMapper.selectDhcOrderLedgerList(dhcOrderLedger);
}
@Override
public DhcOrderLedger selectDhcOrderLedgerById(Long id) {
return dhcOrderLedgerMapper.selectDhcOrderLedgerById(id);
}
@Override
public int insertDhcOrderLedger(DhcOrderLedger dhcOrderLedger) {
dhcOrderLedger.setCreateTime(DateUtils.getNowDate());
return dhcOrderLedgerMapper.insertDhcOrderLedger(dhcOrderLedger);
}
@Override
public int updateDhcOrderLedger(DhcOrderLedger dhcOrderLedger) {
dhcOrderLedger.setUpdateTime(DateUtils.getNowDate());
return dhcOrderLedgerMapper.updateDhcOrderLedger(dhcOrderLedger);
}
@Override
public int deleteDhcOrderLedgerByIds(Long[] ids) {
return dhcOrderLedgerMapper.deleteDhcOrderLedgerByIds(ids);
}
@Override
public int deleteDhcOrderLedgerById(Long id) {
return dhcOrderLedgerMapper.deleteDhcOrderLedgerById(id);
}
}

101
ruoyi-system/src/main/resources/mapper/system/DhcOrderLedgerMapper.xml

@ -0,0 +1,101 @@ @@ -0,0 +1,101 @@
<?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="com.ruoyi.system.mapper.DhcOrderLedgerMapper">
<resultMap type="DhcOrderLedger" id="DhcOrderLedgerResult">
<id property="id" column="id" />
<result property="lhzNo" column="lhz_no" />
<result property="rollPlanNumber" column="roll_plan_number" />
<result property="productModel" column="product_model" />
<result property="orderQty" column="order_qty" />
<result property="noProductNum" column="no_product_num" />
<result property="productNum" column="product_num" />
<result property="salesAreaCode" column="sales_area_code" />
<result property="salesAreaName" column="sales_area_name" />
<result property="countryCode" column="country_code" />
<result property="countryName" column="country_name" />
<result property="customerName" column="customer_name" />
<result property="realCustomer" column="real_customer" />
<result property="brandCode" column="brand_code" />
<result property="brandName" column="brand_name" />
<!-- 其他字段映射 -->
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectDhcOrderLedgerVo">
select id, lhz_no, roll_plan_number, product_model, order_qty, no_product_num, product_num,
sales_area_code, sales_area_name, country_code, country_name, customer_name, real_customer,
brand_code, brand_name, create_by, create_time, update_by, update_time, remark
from dhc_order_ledger
</sql>
<select id="selectDhcOrderLedgerList" parameterType="DhcOrderLedger" resultMap="DhcOrderLedgerResult">
<include refid="selectDhcOrderLedgerVo"/>
<where>
<if test="lhzNo != null and lhzNo != ''"> and lhz_no = #{lhzNo}</if>
<if test="rollPlanNumber != null and rollPlanNumber != ''"> and roll_plan_number = #{rollPlanNumber}</if>
<if test="productModel != null and productModel != ''"> and product_model = #{productModel}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="orderStatusCode != null and orderStatusCode != ''"> and order_status_code = #{orderStatusCode}</if>
<if test="planDeliveryDate != null "> and plan_delivery_date = #{planDeliveryDate}</if>
</where>
</select>
<select id="selectDhcOrderLedgerById" parameterType="Long" resultMap="DhcOrderLedgerResult">
<include refid="selectDhcOrderLedgerVo"/>
where id = #{id}
</select>
<insert id="insertDhcOrderLedger" parameterType="DhcOrderLedger" useGeneratedKeys="true" keyProperty="id">
insert into dhc_order_ledger
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="lhzNo != null">lhz_no,</if>
<if test="rollPlanNumber != null">roll_plan_number,</if>
<if test="productModel != null">product_model,</if>
<if test="orderQty != null">order_qty,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="lhzNo != null">#{lhzNo},</if>
<if test="rollPlanNumber != null">#{rollPlanNumber},</if>
<if test="productModel != null">#{productModel},</if>
<if test="orderQty != null">#{orderQty},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateDhcOrderLedger" parameterType="DhcOrderLedger">
update dhc_order_ledger
<trim prefix="SET" suffixOverrides=",">
<if test="lhzNo != null">lhz_no = #{lhzNo},</if>
<if test="rollPlanNumber != null">roll_plan_number = #{rollPlanNumber},</if>
<if test="productModel != null">product_model = #{productModel},</if>
<if test="orderQty != null">order_qty = #{orderQty},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteDhcOrderLedgerById" parameterType="Long">
delete from dhc_order_ledger where id = #{id}
</delete>
<delete id="deleteDhcOrderLedgerByIds" parameterType="String">
delete from dhc_order_ledger where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

124
sql/gss/订单台账.sql

@ -0,0 +1,124 @@ @@ -0,0 +1,124 @@
CREATE TABLE `dhc_order_ledger` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`lhz_no` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '落货纸号',
`roll_plan_number` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '滚动计划号',
`product_model` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生产版本',
`order_qty` int DEFAULT '0' COMMENT '订单数量',
`no_product_num` int DEFAULT '0' COMMENT '未做落货纸数量',
`product_num` int DEFAULT '0' COMMENT '落货纸数量',
`sales_area_code` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '销售区域编码',
`sales_area_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '销售区域名称',
`country_code` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '国家编码',
`country_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '国家名称',
`customer_name` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '客户名称',
`real_customer` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '真实客户',
`brand_code` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '品牌编码',
`brand_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '品牌名称',
`trade_terms` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '贸易条款',
`fob_unit_price` decimal(16,2) DEFAULT '0.00' COMMENT 'FOB单价',
`fob_price` decimal(16,2) DEFAULT '0.00' COMMENT 'FOB总金额',
`cif_unit_price` decimal(16,2) DEFAULT '0.00' COMMENT 'CIF单价',
`cif_price` decimal(16,2) DEFAULT '0.00' COMMENT 'CIF总金额',
`move_price` decimal(16,2) DEFAULT '0.00' COMMENT '总运费',
`premium` decimal(16,2) DEFAULT '0.00' COMMENT '总保费',
`cg_unit_price` decimal(16,2) DEFAULT '0.00' COMMENT '预估保值单价',
`cg_price` decimal(16,2) DEFAULT '0.00' COMMENT '预估保值总额',
`po_price` decimal(16,2) DEFAULT '0.00' COMMENT 'PO总金额',
`exw_unit_price` decimal(16,2) DEFAULT '0.00' COMMENT 'EXW单价',
`actual_invoiced_amount` decimal(16,2) DEFAULT '0.00' COMMENT '实际开票金额',
`hong_kong_invoice_price` decimal(16,2) DEFAULT '0.00' COMMENT '香港发票价格(运保费不单列)',
`hong_kong_price` decimal(16,2) DEFAULT '0.00' COMMENT '香港发票总金额(运保费不单列)',
`product_size` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '尺寸',
`completemach_code` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '整机编码',
`new_material_code` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '新物料号',
`contract_no` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '合同号',
`order_status_name` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '订单状态',
`order_status_code` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '订单状态编码',
`customer_model` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '销售型号',
`screen_code` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '屏型号',
`production_base_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生产基地',
`pack_way_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '包装方式',
`order_type` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '订单类别',
`ship_port_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '起运港',
`destn_port_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '目的港',
`air_line` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '航线',
`ship_company` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '船公司',
`so_no` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'SO号',
`plan_delivery_date` date DEFAULT NULL COMMENT '计划交货期',
`plan_delivery_weekday` varchar(10) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '计划交货期Weekday',
`ordplan_date` date DEFAULT NULL COMMENT '排产交货期',
`formal_plan_delivery_date` date DEFAULT NULL COMMENT '正式版滚动计划交货期',
`formal_plan_qty` int DEFAULT '0' COMMENT '正式版滚动计划数量',
`current_inventory` int DEFAULT '0' COMMENT '当前库存数',
`delivery_date_diff` int DEFAULT '0' COMMENT 'GSS交货期与正式版交货期差异',
`qty_diff` int DEFAULT '0' COMMENT 'GSS数量与正式版数量差异',
`plan_etd` date DEFAULT NULL COMMENT 'ETD计划',
`plan_eta` date DEFAULT NULL COMMENT 'ETA计划',
`plan_etd_weekday` varchar(10) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'ETD Weekday(计划)',
`lhz_etd` date DEFAULT NULL COMMENT '落货纸ETD',
`dc_etd` date DEFAULT NULL COMMENT '订舱ETD',
`etd_actual_time` datetime DEFAULT NULL COMMENT 'ETD(实时)',
`eta_actual_time` datetime DEFAULT NULL COMMENT 'ETA(实时)',
`eta_difference` int DEFAULT '0' COMMENT 'ETA(差异)',
`special_remark` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '特殊备注',
`atd` datetime DEFAULT NULL COMMENT 'ATD',
`ata` datetime DEFAULT NULL COMMENT 'ATA',
`ztd_date` date DEFAULT NULL COMMENT '提单日期',
`is_inspection` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否验货(0否 1是)',
`sales_assistant_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '销售协调',
`logistics_personnel` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '物流人员',
`lhz_status_name` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '落货纸状态',
`order_entry_month` varchar(7) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '报关月份',
`service_type` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否执行零号(0否 1是)',
`product_line_type` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '产品线',
`rk_qty` int DEFAULT '0' COMMENT '累计入库数',
`product_big_category` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '产品大类',
`zero_roll_plan_number` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '零号滚动计划号',
`box_type` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '箱型箱量',
`manu_remark` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '手工备注',
`overseas_factory` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '海外工厂',
`in_production` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '生产中(0否 1是)',
`in_stock` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '有库存(0否 1是)',
`loaded_in_container` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '已装柜(0否 1是)',
`has_shipped` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '已出运(0否 1是)',
`delivery_status` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '交付状态',
`customs_declaration_number` int DEFAULT '0' COMMENT '关单数量',
`customs_declaration_reason` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '关单原因',
`create_by` varchar(64) COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
`del_flag` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)',
PRIMARY KEY (`id`),
KEY `idx_lhz_no` (`lhz_no`),
KEY `idx_roll_plan_number` (`roll_plan_number`),
KEY `idx_customer_name` (`customer_name`),
KEY `idx_brand_code` (`brand_code`),
KEY `idx_order_status_code` (`order_status_code`),
KEY `idx_plan_delivery_date` (`plan_delivery_date`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='订单台账表';
---------------------------------------------------------
-- 菜单 SQL
INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
VALUES(2000, '订单台账', 0, 1, 'orderLedger', 'gss/orderLedger/index', 1, 0, 'C', '0', '0', 'gss:orderLedger:list', 'list', 'admin', sysdate(), '', null, '订单台账菜单');
-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();
-- 按钮 SQL
INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
VALUES (2001, '订单台账查询', @parentId, 1, '#', '', 1, 0, 'F', '0', '0', 'gss:orderLedger:query', '#', 'admin', sysdate(), '', null, '');
INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
VALUES (2002, '订单台账新增', @parentId, 2, '#', '', 1, 0, 'F', '0', '0', 'gss:orderLedger:add', '#', 'admin', sysdate(), '', null, '');
INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
VALUES (2003, '订单台账修改', @parentId, 3, '#', '', 1, 0, 'F', '0', '0', 'gss:orderLedger:edit', '#', 'admin', sysdate(), '', null, '');
INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
VALUES (2004, '订单台账删除', @parentId, 4, '#', '', 1, 0, 'F', '0', '0', 'gss:orderLedger:remove', '#', 'admin', sysdate(), '', null, '');
INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
VALUES (2005, '订单台账导出', @parentId, 5, '#', '', 1, 0, 'F', '0', '0', 'gss:orderLedger:export', '#', 'admin', sysdate(), '', null, '');
Loading…
Cancel
Save