diff --git a/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java b/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java index 4d5d44cf..cbcb6a43 100644 --- a/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java +++ b/common/src/main/java/com/foreverwin/mesnac/common/constant/Constants.java @@ -119,4 +119,18 @@ public interface Constants { String ABNORMAL_OTHER = "Q"; String ABNORMAL_RESRCE = "S"; + /** + * 设备维修 + */ + // 纠正预防-根本原因 + String PRIMARY_BURN_IN = "BI"; //部件老化 + String REASON_BREAK_DOWN = "BD"; //正常损坏 + String REASON_ABNORMAL = "AB"; //非正常使用 + String REASON_OTHER = "OT"; //其他 + // 处理方式 + String DEAL_REPLACE_ITEM = "RI"; //更换备件 + String DEAL_REPAIR = "RP"; //维修 + String DEAL_OUTSOURCE = "OS"; //委外 + String DEAL_POSTPONE = "PT"; //延后处理 + } diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQConsume.java b/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQConsume.java index 12bd2021..aa4543bf 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQConsume.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQConsume.java @@ -1,8 +1,5 @@ package com.foreverwin.mesnac.equip.consumer; -import com.alibaba.fastjson.JSONObject; -import com.foreverwin.mesnac.equip.dto.MQResponseDto; -import com.foreverwin.mesnac.meapi.service.ResrceService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -13,7 +10,6 @@ import org.springframework.jms.core.JmsMessagingTemplate; import org.springframework.messaging.MessageHeaders; import org.springframework.stereotype.Component; -import javax.jms.Queue; /** diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQProcess.java b/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQProcess.java index 7b16ceb4..e40dd617 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQProcess.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/consumer/ResourceMQProcess.java @@ -1,21 +1,13 @@ package com.foreverwin.mesnac.equip.consumer; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; -import com.foreverwin.mesnac.common.util.StringUtil; import com.foreverwin.mesnac.equip.dto.MQResponseDto; -import com.foreverwin.mesnac.equip.model.ResourceFaultReceive; import com.foreverwin.mesnac.equip.service.EdcDataResourceService; import com.foreverwin.mesnac.equip.service.ResourceFaultReceiveService; import com.foreverwin.mesnac.equip.service.ResourceStatusReceiveService; -import com.foreverwin.modular.core.exception.BusinessException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Map; /** * 设备接口业务处理 @@ -72,7 +64,6 @@ public class ResourceMQProcess { mqResponseDto.setSTATUS("Error"); mqResponseDto.setMESSAGE("设备状态修改失败:" + e.getMessage()); } - return JSONObject.toJSONString(mqResponseDto); } /** @@ -91,7 +82,6 @@ public class ResourceMQProcess { mqResponseDto.setSTATUS("Error"); mqResponseDto.setMESSAGE("设备状态修改失败:" + e.getMessage()); } - return JSONObject.toJSONString(mqResponseDto); } diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java index 62fb7e29..409a470a 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/EdcDataResourceService.java @@ -26,6 +26,11 @@ public interface EdcDataResourceService extends IService { List selectList(EdcDataResource edcDataResource); + /** + * 保存设备参数数据-DNC接口 + * @param text + * @return + */ String saveResourceParamByMq(String text); } \ No newline at end of file diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/ResourceStatusReceiveService.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/ResourceStatusReceiveService.java index 80115fdf..3fa82154 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/ResourceStatusReceiveService.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/ResourceStatusReceiveService.java @@ -5,7 +5,6 @@ import com.foreverwin.mesnac.equip.model.ResourceStatusReceive; import com.baomidou.mybatisplus.extension.service.IService; import com.foreverwin.modular.core.util.FrontPage; -import java.time.LocalDateTime; import java.util.List; /** diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java index 69ed90b5..7b83fc87 100644 --- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java +++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/EdcDataResourceServiceImpl.java @@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.foreverwin.mesnac.common.enums.HandleEnum; -import com.foreverwin.mesnac.equip.dto.EdcDataResourceDto; import com.foreverwin.mesnac.meapi.mapper.DcParameterMapper; import com.foreverwin.mesnac.meapi.model.DcParameter; import com.foreverwin.modular.core.exception.BusinessException; @@ -19,9 +18,7 @@ import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; -import java.math.BigDecimal; import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -61,18 +58,13 @@ public class EdcDataResourceServiceImpl extends ServiceImpl map = new HashMap<>(); @@ -88,13 +80,16 @@ public class EdcDataResourceServiceImpl extends ServiceImpl getParamList = dcParameterMapper.getDcParameterByDcGroupBo(dcGroupBo); + if (getParamList.size()<1){ + throw BusinessException.build("数据收集组" + dcGroupBo + "未维护字段信息"); + } for (DcParameter dcParam:getParamList) { String parameterName = dcParam.getParameterName(); // 数据收集组---值-列 @@ -104,14 +99,17 @@ public class EdcDataResourceServiceImpl extends ServiceImpl diff --git a/production/src/main/java/com/foreverwin/mesnac/production/controller/ToolController.java b/production/src/main/java/com/foreverwin/mesnac/production/controller/ToolController.java new file mode 100644 index 00000000..976358d8 --- /dev/null +++ b/production/src/main/java/com/foreverwin/mesnac/production/controller/ToolController.java @@ -0,0 +1,130 @@ +package com.foreverwin.mesnac.production.controller; + +import com.foreverwin.modular.core.util.R; +import com.foreverwin.modular.core.util.FrontPage; +import com.foreverwin.modular.core.util.CommonMethods; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import com.foreverwin.mesnac.production.service.ToolService; +import com.foreverwin.mesnac.production.model.Tool; +import java.util.List; + +/** + * + * @author pavel.liu + * @since 2021-07-14 + */ +@RestController +@RequestMapping("/Z-TOOL") +public class ToolController { + + @Autowired + public ToolService toolService; + + /** + * 根据id查询 + * + * @param id 主键 + * @return + */ + @ResponseBody + @GetMapping("/{id:.+}") + public R getToolById(@PathVariable String id) { + return R.ok( toolService.getById(id)); + } + + /** + * 查询所有数据 + * + * @return + */ + @ResponseBody + @GetMapping("") + public R getToolList(Tool tool){ + String site = CommonMethods.getSite(); + tool.setSite(site); + List result; + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.setEntity(tool); + result = toolService.list(queryWrapper); + return R.ok(result); + } + + /** + * 分页查询数据 + * + * @param frontPage 分页信息 + * @return + */ + @ResponseBody + @GetMapping("/page") + public R page(FrontPage frontPage, Tool tool){ + IPage result; + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.setEntity(tool); + if (frontPage.getGlobalQuery() != null && !"".equals(frontPage.getGlobalQuery().trim())) { + //TODO modify global query + queryWrapper.lambda().and(wrapper -> wrapper + .like(Tool::getHandle, frontPage.getGlobalQuery()) + .or().like(Tool::getSite, frontPage.getGlobalQuery()) + .or().like(Tool::getTool, frontPage.getGlobalQuery()) + .or().like(Tool::getDescription, frontPage.getGlobalQuery()) + .or().like(Tool::getStatus, frontPage.getGlobalQuery()) + .or().like(Tool::getToolType, frontPage.getGlobalQuery()) + .or().like(Tool::getSpecification, frontPage.getGlobalQuery()) + .or().like(Tool::getBrand, frontPage.getGlobalQuery()) + .or().like(Tool::getRemark, frontPage.getGlobalQuery()) + .or().like(Tool::getCreateUser, frontPage.getGlobalQuery()) + .or().like(Tool::getModifyUser, frontPage.getGlobalQuery()) + ); + } + result = toolService.page(frontPage.getPagePlus(), queryWrapper); + return R.ok(result); + } + + /** + * 新增 + * @param tool 传递的实体 + * @return null 失败 实体成功 + */ + @PostMapping + public R save(@RequestBody Tool tool) { + return R.ok(toolService.save(tool)); + } + + /** + * 修改 + * @param tool 传递的实体 + * @return null 失败 实体成功 + */ + @PutMapping + public R updateById(@RequestBody Tool tool) { + return R.ok(toolService.updateById(tool)); + } + + /** + * 根据id删除对象 + * @param id 实体ID + * @return 0 失败 1 成功 + */ + @ResponseBody + @RequestMapping(method = RequestMethod.DELETE, value = "/{id:.+}") + public R removeById(@PathVariable("id") String id){ + return R.ok(toolService.removeById(id)); + } + + /** + * 批量删除对象 + * @param ids 实体集合ID + * @return 0 失败 1 成功 + */ + @ResponseBody + @RequestMapping(method = RequestMethod.POST, value = "/delete-batch") + public R removeByIds(List ids){ + return R.ok(toolService.removeByIds(ids)); + } +} \ No newline at end of file diff --git a/production/src/main/java/com/foreverwin/mesnac/production/mapper/ToolMapper.java b/production/src/main/java/com/foreverwin/mesnac/production/mapper/ToolMapper.java new file mode 100644 index 00000000..420f192a --- /dev/null +++ b/production/src/main/java/com/foreverwin/mesnac/production/mapper/ToolMapper.java @@ -0,0 +1,18 @@ +package com.foreverwin.mesnac.production.mapper; + +import com.foreverwin.mesnac.production.model.Tool; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * 工具表 Mapper 接口 + *

+ * + * @author pavel.liu + * @since 2021-07-14 + */ +@Repository +public interface ToolMapper extends BaseMapper { + +} \ No newline at end of file diff --git a/production/src/main/java/com/foreverwin/mesnac/production/model/Tool.java b/production/src/main/java/com/foreverwin/mesnac/production/model/Tool.java new file mode 100644 index 00000000..811fa806 --- /dev/null +++ b/production/src/main/java/com/foreverwin/mesnac/production/model/Tool.java @@ -0,0 +1,249 @@ +package com.foreverwin.mesnac.production.model; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import com.baomidou.mybatisplus.annotation.TableId; +import java.time.LocalDateTime; +import com.baomidou.mybatisplus.annotation.TableField; +import java.io.Serializable; +import com.baomidou.mybatisplus.annotation.IdType; + +/** + *

+ * 工具表 + *

+ * + * @author pavel.liu + * @since 2021-07-14 + */ + +@TableName("Z_TOOL") + +public class Tool extends Model { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + @TableId(value = "HANDLE", type = IdType.INPUT) + private String handle; + /** + * 站点 + */ + @TableField("SITE") + private String site; + /** + * 工具具编号 + */ + @TableField("TOOL") + private String tool; + /** + * 描述 + */ + @TableField("DESCRIPTION") + private String description; + /** + * 状态 + */ + @TableField("STATUS") + private String status; + /** + * 类型 + */ + @TableField("TOOL_TYPE") + private String toolType; + /** + * 规格 + */ + @TableField("SPECIFICATION") + private String specification; + /** + * 品牌 + */ + @TableField("BRAND") + private String brand; + /** + * 备注 + */ + @TableField("REMARK") + private String remark; + /** + * 创建人 + */ + @TableField("CREATE_USER") + private String createUser; + /** + * 创建时间 + */ + @TableField("CREATED_DATE_TIME") + private LocalDateTime createdDateTime; + /** + * 修改人 + */ + @TableField("MODIFY_USER") + private String modifyUser; + /** + * 修改时间 + */ + @TableField("MODIFIED_DATE_TIME") + private LocalDateTime modifiedDateTime; + + + public String getHandle() { + return handle; + } + + public void setHandle(String handle) { + this.handle = handle; + } + + public String getSite() { + return site; + } + + public void setSite(String site) { + this.site = site; + } + + public String getTool() { + return tool; + } + + public void setTool(String tool) { + this.tool = tool; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getToolType() { + return toolType; + } + + public void setToolType(String toolType) { + this.toolType = toolType; + } + + public String getSpecification() { + return specification; + } + + public void setSpecification(String specification) { + this.specification = specification; + } + + public String getBrand() { + return brand; + } + + public void setBrand(String brand) { + this.brand = brand; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public LocalDateTime getCreatedDateTime() { + return createdDateTime; + } + + public void setCreatedDateTime(LocalDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + } + + public String getModifyUser() { + return modifyUser; + } + + public void setModifyUser(String modifyUser) { + this.modifyUser = modifyUser; + } + + public LocalDateTime getModifiedDateTime() { + return modifiedDateTime; + } + + public void setModifiedDateTime(LocalDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + } + +public static final String HANDLE = "HANDLE"; + +public static final String SITE = "SITE"; + +public static final String TOOL = "TOOL"; + +public static final String DESCRIPTION = "DESCRIPTION"; + +public static final String STATUS = "STATUS"; + +public static final String TOOL_TYPE = "TOOL_TYPE"; + +public static final String SPECIFICATION = "SPECIFICATION"; + +public static final String BRAND = "BRAND"; + +public static final String REMARK = "REMARK"; + +public static final String CREATE_USER = "CREATE_USER"; + +public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME"; + +public static final String MODIFY_USER = "MODIFY_USER"; + +public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME"; + + + @Override + protected Serializable pkVal() { + return this.handle; + } + + @Override + public String toString() { + return "Tool{" + + "handle = " + handle + + ", site = " + site + + ", tool = " + tool + + ", description = " + description + + ", status = " + status + + ", toolType = " + toolType + + ", specification = " + specification + + ", brand = " + brand + + ", remark = " + remark + + ", createUser = " + createUser + + ", createdDateTime = " + createdDateTime + + ", modifyUser = " + modifyUser + + ", modifiedDateTime = " + modifiedDateTime + + "}"; + } +} \ No newline at end of file diff --git a/production/src/main/java/com/foreverwin/mesnac/production/service/ToolService.java b/production/src/main/java/com/foreverwin/mesnac/production/service/ToolService.java new file mode 100644 index 00000000..c8e20659 --- /dev/null +++ b/production/src/main/java/com/foreverwin/mesnac/production/service/ToolService.java @@ -0,0 +1,28 @@ +package com.foreverwin.mesnac.production.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.foreverwin.mesnac.production.model.Tool; +import com.baomidou.mybatisplus.extension.service.IService; +import com.foreverwin.modular.core.util.FrontPage; + +import java.util.List; + +/** + *

+ * 工具表 服务类 + *

+ * + * @author pavel.liu + * @since 2021-07-14 + */ +public interface ToolService extends IService { + + /** + * 分页查询 + * @param frontPage + * @return + */ + IPage selectPage(FrontPage frontPage, Tool tool); + + List selectList(Tool tool); +} \ No newline at end of file diff --git a/production/src/main/java/com/foreverwin/mesnac/production/service/impl/ToolServiceImpl.java b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/ToolServiceImpl.java new file mode 100644 index 00000000..5088a403 --- /dev/null +++ b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/ToolServiceImpl.java @@ -0,0 +1,46 @@ +package com.foreverwin.mesnac.production.service.impl; + +import com.foreverwin.modular.core.util.FrontPage; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.foreverwin.mesnac.production.model.Tool; +import com.foreverwin.mesnac.production.mapper.ToolMapper; +import com.foreverwin.mesnac.production.service.ToolService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +/** + *

+ * 工具表 服务实现类 + *

+ * + * @author pavel.liu + * @since 2021-07-14 + */ +@Service +@Transactional(rollbackFor = Exception.class) +public class ToolServiceImpl extends ServiceImpl implements ToolService { + + + @Autowired + private ToolMapper toolMapper; + + @Override + public IPage selectPage(FrontPage frontPage, Tool tool) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.setEntity(tool); + return super.page(frontPage.getPagePlus(), queryWrapper); + } + + @Override + public List selectList(Tool tool) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.setEntity(tool); + return super.list(queryWrapper); + } + + +} \ No newline at end of file diff --git a/production/src/main/resources/mapper/ToolMapper.xml b/production/src/main/resources/mapper/ToolMapper.xml new file mode 100644 index 00000000..741c6f85 --- /dev/null +++ b/production/src/main/resources/mapper/ToolMapper.xml @@ -0,0 +1,450 @@ + + + + + + + + + + + + + + + + + + + + + + + + HANDLE, SITE, TOOL, DESCRIPTION, STATUS, TOOL_TYPE, SPECIFICATION, BRAND, REMARK, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO Z_TOOL + + HANDLE, + SITE, + TOOL, + DESCRIPTION, + STATUS, + TOOL_TYPE, + SPECIFICATION, + BRAND, + REMARK, + CREATE_USER, + CREATED_DATE_TIME, + MODIFY_USER, + MODIFIED_DATE_TIME, + VALUES + + #{handle}, + #{site}, + #{tool}, + #{description}, + #{status}, + #{toolType}, + #{specification}, + #{brand}, + #{remark}, + #{createUser}, + #{createdDateTime}, + #{modifyUser}, + #{modifiedDateTime}, + + + + + INSERT INTO Z_TOOL + + + VALUES + + #{handle}, + #{site}, + #{tool}, + #{description}, + #{status}, + #{toolType}, + #{specification}, + #{brand}, + #{remark}, + #{createUser}, + #{createdDateTime}, + #{modifyUser}, + #{modifiedDateTime}, + + + + + + UPDATE Z_TOOL + SITE=#{et.site}, + TOOL=#{et.tool}, + DESCRIPTION=#{et.description}, + STATUS=#{et.status}, + TOOL_TYPE=#{et.toolType}, + SPECIFICATION=#{et.specification}, + BRAND=#{et.brand}, + REMARK=#{et.remark}, + CREATE_USER=#{et.createUser}, + CREATED_DATE_TIME=#{et.createdDateTime}, + MODIFY_USER=#{et.modifyUser}, + MODIFIED_DATE_TIME=#{et.modifiedDateTime}, + WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} + + + + + UPDATE Z_TOOL + SITE=#{et.site}, + TOOL=#{et.tool}, + DESCRIPTION=#{et.description}, + STATUS=#{et.status}, + TOOL_TYPE=#{et.toolType}, + SPECIFICATION=#{et.specification}, + BRAND=#{et.brand}, + REMARK=#{et.remark}, + CREATE_USER=#{et.createUser}, + CREATED_DATE_TIME=#{et.createdDateTime}, + MODIFY_USER=#{et.modifyUser}, + MODIFIED_DATE_TIME=#{et.modifiedDateTime}, + WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} + + + + + UPDATE Z_TOOL + SITE=#{et.site}, + TOOL=#{et.tool}, + DESCRIPTION=#{et.description}, + STATUS=#{et.status}, + TOOL_TYPE=#{et.toolType}, + SPECIFICATION=#{et.specification}, + BRAND=#{et.brand}, + REMARK=#{et.remark}, + CREATE_USER=#{et.createUser}, + CREATED_DATE_TIME=#{et.createdDateTime}, + MODIFY_USER=#{et.modifyUser}, + MODIFIED_DATE_TIME=#{et.modifiedDateTime}, + + + + + HANDLE=#{ew.entity.handle} + AND SITE=#{ew.entity.site} + AND TOOL=#{ew.entity.tool} + AND DESCRIPTION=#{ew.entity.description} + AND STATUS=#{ew.entity.status} + AND TOOL_TYPE=#{ew.entity.toolType} + AND SPECIFICATION=#{ew.entity.specification} + AND BRAND=#{ew.entity.brand} + AND REMARK=#{ew.entity.remark} + AND CREATE_USER=#{ew.entity.createUser} + AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} + AND MODIFY_USER=#{ew.entity.modifyUser} + AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + + + ${ew.sqlSegment} + + + + + ${ew.sqlSegment} + + + + + DELETE FROM Z_TOOL WHERE HANDLE=#{handle} + + + + DELETE FROM Z_TOOL + + + + + ${k} = #{cm[${k}]} + + + + + + + + DELETE FROM Z_TOOL + + + + + HANDLE=#{ew.entity.handle} + + AND SITE=#{ew.entity.site} + AND TOOL=#{ew.entity.tool} + AND DESCRIPTION=#{ew.entity.description} + AND STATUS=#{ew.entity.status} + AND TOOL_TYPE=#{ew.entity.toolType} + AND SPECIFICATION=#{ew.entity.specification} + AND BRAND=#{ew.entity.brand} + AND REMARK=#{ew.entity.remark} + AND CREATE_USER=#{ew.entity.createUser} + AND CREATED_DATE_TIME=#{ew.entity.createdDateTime} + AND MODIFY_USER=#{ew.entity.modifyUser} + AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + + + ${ew.sqlSegment} + + + + + ${ew.sqlSegment} + + + + + DELETE FROM Z_TOOL WHERE HANDLE IN ( + #{item} + ) + + + +