change - ERP订单明细

main
yinq 5 months ago
parent e55983d3e8
commit 1320e2e824

@ -0,0 +1,100 @@
package com.os.mes.prod.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.os.common.annotation.Log;
import com.os.common.core.controller.BaseController;
import com.os.common.core.domain.AjaxResult;
import com.os.common.enums.BusinessType;
import com.os.mes.prod.domain.ProdOrderDetail;
import com.os.mes.prod.service.IProdOrderDetailService;
import com.os.common.utils.poi.ExcelUtil;
import com.os.common.core.page.TableDataInfo;
/**
* Controller
*
* @author Yinq
* @date 2024-06-13
*/
@RestController
@RequestMapping("/mes/prod/prodOrderDetail")
public class ProdOrderDetailController extends BaseController {
@Autowired
private IProdOrderDetailService prodOrderDetailService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('mes/prod:prodOrderDetail:list')")
@GetMapping("/list")
public TableDataInfo list(ProdOrderDetail prodOrderDetail) {
startPage();
List<ProdOrderDetail> list = prodOrderDetailService.selectProdOrderDetailList(prodOrderDetail);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('mes/prod:prodOrderDetail:export')")
@Log(title = "订单明细", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ProdOrderDetail prodOrderDetail) {
List<ProdOrderDetail> list = prodOrderDetailService.selectProdOrderDetailList(prodOrderDetail);
ExcelUtil<ProdOrderDetail> util = new ExcelUtil<ProdOrderDetail>(ProdOrderDetail.class);
util.exportExcel(response, list, "订单明细数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('mes/prod:prodOrderDetail:query')")
@GetMapping(value = "/{objId}")
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
return success(prodOrderDetailService.selectProdOrderDetailByObjId(objId));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('mes/prod:prodOrderDetail:add')")
@Log(title = "订单明细", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ProdOrderDetail prodOrderDetail) {
prodOrderDetail.setCreateBy(getUsername());
return toAjax(prodOrderDetailService.insertProdOrderDetail(prodOrderDetail));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('mes/prod:prodOrderDetail:edit')")
@Log(title = "订单明细", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ProdOrderDetail prodOrderDetail) {
prodOrderDetail.setUpdateBy(getUsername());
return toAjax(prodOrderDetailService.updateProdOrderDetail(prodOrderDetail));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('mes/prod:prodOrderDetail:remove')")
@Log(title = "订单明细", businessType = BusinessType.DELETE)
@DeleteMapping("/{objIds}")
public AjaxResult remove(@PathVariable Long[] objIds) {
return toAjax(prodOrderDetailService.deleteProdOrderDetailByObjIds(objIds));
}
}

@ -0,0 +1,61 @@
package com.os.mes.prod.mapper;
import java.util.List;
import com.os.mes.prod.domain.ProdOrderDetail;
/**
* Mapper
*
* @author Yinq
* @date 2024-06-13
*/
public interface ProdOrderDetailMapper {
/**
*
*
* @param objId
* @return
*/
public ProdOrderDetail selectProdOrderDetailByObjId(Long objId);
/**
*
*
* @param prodOrderDetail
* @return
*/
public List<ProdOrderDetail> selectProdOrderDetailList(ProdOrderDetail prodOrderDetail);
/**
*
*
* @param prodOrderDetail
* @return
*/
public int insertProdOrderDetail(ProdOrderDetail prodOrderDetail);
/**
*
*
* @param prodOrderDetail
* @return
*/
public int updateProdOrderDetail(ProdOrderDetail prodOrderDetail);
/**
*
*
* @param objId
* @return
*/
public int deleteProdOrderDetailByObjId(Long objId);
/**
*
*
* @param objIds
* @return
*/
public int deleteProdOrderDetailByObjIds(Long[] objIds);
}

@ -0,0 +1,61 @@
package com.os.mes.prod.service;
import java.util.List;
import com.os.mes.prod.domain.ProdOrderDetail;
/**
* Service
*
* @author Yinq
* @date 2024-06-13
*/
public interface IProdOrderDetailService {
/**
*
*
* @param objId
* @return
*/
public ProdOrderDetail selectProdOrderDetailByObjId(Long objId);
/**
*
*
* @param prodOrderDetail
* @return
*/
public List<ProdOrderDetail> selectProdOrderDetailList(ProdOrderDetail prodOrderDetail);
/**
*
*
* @param prodOrderDetail
* @return
*/
public int insertProdOrderDetail(ProdOrderDetail prodOrderDetail);
/**
*
*
* @param prodOrderDetail
* @return
*/
public int updateProdOrderDetail(ProdOrderDetail prodOrderDetail);
/**
*
*
* @param objIds
* @return
*/
public int deleteProdOrderDetailByObjIds(Long[] objIds);
/**
*
*
* @param objId
* @return
*/
public int deleteProdOrderDetailByObjId(Long objId);
}

@ -0,0 +1,87 @@
package com.os.mes.prod.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.os.mes.prod.mapper.ProdOrderDetailMapper;
import com.os.mes.prod.domain.ProdOrderDetail;
import com.os.mes.prod.service.IProdOrderDetailService;
/**
* Service
*
* @author Yinq
* @date 2024-06-13
*/
@Service
public class ProdOrderDetailServiceImpl implements IProdOrderDetailService {
@Autowired
private ProdOrderDetailMapper prodOrderDetailMapper;
/**
*
*
* @param objId
* @return
*/
@Override
public ProdOrderDetail selectProdOrderDetailByObjId(Long objId) {
return prodOrderDetailMapper.selectProdOrderDetailByObjId(objId);
}
/**
*
*
* @param prodOrderDetail
* @return
*/
@Override
public List<ProdOrderDetail> selectProdOrderDetailList(ProdOrderDetail prodOrderDetail) {
return prodOrderDetailMapper.selectProdOrderDetailList(prodOrderDetail);
}
/**
*
*
* @param prodOrderDetail
* @return
*/
@Override
public int insertProdOrderDetail(ProdOrderDetail prodOrderDetail) {
return prodOrderDetailMapper.insertProdOrderDetail(prodOrderDetail);
}
/**
*
*
* @param prodOrderDetail
* @return
*/
@Override
public int updateProdOrderDetail(ProdOrderDetail prodOrderDetail) {
return prodOrderDetailMapper.updateProdOrderDetail(prodOrderDetail);
}
/**
*
*
* @param objIds
* @return
*/
@Override
public int deleteProdOrderDetailByObjIds(Long[] objIds) {
return prodOrderDetailMapper.deleteProdOrderDetailByObjIds(objIds);
}
/**
*
*
* @param objId
* @return
*/
@Override
public int deleteProdOrderDetailByObjId(Long objId) {
return prodOrderDetailMapper.deleteProdOrderDetailByObjId(objId);
}
}

@ -0,0 +1,457 @@
<?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.os.mes.prod.mapper.ProdOrderDetailMapper">
<resultMap type="ProdOrderDetail" id="ProdOrderDetailResult">
<result property="objId" column="obj_id"/>
<result property="SeqNo" column="SeqNo"/>
<result property="OrderDate" column="OrderDate"/>
<result property="DeliveryDate" column="DeliveryDate"/>
<result property="ProductType" column="ProductType"/>
<result property="ProductStatus" column="ProductStatus"/>
<result property="OrderOwner" column="OrderOwner"/>
<result property="CustomerInfo" column="CustomerInfo"/>
<result property="BeltLengthSpecifications" column="BeltLengthSpecifications"/>
<result property="AreaAndWeight" column="AreaAndWeight"/>
<result property="UsingRawMaterials" column="UsingRawMaterials"/>
<result property="BeltWidth" column="BeltWidth"/>
<result property="BeltClothLayer" column="BeltClothLayer"/>
<result property="BeltRequiredLength" column="BeltRequiredLength"/>
<result property="GluingRequiredThickness" column="GluingRequiredThickness"/>
<result property="LowerGlueRequiredThickness" column="LowerGlueRequiredThickness"/>
<result property="ProductionGluingThickness" column="ProductionGluingThickness"/>
<result property="UpperBufferAdhesiveThickness" column="UpperBufferAdhesiveThickness"/>
<result property="ProductionLowerGlueThickness" column="ProductionLowerGlueThickness"/>
<result property="LowerBufferAdhesiveThickness" column="LowerBufferAdhesiveThickness"/>
<result property="ClothGlueThickness" column="ClothGlueThickness"/>
<result property="SmallClothFabricLayer" column="SmallClothFabricLayer"/>
<result property="SmallClothThickness" column="SmallClothThickness"/>
<result property="IsNeedThicken" column="IsNeedThicken"/>
<result property="EachLayerThickenThickness" column="EachLayerThickenThickness"/>
<result property="ExtraThickeningThickness" column="ExtraThickeningThickness"/>
<result property="TotalProductionThickness" column="TotalProductionThickness"/>
<result property="AdditionalThickness" column="AdditionalThickness"/>
<result property="RecommendedShimThickness" column="RecommendedShimThickness"/>
<result property="SemiFinishedProductWidth" column="SemiFinishedProductWidth"/>
<result property="RollingProductionMeters" column="RollingProductionMeters"/>
<result property="RecommendedPadWidth" column="RecommendedPadWidth"/>
<result property="BigFabricManufacturer" column="BigFabricManufacturer"/>
<result property="FabricSpecifications" column="FabricSpecifications"/>
<result property="EstimatedFabricUsage" column="EstimatedFabricUsage"/>
<result property="ClothWidth" column="ClothWidth"/>
<result property="ClothWeight" column="ClothWeight"/>
<result property="SmallFabricSpecificationsDic" column="SmallFabricSpecificationsDic"/>
<result property="SmallClothWidth" column="SmallClothWidth"/>
<result property="SmallClothUsage" column="SmallClothUsage"/>
<result property="SmallClothWeight" column="SmallClothWeight"/>
<result property="GluingProcess" column="GluingProcess"/>
<result property="UpperLowerGlue" column="UpperLowerGlue"/>
<result property="UpperLowerGlueCoefficient" column="UpperLowerGlueCoefficient"/>
<result property="UpperLowerGlueUsage" column="UpperLowerGlueUsage"/>
<result property="LowerGlue" column="LowerGlue"/>
<result property="LowerGlueCoefficient" column="LowerGlueCoefficient"/>
<result property="LowerGlueUsage" column="LowerGlueUsage"/>
<result property="LargeClothGlue" column="LargeClothGlue"/>
<result property="LargeClothGlueCoefficient" column="LargeClothGlueCoefficient"/>
<result property="LargeClothGlueUsage" column="LargeClothGlueUsage"/>
<result property="BufferGlueUsage" column="BufferGlueUsage"/>
<result property="MiddleGlue" column="MiddleGlue"/>
<result property="MiddleGlueCoefficient" column="MiddleGlueCoefficient"/>
<result property="MiddleGlueUsage" column="MiddleGlueUsage"/>
<result property="SmallBarWidth" column="SmallBarWidth"/>
<result property="SmallBarThickness" column="SmallBarThickness"/>
<result property="SmallBarStandardUsage" column="SmallBarStandardUsage"/>
<result property="FormingArea" column="FormingArea"/>
<result property="RollCoatingArea" column="RollCoatingArea"/>
<result property="RolledFabricArea" column="RolledFabricArea"/>
<result property="SulfurizationArea" column="SulfurizationArea"/>
<result property="LargeClothArea" column="LargeClothArea"/>
<result property="SmallClothArea" column="SmallClothArea"/>
<result property="BeltTotalArea" column="BeltTotalArea"/>
<result property="SkirtArea" column="SkirtArea"/>
<result property="PartitionArea" column="PartitionArea"/>
<result property="EdgeBandingTotalArea" column="EdgeBandingTotalArea"/>
<result property="WireropeBeltTotalArea" column="WireropeBeltTotalArea"/>
<result property="createdBy" column="created_by"/>
<result property="createdTime" column="created_time"/>
<result property="updatedBy" column="updated_by"/>
<result property="updatedTime" column="updated_time"/>
</resultMap>
<sql id="selectProdOrderDetailVo">
select obj_id,
SeqNo,
OrderDate,
DeliveryDate,
ProductType,
ProductStatus,
OrderOwner,
CustomerInfo,
BeltLengthSpecifications,
AreaAndWeight,
UsingRawMaterials,
BeltWidth,
BeltClothLayer,
BeltRequiredLength,
GluingRequiredThickness,
LowerGlueRequiredThickness,
ProductionGluingThickness,
UpperBufferAdhesiveThickness,
ProductionLowerGlueThickness,
LowerBufferAdhesiveThickness,
ClothGlueThickness,
SmallClothFabricLayer,
SmallClothThickness,
IsNeedThicken,
EachLayerThickenThickness,
ExtraThickeningThickness,
TotalProductionThickness,
AdditionalThickness,
RecommendedShimThickness,
SemiFinishedProductWidth,
RollingProductionMeters,
RecommendedPadWidth,
BigFabricManufacturer,
FabricSpecifications,
EstimatedFabricUsage,
ClothWidth,
ClothWeight,
SmallFabricSpecificationsDic,
SmallClothWidth,
SmallClothUsage,
SmallClothWeight,
GluingProcess,
UpperLowerGlue,
UpperLowerGlueCoefficient,
UpperLowerGlueUsage,
LowerGlue,
LowerGlueCoefficient,
LowerGlueUsage,
LargeClothGlue,
LargeClothGlueCoefficient,
LargeClothGlueUsage,
BufferGlueUsage,
MiddleGlue,
MiddleGlueCoefficient,
MiddleGlueUsage,
SmallBarWidth,
SmallBarThickness,
SmallBarStandardUsage,
FormingArea,
RollCoatingArea,
RolledFabricArea,
SulfurizationArea,
LargeClothArea,
SmallClothArea,
BeltTotalArea,
SkirtArea,
PartitionArea,
EdgeBandingTotalArea,
WireropeBeltTotalArea,
created_by,
created_time,
updated_by,
updated_time
from prod_order_detail
</sql>
<select id="selectProdOrderDetailList" parameterType="ProdOrderDetail" resultMap="ProdOrderDetailResult">
<include refid="selectProdOrderDetailVo"/>
<where>
<if test="SeqNo != null and SeqNo != ''">and SeqNo = #{SeqNo}</if>
<if test="params.beginOrderDate != null and params.beginOrderDate != '' and params.endOrderDate != null and params.endOrderDate != ''">
and OrderDate between #{params.beginOrderDate} and #{params.endOrderDate}
</if>
<if test="DeliveryDate != null and DeliveryDate != ''">and DeliveryDate = #{DeliveryDate}</if>
<if test="ProductType != null and ProductType != ''">and ProductType = #{ProductType}</if>
<if test="ProductStatus != null and ProductStatus != ''">and ProductStatus = #{ProductStatus}</if>
<if test="OrderOwner != null and OrderOwner != ''">and OrderOwner = #{OrderOwner}</if>
<if test="CustomerInfo != null and CustomerInfo != ''">and CustomerInfo = #{CustomerInfo}</if>
<if test="BeltLengthSpecifications != null and BeltLengthSpecifications != ''">and BeltLengthSpecifications
= #{BeltLengthSpecifications}
</if>
<if test="AreaAndWeight != null and AreaAndWeight != ''">and AreaAndWeight = #{AreaAndWeight}</if>
<if test="UsingRawMaterials != null and UsingRawMaterials != ''">and UsingRawMaterials =
#{UsingRawMaterials}
</if>
<if test="BeltWidth != null ">and BeltWidth = #{BeltWidth}</if>
<if test="BeltClothLayer != null ">and BeltClothLayer = #{BeltClothLayer}</if>
<if test="BeltRequiredLength != null ">and BeltRequiredLength = #{BeltRequiredLength}</if>
<if test="GluingRequiredThickness != null ">and GluingRequiredThickness = #{GluingRequiredThickness}</if>
<if test="LowerGlueRequiredThickness != null ">and LowerGlueRequiredThickness =
#{LowerGlueRequiredThickness}
</if>
<if test="LargeClothArea != null ">and LargeClothArea = #{LargeClothArea}</if>
<if test="SmallClothArea != null ">and SmallClothArea = #{SmallClothArea}</if>
<if test="BeltTotalArea != null ">and BeltTotalArea = #{BeltTotalArea}</if>
<if test="SkirtArea != null ">and SkirtArea = #{SkirtArea}</if>
<if test="PartitionArea != null ">and PartitionArea = #{PartitionArea}</if>
<if test="EdgeBandingTotalArea != null ">and EdgeBandingTotalArea = #{EdgeBandingTotalArea}</if>
<if test="WireropeBeltTotalArea != null ">and WireropeBeltTotalArea = #{WireropeBeltTotalArea}</if>
<if test="createdBy != null and createdBy != ''">and created_by = #{createdBy}</if>
<if test="createdTime != null ">and created_time = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''">and updated_by = #{updatedBy}</if>
<if test="updatedTime != null ">and updated_time = #{updatedTime}</if>
</where>
</select>
<select id="selectProdOrderDetailByObjId" parameterType="Long" resultMap="ProdOrderDetailResult">
<include refid="selectProdOrderDetailVo"/>
where obj_id = #{objId}
</select>
<insert id="insertProdOrderDetail" parameterType="ProdOrderDetail" useGeneratedKeys="true" keyProperty="objId">
insert into prod_order_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="SeqNo != null and SeqNo != ''">SeqNo,</if>
<if test="OrderDate != null">OrderDate,</if>
<if test="DeliveryDate != null">DeliveryDate,</if>
<if test="ProductType != null">ProductType,</if>
<if test="ProductStatus != null">ProductStatus,</if>
<if test="OrderOwner != null">OrderOwner,</if>
<if test="CustomerInfo != null">CustomerInfo,</if>
<if test="BeltLengthSpecifications != null">BeltLengthSpecifications,</if>
<if test="AreaAndWeight != null">AreaAndWeight,</if>
<if test="UsingRawMaterials != null">UsingRawMaterials,</if>
<if test="BeltWidth != null">BeltWidth,</if>
<if test="BeltClothLayer != null">BeltClothLayer,</if>
<if test="BeltRequiredLength != null">BeltRequiredLength,</if>
<if test="GluingRequiredThickness != null">GluingRequiredThickness,</if>
<if test="LowerGlueRequiredThickness != null">LowerGlueRequiredThickness,</if>
<if test="ProductionGluingThickness != null">ProductionGluingThickness,</if>
<if test="UpperBufferAdhesiveThickness != null">UpperBufferAdhesiveThickness,</if>
<if test="ProductionLowerGlueThickness != null">ProductionLowerGlueThickness,</if>
<if test="LowerBufferAdhesiveThickness != null">LowerBufferAdhesiveThickness,</if>
<if test="ClothGlueThickness != null">ClothGlueThickness,</if>
<if test="SmallClothFabricLayer != null">SmallClothFabricLayer,</if>
<if test="SmallClothThickness != null">SmallClothThickness,</if>
<if test="IsNeedThicken != null">IsNeedThicken,</if>
<if test="EachLayerThickenThickness != null">EachLayerThickenThickness,</if>
<if test="ExtraThickeningThickness != null">ExtraThickeningThickness,</if>
<if test="TotalProductionThickness != null">TotalProductionThickness,</if>
<if test="AdditionalThickness != null">AdditionalThickness,</if>
<if test="RecommendedShimThickness != null">RecommendedShimThickness,</if>
<if test="SemiFinishedProductWidth != null">SemiFinishedProductWidth,</if>
<if test="RollingProductionMeters != null">RollingProductionMeters,</if>
<if test="RecommendedPadWidth != null">RecommendedPadWidth,</if>
<if test="BigFabricManufacturer != null">BigFabricManufacturer,</if>
<if test="FabricSpecifications != null">FabricSpecifications,</if>
<if test="EstimatedFabricUsage != null">EstimatedFabricUsage,</if>
<if test="ClothWidth != null">ClothWidth,</if>
<if test="ClothWeight != null">ClothWeight,</if>
<if test="SmallFabricSpecificationsDic != null">SmallFabricSpecificationsDic,</if>
<if test="SmallClothWidth != null">SmallClothWidth,</if>
<if test="SmallClothUsage != null">SmallClothUsage,</if>
<if test="SmallClothWeight != null">SmallClothWeight,</if>
<if test="GluingProcess != null">GluingProcess,</if>
<if test="UpperLowerGlue != null">UpperLowerGlue,</if>
<if test="UpperLowerGlueCoefficient != null">UpperLowerGlueCoefficient,</if>
<if test="UpperLowerGlueUsage != null">UpperLowerGlueUsage,</if>
<if test="LowerGlue != null">LowerGlue,</if>
<if test="LowerGlueCoefficient != null">LowerGlueCoefficient,</if>
<if test="LowerGlueUsage != null">LowerGlueUsage,</if>
<if test="LargeClothGlue != null">LargeClothGlue,</if>
<if test="LargeClothGlueCoefficient != null">LargeClothGlueCoefficient,</if>
<if test="LargeClothGlueUsage != null">LargeClothGlueUsage,</if>
<if test="BufferGlueUsage != null">BufferGlueUsage,</if>
<if test="MiddleGlue != null">MiddleGlue,</if>
<if test="MiddleGlueCoefficient != null">MiddleGlueCoefficient,</if>
<if test="MiddleGlueUsage != null">MiddleGlueUsage,</if>
<if test="SmallBarWidth != null">SmallBarWidth,</if>
<if test="SmallBarThickness != null">SmallBarThickness,</if>
<if test="SmallBarStandardUsage != null">SmallBarStandardUsage,</if>
<if test="FormingArea != null">FormingArea,</if>
<if test="RollCoatingArea != null">RollCoatingArea,</if>
<if test="RolledFabricArea != null">RolledFabricArea,</if>
<if test="SulfurizationArea != null">SulfurizationArea,</if>
<if test="LargeClothArea != null">LargeClothArea,</if>
<if test="SmallClothArea != null">SmallClothArea,</if>
<if test="BeltTotalArea != null">BeltTotalArea,</if>
<if test="SkirtArea != null">SkirtArea,</if>
<if test="PartitionArea != null">PartitionArea,</if>
<if test="EdgeBandingTotalArea != null">EdgeBandingTotalArea,</if>
<if test="WireropeBeltTotalArea != null">WireropeBeltTotalArea,</if>
<if test="createdBy != null">created_by,</if>
<if test="createdTime != null">created_time,</if>
<if test="updatedBy != null">updated_by,</if>
<if test="updatedTime != null">updated_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="SeqNo != null and SeqNo != ''">#{SeqNo},</if>
<if test="OrderDate != null">#{OrderDate},</if>
<if test="DeliveryDate != null">#{DeliveryDate},</if>
<if test="ProductType != null">#{ProductType},</if>
<if test="ProductStatus != null">#{ProductStatus},</if>
<if test="OrderOwner != null">#{OrderOwner},</if>
<if test="CustomerInfo != null">#{CustomerInfo},</if>
<if test="BeltLengthSpecifications != null">#{BeltLengthSpecifications},</if>
<if test="AreaAndWeight != null">#{AreaAndWeight},</if>
<if test="UsingRawMaterials != null">#{UsingRawMaterials},</if>
<if test="BeltWidth != null">#{BeltWidth},</if>
<if test="BeltClothLayer != null">#{BeltClothLayer},</if>
<if test="BeltRequiredLength != null">#{BeltRequiredLength},</if>
<if test="GluingRequiredThickness != null">#{GluingRequiredThickness},</if>
<if test="LowerGlueRequiredThickness != null">#{LowerGlueRequiredThickness},</if>
<if test="ProductionGluingThickness != null">#{ProductionGluingThickness},</if>
<if test="UpperBufferAdhesiveThickness != null">#{UpperBufferAdhesiveThickness},</if>
<if test="ProductionLowerGlueThickness != null">#{ProductionLowerGlueThickness},</if>
<if test="LowerBufferAdhesiveThickness != null">#{LowerBufferAdhesiveThickness},</if>
<if test="ClothGlueThickness != null">#{ClothGlueThickness},</if>
<if test="SmallClothFabricLayer != null">#{SmallClothFabricLayer},</if>
<if test="SmallClothThickness != null">#{SmallClothThickness},</if>
<if test="IsNeedThicken != null">#{IsNeedThicken},</if>
<if test="EachLayerThickenThickness != null">#{EachLayerThickenThickness},</if>
<if test="ExtraThickeningThickness != null">#{ExtraThickeningThickness},</if>
<if test="TotalProductionThickness != null">#{TotalProductionThickness},</if>
<if test="AdditionalThickness != null">#{AdditionalThickness},</if>
<if test="RecommendedShimThickness != null">#{RecommendedShimThickness},</if>
<if test="SemiFinishedProductWidth != null">#{SemiFinishedProductWidth},</if>
<if test="RollingProductionMeters != null">#{RollingProductionMeters},</if>
<if test="RecommendedPadWidth != null">#{RecommendedPadWidth},</if>
<if test="BigFabricManufacturer != null">#{BigFabricManufacturer},</if>
<if test="FabricSpecifications != null">#{FabricSpecifications},</if>
<if test="EstimatedFabricUsage != null">#{EstimatedFabricUsage},</if>
<if test="ClothWidth != null">#{ClothWidth},</if>
<if test="ClothWeight != null">#{ClothWeight},</if>
<if test="SmallFabricSpecificationsDic != null">#{SmallFabricSpecificationsDic},</if>
<if test="SmallClothWidth != null">#{SmallClothWidth},</if>
<if test="SmallClothUsage != null">#{SmallClothUsage},</if>
<if test="SmallClothWeight != null">#{SmallClothWeight},</if>
<if test="GluingProcess != null">#{GluingProcess},</if>
<if test="UpperLowerGlue != null">#{UpperLowerGlue},</if>
<if test="UpperLowerGlueCoefficient != null">#{UpperLowerGlueCoefficient},</if>
<if test="UpperLowerGlueUsage != null">#{UpperLowerGlueUsage},</if>
<if test="LowerGlue != null">#{LowerGlue},</if>
<if test="LowerGlueCoefficient != null">#{LowerGlueCoefficient},</if>
<if test="LowerGlueUsage != null">#{LowerGlueUsage},</if>
<if test="LargeClothGlue != null">#{LargeClothGlue},</if>
<if test="LargeClothGlueCoefficient != null">#{LargeClothGlueCoefficient},</if>
<if test="LargeClothGlueUsage != null">#{LargeClothGlueUsage},</if>
<if test="BufferGlueUsage != null">#{BufferGlueUsage},</if>
<if test="MiddleGlue != null">#{MiddleGlue},</if>
<if test="MiddleGlueCoefficient != null">#{MiddleGlueCoefficient},</if>
<if test="MiddleGlueUsage != null">#{MiddleGlueUsage},</if>
<if test="SmallBarWidth != null">#{SmallBarWidth},</if>
<if test="SmallBarThickness != null">#{SmallBarThickness},</if>
<if test="SmallBarStandardUsage != null">#{SmallBarStandardUsage},</if>
<if test="FormingArea != null">#{FormingArea},</if>
<if test="RollCoatingArea != null">#{RollCoatingArea},</if>
<if test="RolledFabricArea != null">#{RolledFabricArea},</if>
<if test="SulfurizationArea != null">#{SulfurizationArea},</if>
<if test="LargeClothArea != null">#{LargeClothArea},</if>
<if test="SmallClothArea != null">#{SmallClothArea},</if>
<if test="BeltTotalArea != null">#{BeltTotalArea},</if>
<if test="SkirtArea != null">#{SkirtArea},</if>
<if test="PartitionArea != null">#{PartitionArea},</if>
<if test="EdgeBandingTotalArea != null">#{EdgeBandingTotalArea},</if>
<if test="WireropeBeltTotalArea != null">#{WireropeBeltTotalArea},</if>
<if test="createdBy != null">#{createdBy},</if>
<if test="createdTime != null">#{createdTime},</if>
<if test="updatedBy != null">#{updatedBy},</if>
<if test="updatedTime != null">#{updatedTime},</if>
</trim>
</insert>
<update id="updateProdOrderDetail" parameterType="ProdOrderDetail">
update prod_order_detail
<trim prefix="SET" suffixOverrides=",">
<if test="SeqNo != null and SeqNo != ''">SeqNo = #{SeqNo},</if>
<if test="OrderDate != null">OrderDate = #{OrderDate},</if>
<if test="DeliveryDate != null">DeliveryDate = #{DeliveryDate},</if>
<if test="ProductType != null">ProductType = #{ProductType},</if>
<if test="ProductStatus != null">ProductStatus = #{ProductStatus},</if>
<if test="OrderOwner != null">OrderOwner = #{OrderOwner},</if>
<if test="CustomerInfo != null">CustomerInfo = #{CustomerInfo},</if>
<if test="BeltLengthSpecifications != null">BeltLengthSpecifications = #{BeltLengthSpecifications},</if>
<if test="AreaAndWeight != null">AreaAndWeight = #{AreaAndWeight},</if>
<if test="UsingRawMaterials != null">UsingRawMaterials = #{UsingRawMaterials},</if>
<if test="BeltWidth != null">BeltWidth = #{BeltWidth},</if>
<if test="BeltClothLayer != null">BeltClothLayer = #{BeltClothLayer},</if>
<if test="BeltRequiredLength != null">BeltRequiredLength = #{BeltRequiredLength},</if>
<if test="GluingRequiredThickness != null">GluingRequiredThickness = #{GluingRequiredThickness},</if>
<if test="LowerGlueRequiredThickness != null">LowerGlueRequiredThickness = #{LowerGlueRequiredThickness},
</if>
<if test="ProductionGluingThickness != null">ProductionGluingThickness = #{ProductionGluingThickness},</if>
<if test="UpperBufferAdhesiveThickness != null">UpperBufferAdhesiveThickness =
#{UpperBufferAdhesiveThickness},
</if>
<if test="ProductionLowerGlueThickness != null">ProductionLowerGlueThickness =
#{ProductionLowerGlueThickness},
</if>
<if test="LowerBufferAdhesiveThickness != null">LowerBufferAdhesiveThickness =
#{LowerBufferAdhesiveThickness},
</if>
<if test="ClothGlueThickness != null">ClothGlueThickness = #{ClothGlueThickness},</if>
<if test="SmallClothFabricLayer != null">SmallClothFabricLayer = #{SmallClothFabricLayer},</if>
<if test="SmallClothThickness != null">SmallClothThickness = #{SmallClothThickness},</if>
<if test="IsNeedThicken != null">IsNeedThicken = #{IsNeedThicken},</if>
<if test="EachLayerThickenThickness != null">EachLayerThickenThickness = #{EachLayerThickenThickness},</if>
<if test="ExtraThickeningThickness != null">ExtraThickeningThickness = #{ExtraThickeningThickness},</if>
<if test="TotalProductionThickness != null">TotalProductionThickness = #{TotalProductionThickness},</if>
<if test="AdditionalThickness != null">AdditionalThickness = #{AdditionalThickness},</if>
<if test="RecommendedShimThickness != null">RecommendedShimThickness = #{RecommendedShimThickness},</if>
<if test="SemiFinishedProductWidth != null">SemiFinishedProductWidth = #{SemiFinishedProductWidth},</if>
<if test="RollingProductionMeters != null">RollingProductionMeters = #{RollingProductionMeters},</if>
<if test="RecommendedPadWidth != null">RecommendedPadWidth = #{RecommendedPadWidth},</if>
<if test="BigFabricManufacturer != null">BigFabricManufacturer = #{BigFabricManufacturer},</if>
<if test="FabricSpecifications != null">FabricSpecifications = #{FabricSpecifications},</if>
<if test="EstimatedFabricUsage != null">EstimatedFabricUsage = #{EstimatedFabricUsage},</if>
<if test="ClothWidth != null">ClothWidth = #{ClothWidth},</if>
<if test="ClothWeight != null">ClothWeight = #{ClothWeight},</if>
<if test="SmallFabricSpecificationsDic != null">SmallFabricSpecificationsDic =
#{SmallFabricSpecificationsDic},
</if>
<if test="SmallClothWidth != null">SmallClothWidth = #{SmallClothWidth},</if>
<if test="SmallClothUsage != null">SmallClothUsage = #{SmallClothUsage},</if>
<if test="SmallClothWeight != null">SmallClothWeight = #{SmallClothWeight},</if>
<if test="GluingProcess != null">GluingProcess = #{GluingProcess},</if>
<if test="UpperLowerGlue != null">UpperLowerGlue = #{UpperLowerGlue},</if>
<if test="UpperLowerGlueCoefficient != null">UpperLowerGlueCoefficient = #{UpperLowerGlueCoefficient},</if>
<if test="UpperLowerGlueUsage != null">UpperLowerGlueUsage = #{UpperLowerGlueUsage},</if>
<if test="LowerGlue != null">LowerGlue = #{LowerGlue},</if>
<if test="LowerGlueCoefficient != null">LowerGlueCoefficient = #{LowerGlueCoefficient},</if>
<if test="LowerGlueUsage != null">LowerGlueUsage = #{LowerGlueUsage},</if>
<if test="LargeClothGlue != null">LargeClothGlue = #{LargeClothGlue},</if>
<if test="LargeClothGlueCoefficient != null">LargeClothGlueCoefficient = #{LargeClothGlueCoefficient},</if>
<if test="LargeClothGlueUsage != null">LargeClothGlueUsage = #{LargeClothGlueUsage},</if>
<if test="BufferGlueUsage != null">BufferGlueUsage = #{BufferGlueUsage},</if>
<if test="MiddleGlue != null">MiddleGlue = #{MiddleGlue},</if>
<if test="MiddleGlueCoefficient != null">MiddleGlueCoefficient = #{MiddleGlueCoefficient},</if>
<if test="MiddleGlueUsage != null">MiddleGlueUsage = #{MiddleGlueUsage},</if>
<if test="SmallBarWidth != null">SmallBarWidth = #{SmallBarWidth},</if>
<if test="SmallBarThickness != null">SmallBarThickness = #{SmallBarThickness},</if>
<if test="SmallBarStandardUsage != null">SmallBarStandardUsage = #{SmallBarStandardUsage},</if>
<if test="FormingArea != null">FormingArea = #{FormingArea},</if>
<if test="RollCoatingArea != null">RollCoatingArea = #{RollCoatingArea},</if>
<if test="RolledFabricArea != null">RolledFabricArea = #{RolledFabricArea},</if>
<if test="SulfurizationArea != null">SulfurizationArea = #{SulfurizationArea},</if>
<if test="LargeClothArea != null">LargeClothArea = #{LargeClothArea},</if>
<if test="SmallClothArea != null">SmallClothArea = #{SmallClothArea},</if>
<if test="BeltTotalArea != null">BeltTotalArea = #{BeltTotalArea},</if>
<if test="SkirtArea != null">SkirtArea = #{SkirtArea},</if>
<if test="PartitionArea != null">PartitionArea = #{PartitionArea},</if>
<if test="EdgeBandingTotalArea != null">EdgeBandingTotalArea = #{EdgeBandingTotalArea},</if>
<if test="WireropeBeltTotalArea != null">WireropeBeltTotalArea = #{WireropeBeltTotalArea},</if>
<if test="createdBy != null">created_by = #{createdBy},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
</trim>
where obj_id = #{objId}
</update>
<delete id="deleteProdOrderDetailByObjId" parameterType="Long">
delete
from prod_order_detail
where obj_id = #{objId}
</delete>
<delete id="deleteProdOrderDetailByObjIds" parameterType="String">
delete from prod_order_detail where obj_id in
<foreach item="objId" collection="array" open="(" separator="," close=")">
#{objId}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save