change - add同步生产计划接口
parent
2156ec28bb
commit
a92ba67876
@ -0,0 +1,27 @@
|
|||||||
|
package com.os.mes.api.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.os.common.annotation.Excel;
|
||||||
|
import com.os.common.core.domain.BaseEntity;
|
||||||
|
import com.os.mes.prod.domain.ProdPlanErpInfo;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产计划信息对象 prod_plan_erp_info
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2024-08-22
|
||||||
|
*/
|
||||||
|
public class ERPPlanListVo extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
List<ProdPlanErpInfo> ProdPlanErpInfo;
|
||||||
|
|
||||||
|
}
|
||||||
@ -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.ProdPlanErpInfo;
|
||||||
|
import com.os.mes.prod.service.IProdPlanErpInfoService;
|
||||||
|
import com.os.common.utils.poi.ExcelUtil;
|
||||||
|
import com.os.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产计划信息Controller
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2024-08-22
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/mes/prod/prodPlanErpInfo")
|
||||||
|
public class ProdPlanErpInfoController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private IProdPlanErpInfoService prodPlanErpInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询生产计划信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes/prod:prodPlanErpInfo:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ProdPlanErpInfo prodPlanErpInfo) {
|
||||||
|
startPage();
|
||||||
|
List<ProdPlanErpInfo> list = prodPlanErpInfoService.selectProdPlanErpInfoList(prodPlanErpInfo);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出生产计划信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes/prod:prodPlanErpInfo:export')")
|
||||||
|
@Log(title = "生产计划信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, ProdPlanErpInfo prodPlanErpInfo) {
|
||||||
|
List<ProdPlanErpInfo> list = prodPlanErpInfoService.selectProdPlanErpInfoList(prodPlanErpInfo);
|
||||||
|
ExcelUtil<ProdPlanErpInfo> util = new ExcelUtil<ProdPlanErpInfo>(ProdPlanErpInfo.class);
|
||||||
|
util.exportExcel(response, list, "生产计划信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取生产计划信息详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes/prod:prodPlanErpInfo:query')")
|
||||||
|
@GetMapping(value = "/{objId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
|
||||||
|
return success(prodPlanErpInfoService.selectProdPlanErpInfoByObjId(objId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增生产计划信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes/prod:prodPlanErpInfo:add')")
|
||||||
|
@Log(title = "生产计划信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ProdPlanErpInfo prodPlanErpInfo) {
|
||||||
|
prodPlanErpInfo.setCreateBy(getUsername());
|
||||||
|
return toAjax(prodPlanErpInfoService.insertProdPlanErpInfo(prodPlanErpInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改生产计划信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes/prod:prodPlanErpInfo:edit')")
|
||||||
|
@Log(title = "生产计划信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ProdPlanErpInfo prodPlanErpInfo) {
|
||||||
|
prodPlanErpInfo.setUpdateBy(getUsername());
|
||||||
|
return toAjax(prodPlanErpInfoService.updateProdPlanErpInfo(prodPlanErpInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除生产计划信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('mes/prod:prodPlanErpInfo:remove')")
|
||||||
|
@Log(title = "生产计划信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{objIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||||
|
return toAjax(prodPlanErpInfoService.deleteProdPlanErpInfoByObjIds(objIds));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.os.mes.prod.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.os.mes.prod.domain.ProdPlanErpInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产计划信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2024-08-22
|
||||||
|
*/
|
||||||
|
public interface ProdPlanErpInfoMapper {
|
||||||
|
/**
|
||||||
|
* 查询生产计划信息
|
||||||
|
*
|
||||||
|
* @param objId 生产计划信息主键
|
||||||
|
* @return 生产计划信息
|
||||||
|
*/
|
||||||
|
public ProdPlanErpInfo selectProdPlanErpInfoByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询生产计划信息列表
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 生产计划信息集合
|
||||||
|
*/
|
||||||
|
public List<ProdPlanErpInfo> selectProdPlanErpInfoList(ProdPlanErpInfo prodPlanErpInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增生产计划信息
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProdPlanErpInfo(ProdPlanErpInfo prodPlanErpInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改生产计划信息
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProdPlanErpInfo(ProdPlanErpInfo prodPlanErpInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除生产计划信息
|
||||||
|
*
|
||||||
|
* @param objId 生产计划信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProdPlanErpInfoByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除生产计划信息
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProdPlanErpInfoByObjIds(Long[] objIds);
|
||||||
|
}
|
||||||
@ -0,0 +1,70 @@
|
|||||||
|
package com.os.mes.prod.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.os.mes.prod.domain.ProdPlanErpInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产计划信息Service接口
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2024-08-22
|
||||||
|
*/
|
||||||
|
public interface IProdPlanErpInfoService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询生产计划信息
|
||||||
|
*
|
||||||
|
* @param objId 生产计划信息主键
|
||||||
|
* @return 生产计划信息
|
||||||
|
*/
|
||||||
|
public ProdPlanErpInfo selectProdPlanErpInfoByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询生产计划信息列表
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 生产计划信息集合
|
||||||
|
*/
|
||||||
|
public List<ProdPlanErpInfo> selectProdPlanErpInfoList(ProdPlanErpInfo prodPlanErpInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增生产计划信息
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProdPlanErpInfo(ProdPlanErpInfo prodPlanErpInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改生产计划信息
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProdPlanErpInfo(ProdPlanErpInfo prodPlanErpInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除生产计划信息
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的生产计划信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProdPlanErpInfoByObjIds(Long[] objIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除生产计划信息信息
|
||||||
|
*
|
||||||
|
* @param objId 生产计划信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProdPlanErpInfoByObjId(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增生产计划信息List
|
||||||
|
*
|
||||||
|
* @param dataList 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
void insertOrUpdateProdPlanErpInfoList(List<ProdPlanErpInfo> dataList);
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,141 @@
|
|||||||
|
package com.os.mes.prod.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.os.common.utils.DateUtils;
|
||||||
|
import com.os.mes.prod.domain.ProdPlanInfo;
|
||||||
|
import com.os.mes.prod.service.IProdPlanInfoService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.os.mes.prod.mapper.ProdPlanErpInfoMapper;
|
||||||
|
import com.os.mes.prod.domain.ProdPlanErpInfo;
|
||||||
|
import com.os.mes.prod.service.IProdPlanErpInfoService;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产计划信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author Yinq
|
||||||
|
* @date 2024-08-22
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ProdPlanErpInfoServiceImpl implements IProdPlanErpInfoService {
|
||||||
|
@Autowired
|
||||||
|
private ProdPlanErpInfoMapper prodPlanErpInfoMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IProdPlanInfoService prodPlanInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询生产计划信息
|
||||||
|
*
|
||||||
|
* @param objId 生产计划信息主键
|
||||||
|
* @return 生产计划信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ProdPlanErpInfo selectProdPlanErpInfoByObjId(Long objId) {
|
||||||
|
return prodPlanErpInfoMapper.selectProdPlanErpInfoByObjId(objId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询生产计划信息列表
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 生产计划信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ProdPlanErpInfo> selectProdPlanErpInfoList(ProdPlanErpInfo prodPlanErpInfo) {
|
||||||
|
return prodPlanErpInfoMapper.selectProdPlanErpInfoList(prodPlanErpInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增生产计划信息
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertProdPlanErpInfo(ProdPlanErpInfo prodPlanErpInfo) {
|
||||||
|
prodPlanErpInfo.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return prodPlanErpInfoMapper.insertProdPlanErpInfo(prodPlanErpInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改生产计划信息
|
||||||
|
*
|
||||||
|
* @param prodPlanErpInfo 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateProdPlanErpInfo(ProdPlanErpInfo prodPlanErpInfo) {
|
||||||
|
prodPlanErpInfo.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return prodPlanErpInfoMapper.updateProdPlanErpInfo(prodPlanErpInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除生产计划信息
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的生产计划信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProdPlanErpInfoByObjIds(Long[] objIds) {
|
||||||
|
return prodPlanErpInfoMapper.deleteProdPlanErpInfoByObjIds(objIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除生产计划信息信息
|
||||||
|
*
|
||||||
|
* @param objId 生产计划信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProdPlanErpInfoByObjId(Long objId) {
|
||||||
|
return prodPlanErpInfoMapper.deleteProdPlanErpInfoByObjId(objId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增生产计划信息List
|
||||||
|
*
|
||||||
|
* @param dataList 生产计划信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void insertOrUpdateProdPlanErpInfoList(List<ProdPlanErpInfo> dataList) {
|
||||||
|
for (ProdPlanErpInfo planErpInfo : dataList) {
|
||||||
|
String seqNo = planErpInfo.getSeqNo();
|
||||||
|
ProdPlanErpInfo selectErpInfo = new ProdPlanErpInfo();
|
||||||
|
selectErpInfo.setSeqNo(seqNo);
|
||||||
|
List<ProdPlanErpInfo> infoList = prodPlanErpInfoMapper.selectProdPlanErpInfoList(selectErpInfo);
|
||||||
|
if (infoList.size() > 0){
|
||||||
|
ProdPlanInfo prodPlanInfo = new ProdPlanInfo();
|
||||||
|
prodPlanInfo.setPlanCode(seqNo);
|
||||||
|
List<ProdPlanInfo> planInfoList = prodPlanInfoService.selectProdPlanInfoList(prodPlanInfo);
|
||||||
|
ProdPlanInfo planInfo = planInfoList.get(0);
|
||||||
|
planInfo.setPlanCode(seqNo);
|
||||||
|
planInfo.setOrderCode(planErpInfo.getTaskCode());
|
||||||
|
planInfo.setPlanAmount(planErpInfo.getCustomerRequestConveyorLength());
|
||||||
|
planInfo.setPlanBeginTime(planErpInfo.getPlanStartTime());
|
||||||
|
planInfo.setPlanEndTime(planErpInfo.getPlanEndTime());
|
||||||
|
prodPlanInfoService.updateProdPlanInfo(planInfo);
|
||||||
|
|
||||||
|
ProdPlanErpInfo prodPlanErpInfo = infoList.get(0);
|
||||||
|
planErpInfo.setObjId(prodPlanErpInfo.getObjId());
|
||||||
|
this.updateProdPlanErpInfo(planErpInfo);
|
||||||
|
} else {
|
||||||
|
ProdPlanInfo planInfo = new ProdPlanInfo();
|
||||||
|
planInfo.setPlanCode(planErpInfo.getSeqNo());
|
||||||
|
planInfo.setOrderCode(planErpInfo.getTaskCode());
|
||||||
|
planInfo.setPlanAmount(planErpInfo.getCustomerRequestConveyorLength());
|
||||||
|
// planInfo.setDeviceCode(planErpInfo.getResourceName());
|
||||||
|
planInfo.setPlanBeginTime(planErpInfo.getPlanStartTime());
|
||||||
|
planInfo.setPlanEndTime(planErpInfo.getPlanEndTime());
|
||||||
|
|
||||||
|
prodPlanInfoService.insertProdPlanInfo(planInfo);
|
||||||
|
this.insertProdPlanErpInfo(planErpInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,501 @@
|
|||||||
|
<?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.ProdPlanErpInfoMapper">
|
||||||
|
|
||||||
|
<resultMap type="ProdPlanErpInfo" id="ProdPlanErpInfoResult">
|
||||||
|
<result property="objId" column="obj_id"/>
|
||||||
|
<result property="hardware" column="hardware"/>
|
||||||
|
<result property="software" column="software"/>
|
||||||
|
<result property="stageText" column="stageText"/>
|
||||||
|
<result property="seqNo" column="seqNo"/>
|
||||||
|
<result property="planStartTime" column="planStartTime"/>
|
||||||
|
<result property="planEndTime" column="planEndTime"/>
|
||||||
|
<result property="associationResource" column="associationResource"/>
|
||||||
|
<result property="workingEfficiency" column="workingEfficiency"/>
|
||||||
|
<result property="equipmentNo" column="equipmentNo"/>
|
||||||
|
<result property="preparationDuration" column="preparationDuration"/>
|
||||||
|
<result property="windUpDuration" column="windUpDuration"/>
|
||||||
|
<result property="clothMinimumSpeed" column="clothMinimumSpeed"/>
|
||||||
|
<result property="clothMaximumSpeed" column="clothMaximumSpeed"/>
|
||||||
|
<result property="formingMinimumSpeed" column="formingMinimumSpeed"/>
|
||||||
|
<result property="formingMaximumSpeed" column="formingMaximumSpeed"/>
|
||||||
|
<result property="glueMinimumSpeed" column="glueMinimumSpeed"/>
|
||||||
|
<result property="glueMaximumSpeed" column="glueMaximumSpeed"/>
|
||||||
|
<result property="sulfurizationLength" column="sulfurizationLength"/>
|
||||||
|
<result property="vulcanizingMachineType" column="vulcanizingMachineType"/>
|
||||||
|
<result property="vulcanizedBoardNumber" column="vulcanizedBoardNumber"/>
|
||||||
|
<result property="resourceName" column="resourceName"/>
|
||||||
|
<result property="processStage" column="processStage"/>
|
||||||
|
<result property="preProcess" column="preProcess"/>
|
||||||
|
<result property="releaseOrder" column="releaseOrder"/>
|
||||||
|
<result property="taskCode" column="taskCode"/>
|
||||||
|
<result property="conveyorLengthSpecification" column="conveyorLengthSpecification"/>
|
||||||
|
<result property="upGlueThickness" column="upGlueThickness"/>
|
||||||
|
<result property="upBufferGlueThickness" column="upBufferGlueThickness"/>
|
||||||
|
<result property="belowGlueThickness" column="belowGlueThickness"/>
|
||||||
|
<result property="belowBufferGlueThickness" column="belowBufferGlueThickness"/>
|
||||||
|
<result property="beltWidth" column="beltWidth"/>
|
||||||
|
<result property="customerRequestConveyorLength" column="customerRequestConveyorLength"/>
|
||||||
|
<result property="rollingProductionMeters" column="rollingProductionMeters"/>
|
||||||
|
<result property="vulcanizationMeters" column="vulcanizationMeters"/>
|
||||||
|
<result property="recommendVulcanizationTime" column="recommendVulcanizationTime"/>
|
||||||
|
<result property="largeClothMeters" column="largeClothMeters"/>
|
||||||
|
<result property="smallClothMeters" column="smallClothMeters"/>
|
||||||
|
<result property="encapsulationMeters" column="encapsulationMeters"/>
|
||||||
|
<result property="workSpeed" column="workSpeed"/>
|
||||||
|
<result property="workingHours" column="workingHours"/>
|
||||||
|
<result property="distributionArea" column="distributionArea"/>
|
||||||
|
<result property="encapsulationArea" column="encapsulationArea"/>
|
||||||
|
<result property="vulcanizationArea" column="vulcanizationArea"/>
|
||||||
|
<result property="conveyorTotalArea" column="conveyorTotalArea"/>
|
||||||
|
<result property="glueProcess" column="glueProcess"/>
|
||||||
|
<result property="upGlue" column="upGlue"/>
|
||||||
|
<result property="upGlueCoefficient" column="upGlueCoefficient"/>
|
||||||
|
<result property="upGlueDosage" column="upGlueDosage"/>
|
||||||
|
<result property="belowGlue" column="belowGlue"/>
|
||||||
|
<result property="belowGlueCoefficient" column="belowGlueCoefficient"/>
|
||||||
|
<result property="belowGlueDosage" column="belowGlueDosage"/>
|
||||||
|
<result property="bufferGlue" column="bufferGlue"/>
|
||||||
|
<result property="bufferGlueCoefficient" column="bufferGlueCoefficient"/>
|
||||||
|
<result property="bufferGlueDosage" column="bufferGlueDosage"/>
|
||||||
|
<result property="largeClothSpecifications" column="largeClothSpecifications"/>
|
||||||
|
<result property="largeClothFrictioningCoefficient" column="largeClothFrictioningCoefficient"/>
|
||||||
|
<result property="largeClothDosage" column="largeClothDosage"/>
|
||||||
|
<result property="middleGlue" column="middleGlue"/>
|
||||||
|
<result property="middleGlueCoefficient" column="middleGlueCoefficient"/>
|
||||||
|
<result property="middleGlueDosage" column="middleGlueDosage"/>
|
||||||
|
<result property="deviceUsageRestrictions" column="deviceUsageRestrictions"/>
|
||||||
|
<result property="workshopSection" column="workshopSection"/>
|
||||||
|
<result property="classes" column="classes"/>
|
||||||
|
<result property="taskForce" column="taskForce"/>
|
||||||
|
<result property="teamName" column="teamName"/>
|
||||||
|
<result property="groupLeader" column="groupLeader"/>
|
||||||
|
<result property="createBy" column="create_by"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="updateBy" column="update_by"/>
|
||||||
|
<result property="updateTime" column="update_time"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectProdPlanErpInfoVo">
|
||||||
|
select obj_id,
|
||||||
|
hardware,
|
||||||
|
software,
|
||||||
|
stageText,
|
||||||
|
seqNo,
|
||||||
|
planStartTime,
|
||||||
|
planEndTime,
|
||||||
|
associationResource,
|
||||||
|
workingEfficiency,
|
||||||
|
equipmentNo,
|
||||||
|
preparationDuration,
|
||||||
|
windUpDuration,
|
||||||
|
clothMinimumSpeed,
|
||||||
|
clothMaximumSpeed,
|
||||||
|
formingMinimumSpeed,
|
||||||
|
formingMaximumSpeed,
|
||||||
|
glueMinimumSpeed,
|
||||||
|
glueMaximumSpeed,
|
||||||
|
sulfurizationLength,
|
||||||
|
vulcanizingMachineType,
|
||||||
|
vulcanizedBoardNumber,
|
||||||
|
resourceName,
|
||||||
|
processStage,
|
||||||
|
preProcess,
|
||||||
|
releaseOrder,
|
||||||
|
taskCode,
|
||||||
|
conveyorLengthSpecification,
|
||||||
|
upGlueThickness,
|
||||||
|
upBufferGlueThickness,
|
||||||
|
belowGlueThickness,
|
||||||
|
belowBufferGlueThickness,
|
||||||
|
beltWidth,
|
||||||
|
customerRequestConveyorLength,
|
||||||
|
rollingProductionMeters,
|
||||||
|
vulcanizationMeters,
|
||||||
|
recommendVulcanizationTime,
|
||||||
|
largeClothMeters,
|
||||||
|
smallClothMeters,
|
||||||
|
encapsulationMeters,
|
||||||
|
workSpeed,
|
||||||
|
workingHours,
|
||||||
|
distributionArea,
|
||||||
|
encapsulationArea,
|
||||||
|
vulcanizationArea,
|
||||||
|
conveyorTotalArea,
|
||||||
|
glueProcess,
|
||||||
|
upGlue,
|
||||||
|
upGlueCoefficient,
|
||||||
|
upGlueDosage,
|
||||||
|
belowGlue,
|
||||||
|
belowGlueCoefficient,
|
||||||
|
belowGlueDosage,
|
||||||
|
bufferGlue,
|
||||||
|
bufferGlueCoefficient,
|
||||||
|
bufferGlueDosage,
|
||||||
|
largeClothSpecifications,
|
||||||
|
largeClothFrictioningCoefficient,
|
||||||
|
largeClothDosage,
|
||||||
|
middleGlue,
|
||||||
|
middleGlueCoefficient,
|
||||||
|
middleGlueDosage,
|
||||||
|
deviceUsageRestrictions,
|
||||||
|
workshopSection,
|
||||||
|
classes,
|
||||||
|
taskForce,
|
||||||
|
teamName,
|
||||||
|
groupLeader,
|
||||||
|
create_by,
|
||||||
|
create_time,
|
||||||
|
update_by,
|
||||||
|
update_time
|
||||||
|
from prod_plan_erp_info
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectProdPlanErpInfoList" parameterType="ProdPlanErpInfo" resultMap="ProdPlanErpInfoResult">
|
||||||
|
<include refid="selectProdPlanErpInfoVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="hardware != null and hardware != ''">and hardware = #{hardware}</if>
|
||||||
|
<if test="software != null and software != ''">and software = #{software}</if>
|
||||||
|
<if test="stageText != null and stageText != ''">and stageText = #{stageText}</if>
|
||||||
|
<if test="seqNo != null and seqNo != ''">and seqNo = #{seqNo}</if>
|
||||||
|
<if test="params.beginPlanStartTime != null and params.beginPlanStartTime != '' and params.endPlanStartTime != null and params.endPlanStartTime != ''">
|
||||||
|
and planStartTime between #{params.beginPlanStartTime} and #{params.endPlanStartTime}
|
||||||
|
</if>
|
||||||
|
<if test="params.beginPlanEndTime != null and params.beginPlanEndTime != '' and params.endPlanEndTime != null and params.endPlanEndTime != ''">
|
||||||
|
and planEndTime between #{params.beginPlanEndTime} and #{params.endPlanEndTime}
|
||||||
|
</if>
|
||||||
|
<if test="associationResource != null and associationResource != ''">and associationResource =
|
||||||
|
#{associationResource}
|
||||||
|
</if>
|
||||||
|
<if test="workingEfficiency != null and workingEfficiency != ''">and workingEfficiency =
|
||||||
|
#{workingEfficiency}
|
||||||
|
</if>
|
||||||
|
<if test="equipmentNo != null and equipmentNo != ''">and equipmentNo = #{equipmentNo}</if>
|
||||||
|
<if test="preparationDuration != null ">and preparationDuration = #{preparationDuration}</if>
|
||||||
|
<if test="windUpDuration != null ">and windUpDuration = #{windUpDuration}</if>
|
||||||
|
<if test="clothMinimumSpeed != null ">and clothMinimumSpeed = #{clothMinimumSpeed}</if>
|
||||||
|
<if test="clothMaximumSpeed != null ">and clothMaximumSpeed = #{clothMaximumSpeed}</if>
|
||||||
|
<if test="formingMinimumSpeed != null ">and formingMinimumSpeed = #{formingMinimumSpeed}</if>
|
||||||
|
<if test="formingMaximumSpeed != null ">and formingMaximumSpeed = #{formingMaximumSpeed}</if>
|
||||||
|
<if test="glueMinimumSpeed != null ">and glueMinimumSpeed = #{glueMinimumSpeed}</if>
|
||||||
|
<if test="glueMaximumSpeed != null ">and glueMaximumSpeed = #{glueMaximumSpeed}</if>
|
||||||
|
<if test="sulfurizationLength != null ">and sulfurizationLength = #{sulfurizationLength}</if>
|
||||||
|
<if test="vulcanizingMachineType != null and vulcanizingMachineType != ''">and vulcanizingMachineType =
|
||||||
|
#{vulcanizingMachineType}
|
||||||
|
</if>
|
||||||
|
<if test="vulcanizedBoardNumber != null and vulcanizedBoardNumber != ''">and vulcanizedBoardNumber =
|
||||||
|
#{vulcanizedBoardNumber}
|
||||||
|
</if>
|
||||||
|
<if test="resourceName != null and resourceName != ''">and resourceName like concat('%', #{resourceName},
|
||||||
|
'%')
|
||||||
|
</if>
|
||||||
|
<if test="processStage != null and processStage != ''">and processStage = #{processStage}</if>
|
||||||
|
<if test="preProcess != null and preProcess != ''">and preProcess = #{preProcess}</if>
|
||||||
|
<if test="releaseOrder != null and releaseOrder != ''">and releaseOrder = #{releaseOrder}</if>
|
||||||
|
<if test="taskCode != null and taskCode != ''">and taskCode like concat('%', #{taskCode}, '%')</if>
|
||||||
|
<if test="conveyorLengthSpecification != null and conveyorLengthSpecification != ''">and
|
||||||
|
conveyorLengthSpecification = #{conveyorLengthSpecification}
|
||||||
|
</if>
|
||||||
|
<if test="upGlueThickness != null ">and upGlueThickness = #{upGlueThickness}</if>
|
||||||
|
<if test="upBufferGlueThickness != null ">and upBufferGlueThickness = #{upBufferGlueThickness}</if>
|
||||||
|
<if test="belowGlueThickness != null ">and belowGlueThickness = #{belowGlueThickness}</if>
|
||||||
|
<if test="belowBufferGlueThickness != null ">and belowBufferGlueThickness = #{belowBufferGlueThickness}</if>
|
||||||
|
<if test="beltWidth != null ">and beltWidth = #{beltWidth}</if>
|
||||||
|
<if test="customerRequestConveyorLength != null ">and customerRequestConveyorLength =
|
||||||
|
#{customerRequestConveyorLength}
|
||||||
|
</if>
|
||||||
|
<if test="rollingProductionMeters != null ">and rollingProductionMeters = #{rollingProductionMeters}</if>
|
||||||
|
<if test="vulcanizationMeters != null ">and vulcanizationMeters = #{vulcanizationMeters}</if>
|
||||||
|
<if test="recommendVulcanizationTime != null ">and recommendVulcanizationTime =
|
||||||
|
#{recommendVulcanizationTime}
|
||||||
|
</if>
|
||||||
|
<if test="largeClothMeters != null ">and largeClothMeters = #{largeClothMeters}</if>
|
||||||
|
<if test="smallClothMeters != null ">and smallClothMeters = #{smallClothMeters}</if>
|
||||||
|
<if test="encapsulationMeters != null ">and encapsulationMeters = #{encapsulationMeters}</if>
|
||||||
|
<if test="workSpeed != null ">and workSpeed = #{workSpeed}</if>
|
||||||
|
<if test="workingHours != null ">and workingHours = #{workingHours}</if>
|
||||||
|
<if test="distributionArea != null ">and distributionArea = #{distributionArea}</if>
|
||||||
|
<if test="encapsulationArea != null ">and encapsulationArea = #{encapsulationArea}</if>
|
||||||
|
<if test="vulcanizationArea != null ">and vulcanizationArea = #{vulcanizationArea}</if>
|
||||||
|
<if test="conveyorTotalArea != null ">and conveyorTotalArea = #{conveyorTotalArea}</if>
|
||||||
|
<if test="glueProcess != null and glueProcess != ''">and glueProcess = #{glueProcess}</if>
|
||||||
|
<if test="upGlue != null and upGlue != ''">and upGlue = #{upGlue}</if>
|
||||||
|
<if test="upGlueCoefficient != null ">and upGlueCoefficient = #{upGlueCoefficient}</if>
|
||||||
|
<if test="upGlueDosage != null ">and upGlueDosage = #{upGlueDosage}</if>
|
||||||
|
<if test="belowGlue != null and belowGlue != ''">and belowGlue = #{belowGlue}</if>
|
||||||
|
<if test="belowGlueCoefficient != null ">and belowGlueCoefficient = #{belowGlueCoefficient}</if>
|
||||||
|
<if test="belowGlueDosage != null ">and belowGlueDosage = #{belowGlueDosage}</if>
|
||||||
|
<if test="bufferGlue != null and bufferGlue != ''">and bufferGlue = #{bufferGlue}</if>
|
||||||
|
<if test="bufferGlueCoefficient != null ">and bufferGlueCoefficient = #{bufferGlueCoefficient}</if>
|
||||||
|
<if test="bufferGlueDosage != null ">and bufferGlueDosage = #{bufferGlueDosage}</if>
|
||||||
|
<if test="largeClothSpecifications != null ">and largeClothSpecifications = #{largeClothSpecifications}</if>
|
||||||
|
<if test="largeClothFrictioningCoefficient != null ">and largeClothFrictioningCoefficient =
|
||||||
|
#{largeClothFrictioningCoefficient}
|
||||||
|
</if>
|
||||||
|
<if test="largeClothDosage != null ">and largeClothDosage = #{largeClothDosage}</if>
|
||||||
|
<if test="middleGlue != null and middleGlue != ''">and middleGlue = #{middleGlue}</if>
|
||||||
|
<if test="middleGlueCoefficient != null ">and middleGlueCoefficient = #{middleGlueCoefficient}</if>
|
||||||
|
<if test="middleGlueDosage != null ">and middleGlueDosage = #{middleGlueDosage}</if>
|
||||||
|
<if test="deviceUsageRestrictions != null and deviceUsageRestrictions != ''">and deviceUsageRestrictions =
|
||||||
|
#{deviceUsageRestrictions}
|
||||||
|
</if>
|
||||||
|
<if test="workshopSection != null and workshopSection != ''">and workshopSection = #{workshopSection}</if>
|
||||||
|
<if test="classes != null and classes != ''">and classes = #{classes}</if>
|
||||||
|
<if test="taskForce != null and taskForce != ''">and taskForce = #{taskForce}</if>
|
||||||
|
<if test="teamName != null and teamName != ''">and teamName like concat('%', #{teamName}, '%')</if>
|
||||||
|
<if test="groupLeader != null and groupLeader != ''">and groupLeader = #{groupLeader}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectProdPlanErpInfoByObjId" parameterType="Long" resultMap="ProdPlanErpInfoResult">
|
||||||
|
<include refid="selectProdPlanErpInfoVo"/>
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertProdPlanErpInfo" parameterType="ProdPlanErpInfo" useGeneratedKeys="true" keyProperty="objId">
|
||||||
|
insert into prod_plan_erp_info
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="hardware != null">hardware,</if>
|
||||||
|
<if test="software != null">software,</if>
|
||||||
|
<if test="stageText != null">stageText,</if>
|
||||||
|
<if test="seqNo != null and seqNo != ''">seqNo,</if>
|
||||||
|
<if test="planStartTime != null">planStartTime,</if>
|
||||||
|
<if test="planEndTime != null">planEndTime,</if>
|
||||||
|
<if test="associationResource != null">associationResource,</if>
|
||||||
|
<if test="workingEfficiency != null">workingEfficiency,</if>
|
||||||
|
<if test="equipmentNo != null">equipmentNo,</if>
|
||||||
|
<if test="preparationDuration != null">preparationDuration,</if>
|
||||||
|
<if test="windUpDuration != null">windUpDuration,</if>
|
||||||
|
<if test="clothMinimumSpeed != null">clothMinimumSpeed,</if>
|
||||||
|
<if test="clothMaximumSpeed != null">clothMaximumSpeed,</if>
|
||||||
|
<if test="formingMinimumSpeed != null">formingMinimumSpeed,</if>
|
||||||
|
<if test="formingMaximumSpeed != null">formingMaximumSpeed,</if>
|
||||||
|
<if test="glueMinimumSpeed != null">glueMinimumSpeed,</if>
|
||||||
|
<if test="glueMaximumSpeed != null">glueMaximumSpeed,</if>
|
||||||
|
<if test="sulfurizationLength != null">sulfurizationLength,</if>
|
||||||
|
<if test="vulcanizingMachineType != null">vulcanizingMachineType,</if>
|
||||||
|
<if test="vulcanizedBoardNumber != null">vulcanizedBoardNumber,</if>
|
||||||
|
<if test="resourceName != null">resourceName,</if>
|
||||||
|
<if test="processStage != null">processStage,</if>
|
||||||
|
<if test="preProcess != null">preProcess,</if>
|
||||||
|
<if test="releaseOrder != null">releaseOrder,</if>
|
||||||
|
<if test="taskCode != null">taskCode,</if>
|
||||||
|
<if test="conveyorLengthSpecification != null">conveyorLengthSpecification,</if>
|
||||||
|
<if test="upGlueThickness != null">upGlueThickness,</if>
|
||||||
|
<if test="upBufferGlueThickness != null">upBufferGlueThickness,</if>
|
||||||
|
<if test="belowGlueThickness != null">belowGlueThickness,</if>
|
||||||
|
<if test="belowBufferGlueThickness != null">belowBufferGlueThickness,</if>
|
||||||
|
<if test="beltWidth != null">beltWidth,</if>
|
||||||
|
<if test="customerRequestConveyorLength != null">customerRequestConveyorLength,</if>
|
||||||
|
<if test="rollingProductionMeters != null">rollingProductionMeters,</if>
|
||||||
|
<if test="vulcanizationMeters != null">vulcanizationMeters,</if>
|
||||||
|
<if test="recommendVulcanizationTime != null">recommendVulcanizationTime,</if>
|
||||||
|
<if test="largeClothMeters != null">largeClothMeters,</if>
|
||||||
|
<if test="smallClothMeters != null">smallClothMeters,</if>
|
||||||
|
<if test="encapsulationMeters != null">encapsulationMeters,</if>
|
||||||
|
<if test="workSpeed != null">workSpeed,</if>
|
||||||
|
<if test="workingHours != null">workingHours,</if>
|
||||||
|
<if test="distributionArea != null">distributionArea,</if>
|
||||||
|
<if test="encapsulationArea != null">encapsulationArea,</if>
|
||||||
|
<if test="vulcanizationArea != null">vulcanizationArea,</if>
|
||||||
|
<if test="conveyorTotalArea != null">conveyorTotalArea,</if>
|
||||||
|
<if test="glueProcess != null">glueProcess,</if>
|
||||||
|
<if test="upGlue != null">upGlue,</if>
|
||||||
|
<if test="upGlueCoefficient != null">upGlueCoefficient,</if>
|
||||||
|
<if test="upGlueDosage != null">upGlueDosage,</if>
|
||||||
|
<if test="belowGlue != null">belowGlue,</if>
|
||||||
|
<if test="belowGlueCoefficient != null">belowGlueCoefficient,</if>
|
||||||
|
<if test="belowGlueDosage != null">belowGlueDosage,</if>
|
||||||
|
<if test="bufferGlue != null">bufferGlue,</if>
|
||||||
|
<if test="bufferGlueCoefficient != null">bufferGlueCoefficient,</if>
|
||||||
|
<if test="bufferGlueDosage != null">bufferGlueDosage,</if>
|
||||||
|
<if test="largeClothSpecifications != null">largeClothSpecifications,</if>
|
||||||
|
<if test="largeClothFrictioningCoefficient != null">largeClothFrictioningCoefficient,</if>
|
||||||
|
<if test="largeClothDosage != null">largeClothDosage,</if>
|
||||||
|
<if test="middleGlue != null">middleGlue,</if>
|
||||||
|
<if test="middleGlueCoefficient != null">middleGlueCoefficient,</if>
|
||||||
|
<if test="middleGlueDosage != null">middleGlueDosage,</if>
|
||||||
|
<if test="deviceUsageRestrictions != null">deviceUsageRestrictions,</if>
|
||||||
|
<if test="workshopSection != null">workshopSection,</if>
|
||||||
|
<if test="classes != null">classes,</if>
|
||||||
|
<if test="taskForce != null">taskForce,</if>
|
||||||
|
<if test="teamName != null">teamName,</if>
|
||||||
|
<if test="groupLeader != null">groupLeader,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="hardware != null">#{hardware},</if>
|
||||||
|
<if test="software != null">#{software},</if>
|
||||||
|
<if test="stageText != null">#{stageText},</if>
|
||||||
|
<if test="seqNo != null and seqNo != ''">#{seqNo},</if>
|
||||||
|
<if test="planStartTime != null">#{planStartTime},</if>
|
||||||
|
<if test="planEndTime != null">#{planEndTime},</if>
|
||||||
|
<if test="associationResource != null">#{associationResource},</if>
|
||||||
|
<if test="workingEfficiency != null">#{workingEfficiency},</if>
|
||||||
|
<if test="equipmentNo != null">#{equipmentNo},</if>
|
||||||
|
<if test="preparationDuration != null">#{preparationDuration},</if>
|
||||||
|
<if test="windUpDuration != null">#{windUpDuration},</if>
|
||||||
|
<if test="clothMinimumSpeed != null">#{clothMinimumSpeed},</if>
|
||||||
|
<if test="clothMaximumSpeed != null">#{clothMaximumSpeed},</if>
|
||||||
|
<if test="formingMinimumSpeed != null">#{formingMinimumSpeed},</if>
|
||||||
|
<if test="formingMaximumSpeed != null">#{formingMaximumSpeed},</if>
|
||||||
|
<if test="glueMinimumSpeed != null">#{glueMinimumSpeed},</if>
|
||||||
|
<if test="glueMaximumSpeed != null">#{glueMaximumSpeed},</if>
|
||||||
|
<if test="sulfurizationLength != null">#{sulfurizationLength},</if>
|
||||||
|
<if test="vulcanizingMachineType != null">#{vulcanizingMachineType},</if>
|
||||||
|
<if test="vulcanizedBoardNumber != null">#{vulcanizedBoardNumber},</if>
|
||||||
|
<if test="resourceName != null">#{resourceName},</if>
|
||||||
|
<if test="processStage != null">#{processStage},</if>
|
||||||
|
<if test="preProcess != null">#{preProcess},</if>
|
||||||
|
<if test="releaseOrder != null">#{releaseOrder},</if>
|
||||||
|
<if test="taskCode != null">#{taskCode},</if>
|
||||||
|
<if test="conveyorLengthSpecification != null">#{conveyorLengthSpecification},</if>
|
||||||
|
<if test="upGlueThickness != null">#{upGlueThickness},</if>
|
||||||
|
<if test="upBufferGlueThickness != null">#{upBufferGlueThickness},</if>
|
||||||
|
<if test="belowGlueThickness != null">#{belowGlueThickness},</if>
|
||||||
|
<if test="belowBufferGlueThickness != null">#{belowBufferGlueThickness},</if>
|
||||||
|
<if test="beltWidth != null">#{beltWidth},</if>
|
||||||
|
<if test="customerRequestConveyorLength != null">#{customerRequestConveyorLength},</if>
|
||||||
|
<if test="rollingProductionMeters != null">#{rollingProductionMeters},</if>
|
||||||
|
<if test="vulcanizationMeters != null">#{vulcanizationMeters},</if>
|
||||||
|
<if test="recommendVulcanizationTime != null">#{recommendVulcanizationTime},</if>
|
||||||
|
<if test="largeClothMeters != null">#{largeClothMeters},</if>
|
||||||
|
<if test="smallClothMeters != null">#{smallClothMeters},</if>
|
||||||
|
<if test="encapsulationMeters != null">#{encapsulationMeters},</if>
|
||||||
|
<if test="workSpeed != null">#{workSpeed},</if>
|
||||||
|
<if test="workingHours != null">#{workingHours},</if>
|
||||||
|
<if test="distributionArea != null">#{distributionArea},</if>
|
||||||
|
<if test="encapsulationArea != null">#{encapsulationArea},</if>
|
||||||
|
<if test="vulcanizationArea != null">#{vulcanizationArea},</if>
|
||||||
|
<if test="conveyorTotalArea != null">#{conveyorTotalArea},</if>
|
||||||
|
<if test="glueProcess != null">#{glueProcess},</if>
|
||||||
|
<if test="upGlue != null">#{upGlue},</if>
|
||||||
|
<if test="upGlueCoefficient != null">#{upGlueCoefficient},</if>
|
||||||
|
<if test="upGlueDosage != null">#{upGlueDosage},</if>
|
||||||
|
<if test="belowGlue != null">#{belowGlue},</if>
|
||||||
|
<if test="belowGlueCoefficient != null">#{belowGlueCoefficient},</if>
|
||||||
|
<if test="belowGlueDosage != null">#{belowGlueDosage},</if>
|
||||||
|
<if test="bufferGlue != null">#{bufferGlue},</if>
|
||||||
|
<if test="bufferGlueCoefficient != null">#{bufferGlueCoefficient},</if>
|
||||||
|
<if test="bufferGlueDosage != null">#{bufferGlueDosage},</if>
|
||||||
|
<if test="largeClothSpecifications != null">#{largeClothSpecifications},</if>
|
||||||
|
<if test="largeClothFrictioningCoefficient != null">#{largeClothFrictioningCoefficient},</if>
|
||||||
|
<if test="largeClothDosage != null">#{largeClothDosage},</if>
|
||||||
|
<if test="middleGlue != null">#{middleGlue},</if>
|
||||||
|
<if test="middleGlueCoefficient != null">#{middleGlueCoefficient},</if>
|
||||||
|
<if test="middleGlueDosage != null">#{middleGlueDosage},</if>
|
||||||
|
<if test="deviceUsageRestrictions != null">#{deviceUsageRestrictions},</if>
|
||||||
|
<if test="workshopSection != null">#{workshopSection},</if>
|
||||||
|
<if test="classes != null">#{classes},</if>
|
||||||
|
<if test="taskForce != null">#{taskForce},</if>
|
||||||
|
<if test="teamName != null">#{teamName},</if>
|
||||||
|
<if test="groupLeader != null">#{groupLeader},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateProdPlanErpInfo" parameterType="ProdPlanErpInfo">
|
||||||
|
update prod_plan_erp_info
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="hardware != null">hardware = #{hardware},</if>
|
||||||
|
<if test="software != null">software = #{software},</if>
|
||||||
|
<if test="stageText != null">stageText = #{stageText},</if>
|
||||||
|
<if test="seqNo != null and seqNo != ''">seqNo = #{seqNo},</if>
|
||||||
|
<if test="planStartTime != null">planStartTime = #{planStartTime},</if>
|
||||||
|
<if test="planEndTime != null">planEndTime = #{planEndTime},</if>
|
||||||
|
<if test="associationResource != null">associationResource = #{associationResource},</if>
|
||||||
|
<if test="workingEfficiency != null">workingEfficiency = #{workingEfficiency},</if>
|
||||||
|
<if test="equipmentNo != null">equipmentNo = #{equipmentNo},</if>
|
||||||
|
<if test="preparationDuration != null">preparationDuration = #{preparationDuration},</if>
|
||||||
|
<if test="windUpDuration != null">windUpDuration = #{windUpDuration},</if>
|
||||||
|
<if test="clothMinimumSpeed != null">clothMinimumSpeed = #{clothMinimumSpeed},</if>
|
||||||
|
<if test="clothMaximumSpeed != null">clothMaximumSpeed = #{clothMaximumSpeed},</if>
|
||||||
|
<if test="formingMinimumSpeed != null">formingMinimumSpeed = #{formingMinimumSpeed},</if>
|
||||||
|
<if test="formingMaximumSpeed != null">formingMaximumSpeed = #{formingMaximumSpeed},</if>
|
||||||
|
<if test="glueMinimumSpeed != null">glueMinimumSpeed = #{glueMinimumSpeed},</if>
|
||||||
|
<if test="glueMaximumSpeed != null">glueMaximumSpeed = #{glueMaximumSpeed},</if>
|
||||||
|
<if test="sulfurizationLength != null">sulfurizationLength = #{sulfurizationLength},</if>
|
||||||
|
<if test="vulcanizingMachineType != null">vulcanizingMachineType = #{vulcanizingMachineType},</if>
|
||||||
|
<if test="vulcanizedBoardNumber != null">vulcanizedBoardNumber = #{vulcanizedBoardNumber},</if>
|
||||||
|
<if test="resourceName != null">resourceName = #{resourceName},</if>
|
||||||
|
<if test="processStage != null">processStage = #{processStage},</if>
|
||||||
|
<if test="preProcess != null">preProcess = #{preProcess},</if>
|
||||||
|
<if test="releaseOrder != null">releaseOrder = #{releaseOrder},</if>
|
||||||
|
<if test="taskCode != null">taskCode = #{taskCode},</if>
|
||||||
|
<if test="conveyorLengthSpecification != null">conveyorLengthSpecification =
|
||||||
|
#{conveyorLengthSpecification},
|
||||||
|
</if>
|
||||||
|
<if test="upGlueThickness != null">upGlueThickness = #{upGlueThickness},</if>
|
||||||
|
<if test="upBufferGlueThickness != null">upBufferGlueThickness = #{upBufferGlueThickness},</if>
|
||||||
|
<if test="belowGlueThickness != null">belowGlueThickness = #{belowGlueThickness},</if>
|
||||||
|
<if test="belowBufferGlueThickness != null">belowBufferGlueThickness = #{belowBufferGlueThickness},</if>
|
||||||
|
<if test="beltWidth != null">beltWidth = #{beltWidth},</if>
|
||||||
|
<if test="customerRequestConveyorLength != null">customerRequestConveyorLength =
|
||||||
|
#{customerRequestConveyorLength},
|
||||||
|
</if>
|
||||||
|
<if test="rollingProductionMeters != null">rollingProductionMeters = #{rollingProductionMeters},</if>
|
||||||
|
<if test="vulcanizationMeters != null">vulcanizationMeters = #{vulcanizationMeters},</if>
|
||||||
|
<if test="recommendVulcanizationTime != null">recommendVulcanizationTime = #{recommendVulcanizationTime},
|
||||||
|
</if>
|
||||||
|
<if test="largeClothMeters != null">largeClothMeters = #{largeClothMeters},</if>
|
||||||
|
<if test="smallClothMeters != null">smallClothMeters = #{smallClothMeters},</if>
|
||||||
|
<if test="encapsulationMeters != null">encapsulationMeters = #{encapsulationMeters},</if>
|
||||||
|
<if test="workSpeed != null">workSpeed = #{workSpeed},</if>
|
||||||
|
<if test="workingHours != null">workingHours = #{workingHours},</if>
|
||||||
|
<if test="distributionArea != null">distributionArea = #{distributionArea},</if>
|
||||||
|
<if test="encapsulationArea != null">encapsulationArea = #{encapsulationArea},</if>
|
||||||
|
<if test="vulcanizationArea != null">vulcanizationArea = #{vulcanizationArea},</if>
|
||||||
|
<if test="conveyorTotalArea != null">conveyorTotalArea = #{conveyorTotalArea},</if>
|
||||||
|
<if test="glueProcess != null">glueProcess = #{glueProcess},</if>
|
||||||
|
<if test="upGlue != null">upGlue = #{upGlue},</if>
|
||||||
|
<if test="upGlueCoefficient != null">upGlueCoefficient = #{upGlueCoefficient},</if>
|
||||||
|
<if test="upGlueDosage != null">upGlueDosage = #{upGlueDosage},</if>
|
||||||
|
<if test="belowGlue != null">belowGlue = #{belowGlue},</if>
|
||||||
|
<if test="belowGlueCoefficient != null">belowGlueCoefficient = #{belowGlueCoefficient},</if>
|
||||||
|
<if test="belowGlueDosage != null">belowGlueDosage = #{belowGlueDosage},</if>
|
||||||
|
<if test="bufferGlue != null">bufferGlue = #{bufferGlue},</if>
|
||||||
|
<if test="bufferGlueCoefficient != null">bufferGlueCoefficient = #{bufferGlueCoefficient},</if>
|
||||||
|
<if test="bufferGlueDosage != null">bufferGlueDosage = #{bufferGlueDosage},</if>
|
||||||
|
<if test="largeClothSpecifications != null">largeClothSpecifications = #{largeClothSpecifications},</if>
|
||||||
|
<if test="largeClothFrictioningCoefficient != null">largeClothFrictioningCoefficient =
|
||||||
|
#{largeClothFrictioningCoefficient},
|
||||||
|
</if>
|
||||||
|
<if test="largeClothDosage != null">largeClothDosage = #{largeClothDosage},</if>
|
||||||
|
<if test="middleGlue != null">middleGlue = #{middleGlue},</if>
|
||||||
|
<if test="middleGlueCoefficient != null">middleGlueCoefficient = #{middleGlueCoefficient},</if>
|
||||||
|
<if test="middleGlueDosage != null">middleGlueDosage = #{middleGlueDosage},</if>
|
||||||
|
<if test="deviceUsageRestrictions != null">deviceUsageRestrictions = #{deviceUsageRestrictions},</if>
|
||||||
|
<if test="workshopSection != null">workshopSection = #{workshopSection},</if>
|
||||||
|
<if test="classes != null">classes = #{classes},</if>
|
||||||
|
<if test="taskForce != null">taskForce = #{taskForce},</if>
|
||||||
|
<if test="teamName != null">teamName = #{teamName},</if>
|
||||||
|
<if test="groupLeader != null">groupLeader = #{groupLeader},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteProdPlanErpInfoByObjId" parameterType="Long">
|
||||||
|
delete
|
||||||
|
from prod_plan_erp_info
|
||||||
|
where obj_id = #{objId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteProdPlanErpInfoByObjIds" parameterType="String">
|
||||||
|
delete from prod_plan_erp_info where obj_id in
|
||||||
|
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{objId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue