工艺卡片查看,物流相关模块。
parent
1083002a16
commit
84663f802b
@ -0,0 +1,144 @@
|
||||
package com.foreverwin.mesnac.meapi.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.foreverwin.mesnac.meapi.dto.LogisticsDto;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
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.meapi.service.LogisticsTurnoverService;
|
||||
import com.foreverwin.mesnac.meapi.model.LogisticsTurnover;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YANG.WL
|
||||
* @since 2022-07-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/Z-LOGISTICS-TURNOVER")
|
||||
public class LogisticsTurnoverController {
|
||||
|
||||
@Autowired
|
||||
public LogisticsTurnoverService logisticsTurnoverService;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id 主键
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/{id:.+}")
|
||||
public R getLogisticsTurnoverById(@PathVariable String id) {
|
||||
return R.ok( logisticsTurnoverService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("")
|
||||
public R getLogisticsTurnoverList(LogisticsTurnover logisticsTurnover){
|
||||
List<LogisticsTurnover> result;
|
||||
QueryWrapper<LogisticsTurnover> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(logisticsTurnover);
|
||||
result = logisticsTurnoverService.list(queryWrapper);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/queryLogisticsTurnoverList")
|
||||
public String queryLogisticsTurnoverList(LogisticsDto logisticsDto){
|
||||
List<LogisticsDto> result;
|
||||
// QueryWrapper<LogisticsTurnover> queryWrapper = new QueryWrapper<>();
|
||||
// queryWrapper.setEntity(logisticsTurnover);
|
||||
result = logisticsTurnoverService.queryLogisticsTurnoverList(logisticsDto);
|
||||
return Optional.ofNullable(result)
|
||||
.map(t -> JSONObject.toJSONString(t)).orElse("null");
|
||||
}
|
||||
/**
|
||||
* 分页查询数据
|
||||
*
|
||||
* @param frontPage 分页信息
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/page")
|
||||
public R page(FrontPage<LogisticsTurnover> frontPage, LogisticsTurnover logisticsTurnover){
|
||||
IPage result;
|
||||
QueryWrapper<LogisticsTurnover> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(logisticsTurnover);
|
||||
if (frontPage.getGlobalQuery() != null && !"".equals(frontPage.getGlobalQuery().trim())) {
|
||||
//TODO modify global query
|
||||
queryWrapper.lambda().and(wrapper -> wrapper
|
||||
.like(LogisticsTurnover::getHandle, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getSfcDispatchBo, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getStatus, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getUser, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getUserName, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getOther1, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getOther2, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getOther3, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getStorageLocation, frontPage.getGlobalQuery())
|
||||
.or().like(LogisticsTurnover::getTurnoverWorkCenter, frontPage.getGlobalQuery())
|
||||
);
|
||||
}
|
||||
result = logisticsTurnoverService.page(frontPage.getPagePlus(), queryWrapper);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param logisticsTurnover 传递的实体
|
||||
* @return null 失败 实体成功
|
||||
*/
|
||||
@PostMapping
|
||||
public R save(@RequestBody LogisticsTurnover logisticsTurnover) {
|
||||
return R.ok(logisticsTurnoverService.save(logisticsTurnover));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param logisticsTurnover 传递的实体
|
||||
* @return null 失败 实体成功
|
||||
*/
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody LogisticsTurnover logisticsTurnover) {
|
||||
return R.ok(logisticsTurnoverService.updateById(logisticsTurnover));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id删除对象
|
||||
* @param id 实体ID
|
||||
* @return 0 失败 1 成功
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.DELETE, value = "/{id:.+}")
|
||||
public R removeById(@PathVariable("id") String id){
|
||||
return R.ok(logisticsTurnoverService.removeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除对象
|
||||
* @param ids 实体集合ID
|
||||
* @return 0 失败 1 成功
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(method = RequestMethod.POST, value = "/delete-batch")
|
||||
public R removeByIds(List<String> ids){
|
||||
return R.ok(logisticsTurnoverService.removeByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.foreverwin.mesnac.meapi.dto;
|
||||
|
||||
public class LogisticsDto {
|
||||
private String nextWorkCenter;
|
||||
private String sfc;
|
||||
private String workOrder;
|
||||
private String itemDescription;
|
||||
private String blankingSize;
|
||||
private String dispatchQty;
|
||||
private String overOperation;
|
||||
private String employeeDescription;
|
||||
private String nextOperation;
|
||||
|
||||
public String getNextWorkCenter() {
|
||||
return nextWorkCenter;
|
||||
}
|
||||
|
||||
public void setNextWorkCenter(String nextWorkCenter) {
|
||||
this.nextWorkCenter = nextWorkCenter;
|
||||
}
|
||||
|
||||
public String getSfc() {
|
||||
return sfc;
|
||||
}
|
||||
|
||||
public void setSfc(String sfc) {
|
||||
this.sfc = sfc;
|
||||
}
|
||||
|
||||
public String getWorkOrder() {
|
||||
return workOrder;
|
||||
}
|
||||
|
||||
public void setWorkOrder(String workOrder) {
|
||||
this.workOrder = workOrder;
|
||||
}
|
||||
|
||||
public String getItemDescription() {
|
||||
return itemDescription;
|
||||
}
|
||||
|
||||
public void setItemDescription(String itemDescription) {
|
||||
this.itemDescription = itemDescription;
|
||||
}
|
||||
|
||||
public String getBlankingSize() {
|
||||
return blankingSize;
|
||||
}
|
||||
|
||||
public void setBlankingSize(String blankingSize) {
|
||||
this.blankingSize = blankingSize;
|
||||
}
|
||||
|
||||
public String getDispatchQty() {
|
||||
return dispatchQty;
|
||||
}
|
||||
|
||||
public void setDispatchQty(String dispatchQty) {
|
||||
this.dispatchQty = dispatchQty;
|
||||
}
|
||||
|
||||
public String getOverOperation() {
|
||||
return overOperation;
|
||||
}
|
||||
|
||||
public void setOverOperation(String overOperation) {
|
||||
this.overOperation = overOperation;
|
||||
}
|
||||
|
||||
public String getEmployeeDescription() {
|
||||
return employeeDescription;
|
||||
}
|
||||
|
||||
public void setEmployeeDescription(String employeeDescription) {
|
||||
this.employeeDescription = employeeDescription;
|
||||
}
|
||||
|
||||
public String getNextOperation() {
|
||||
return nextOperation;
|
||||
}
|
||||
|
||||
public void setNextOperation(String nextOperation) {
|
||||
this.nextOperation = nextOperation;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "LogisticsDto{" +
|
||||
"nextWorkCenter='" + nextWorkCenter + '\'' +
|
||||
", sfc='" + sfc + '\'' +
|
||||
", workOrder='" + workOrder + '\'' +
|
||||
", itemDescription='" + itemDescription + '\'' +
|
||||
", blankingSize='" + blankingSize + '\'' +
|
||||
", dispatchQty='" + dispatchQty + '\'' +
|
||||
", overOperation='" + overOperation + '\'' +
|
||||
", employeeDescription='" + employeeDescription + '\'' +
|
||||
", nextOperation='" + nextOperation + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.foreverwin.mesnac.meapi.mapper;
|
||||
|
||||
import com.foreverwin.mesnac.meapi.dto.LogisticsDto;
|
||||
import com.foreverwin.mesnac.meapi.model.LogisticsTurnover;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author YANG.WL
|
||||
* @since 2022-07-27
|
||||
*/
|
||||
@Repository
|
||||
public interface LogisticsTurnoverMapper extends BaseMapper<LogisticsTurnover> {
|
||||
|
||||
List<LogisticsDto> queryLogisticsTurnoverList(LogisticsDto logisticsDto);
|
||||
}
|
@ -0,0 +1,208 @@
|
||||
package com.foreverwin.mesnac.meapi.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;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author YANG.WL
|
||||
* @since 2022-07-27
|
||||
*/
|
||||
|
||||
@TableName("Z_LOGISTICS_TURNOVER")
|
||||
|
||||
public class LogisticsTurnover extends Model<LogisticsTurnover> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 派工单主键
|
||||
*/
|
||||
@TableField("SFC_DISPATCH_BO")
|
||||
private String sfcDispatchBo;
|
||||
/**
|
||||
* 周转状态
|
||||
*/
|
||||
@TableField("STATUS")
|
||||
private String status;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private LocalDateTime createdDateTime;
|
||||
/**
|
||||
* 周转人员员工号
|
||||
*/
|
||||
@TableField("USER")
|
||||
private String user;
|
||||
/**
|
||||
* 周转人员名称
|
||||
*/
|
||||
@TableField("USER_NAME")
|
||||
private String userName;
|
||||
@TableField("OTHER1")
|
||||
private String other1;
|
||||
@TableField("OTHER2")
|
||||
private String other2;
|
||||
@TableField("OTHER3")
|
||||
private String other3;
|
||||
/**
|
||||
* 存放位置
|
||||
*/
|
||||
@TableField("STORAGE_LOCATION")
|
||||
private String storageLocation;
|
||||
/**
|
||||
* 转入车间
|
||||
*/
|
||||
@TableField("TURNOVER_WORK_CENTER")
|
||||
private String turnoverWorkCenter;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSfcDispatchBo() {
|
||||
return sfcDispatchBo;
|
||||
}
|
||||
|
||||
public void setSfcDispatchBo(String sfcDispatchBo) {
|
||||
this.sfcDispatchBo = sfcDispatchBo;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(LocalDateTime createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public String getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(String user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getOther1() {
|
||||
return other1;
|
||||
}
|
||||
|
||||
public void setOther1(String other1) {
|
||||
this.other1 = other1;
|
||||
}
|
||||
|
||||
public String getOther2() {
|
||||
return other2;
|
||||
}
|
||||
|
||||
public void setOther2(String other2) {
|
||||
this.other2 = other2;
|
||||
}
|
||||
|
||||
public String getOther3() {
|
||||
return other3;
|
||||
}
|
||||
|
||||
public void setOther3(String other3) {
|
||||
this.other3 = other3;
|
||||
}
|
||||
|
||||
public String getStorageLocation() {
|
||||
return storageLocation;
|
||||
}
|
||||
|
||||
public void setStorageLocation(String storageLocation) {
|
||||
this.storageLocation = storageLocation;
|
||||
}
|
||||
|
||||
public String getTurnoverWorkCenter() {
|
||||
return turnoverWorkCenter;
|
||||
}
|
||||
|
||||
public void setTurnoverWorkCenter(String turnoverWorkCenter) {
|
||||
this.turnoverWorkCenter = turnoverWorkCenter;
|
||||
}
|
||||
|
||||
public static final String HANDLE = "HANDLE";
|
||||
|
||||
public static final String SFC_DISPATCH_BO = "SFC_DISPATCH_BO";
|
||||
|
||||
public static final String STATUS = "STATUS";
|
||||
|
||||
public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";
|
||||
|
||||
public static final String USER = "USER";
|
||||
|
||||
public static final String USER_NAME = "USER_NAME";
|
||||
|
||||
public static final String OTHER1 = "OTHER1";
|
||||
|
||||
public static final String OTHER2 = "OTHER2";
|
||||
|
||||
public static final String OTHER3 = "OTHER3";
|
||||
|
||||
public static final String STORAGE_LOCATION = "STORAGE_LOCATION";
|
||||
|
||||
public static final String TURNOVER_WORK_CENTER = "TURNOVER_WORK_CENTER";
|
||||
|
||||
|
||||
@Override
|
||||
protected Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "LogisticsTurnover{" +
|
||||
"handle = " + handle +
|
||||
", sfcDispatchBo = " + sfcDispatchBo +
|
||||
", status = " + status +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", user = " + user +
|
||||
", userName = " + userName +
|
||||
", other1 = " + other1 +
|
||||
", other2 = " + other2 +
|
||||
", other3 = " + other3 +
|
||||
", storageLocation = " + storageLocation +
|
||||
", turnoverWorkCenter = " + turnoverWorkCenter +
|
||||
"}";
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.foreverwin.mesnac.meapi.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.foreverwin.mesnac.meapi.dto.LogisticsDto;
|
||||
import com.foreverwin.mesnac.meapi.model.LogisticsTurnover;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author YANG.WL
|
||||
* @since 2022-07-27
|
||||
*/
|
||||
public interface LogisticsTurnoverService extends IService<LogisticsTurnover> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param frontPage
|
||||
* @return
|
||||
*/
|
||||
IPage<LogisticsTurnover> selectPage(FrontPage<LogisticsTurnover> frontPage, LogisticsTurnover logisticsTurnover);
|
||||
|
||||
List<LogisticsTurnover> selectList(LogisticsTurnover logisticsTurnover);
|
||||
|
||||
List<LogisticsDto> queryLogisticsTurnoverList(LogisticsDto logisticsDto);
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.foreverwin.mesnac.meapi.service.impl;
|
||||
|
||||
import com.foreverwin.mesnac.meapi.dto.LogisticsDto;
|
||||
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.meapi.model.LogisticsTurnover;
|
||||
import com.foreverwin.mesnac.meapi.mapper.LogisticsTurnoverMapper;
|
||||
import com.foreverwin.mesnac.meapi.service.LogisticsTurnoverService;
|
||||
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;
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author YANG.WL
|
||||
* @since 2022-07-27
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class LogisticsTurnoverServiceImpl extends ServiceImpl<LogisticsTurnoverMapper, LogisticsTurnover> implements LogisticsTurnoverService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private LogisticsTurnoverMapper logisticsTurnoverMapper;
|
||||
|
||||
@Override
|
||||
public IPage<LogisticsTurnover> selectPage(FrontPage<LogisticsTurnover> frontPage, LogisticsTurnover logisticsTurnover) {
|
||||
QueryWrapper<LogisticsTurnover> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(logisticsTurnover);
|
||||
return super.page(frontPage.getPagePlus(), queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<LogisticsTurnover> selectList(LogisticsTurnover logisticsTurnover) {
|
||||
QueryWrapper<LogisticsTurnover> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(logisticsTurnover);
|
||||
return super.list(queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<LogisticsDto> queryLogisticsTurnoverList(LogisticsDto logisticsDto) {
|
||||
return logisticsTurnoverMapper.queryLogisticsTurnoverList(logisticsDto);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,456 @@
|
||||
<?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.foreverwin.mesnac.meapi.mapper.LogisticsTurnoverMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.foreverwin.mesnac.meapi.model.LogisticsTurnover">
|
||||
<id column="HANDLE" property="handle" />
|
||||
<result column="SFC_DISPATCH_BO" property="sfcDispatchBo" />
|
||||
<result column="STATUS" property="status" />
|
||||
<result column="CREATED_DATE_TIME" property="createdDateTime" />
|
||||
<result column="USER" property="user" />
|
||||
<result column="USER_NAME" property="userName" />
|
||||
<result column="OTHER1" property="other1" />
|
||||
<result column="OTHER2" property="other2" />
|
||||
<result column="OTHER3" property="other3" />
|
||||
<result column="STORAGE_LOCATION" property="storageLocation" />
|
||||
<result column="TURNOVER_WORK_CENTER" property="turnoverWorkCenter" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap id="FullResultMap" type="com.foreverwin.mesnac.meapi.dto.LogisticsDto">
|
||||
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
HANDLE, SFC_DISPATCH_BO, STATUS, CREATED_DATE_TIME, USER, USER_NAME, OTHER1, OTHER2, OTHER3, STORAGE_LOCATION, TURNOVER_WORK_CENTER
|
||||
</sql>
|
||||
|
||||
<!-- BaseMapper标准查询/修改/删除 -->
|
||||
<select id="selectById" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include> FROM Z_LOGISTICS_TURNOVER WHERE HANDLE=#{handle}
|
||||
</select>
|
||||
|
||||
<select id="selectByMap" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include>
|
||||
FROM Z_LOGISTICS_TURNOVER
|
||||
<if test="cm!=null and !cm.isEmpty">
|
||||
<where>
|
||||
<foreach collection="cm.keys" item="k" separator="AND">
|
||||
<if test="cm[k] != null">
|
||||
${k} = #{cm[${k}]}
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectBatchIds" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include>
|
||||
FROM Z_LOGISTICS_TURNOVER WHERE HANDLE IN (
|
||||
<foreach item="item" index="index" collection="coll" separator=",">#{item}
|
||||
</foreach>)
|
||||
</select>
|
||||
|
||||
<select id="selectOne" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"></include> FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCount" resultType="Integer">
|
||||
SELECT COUNT(1) FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectList" resultMap="BaseResultMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectMaps" resultType="HashMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectObjs" resultType="Object">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectPage" resultMap="BaseResultMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectMapsPage" resultType="HashMap">
|
||||
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</select>
|
||||
<select id="queryLogisticsTurnoverList" resultMap="FullResultMap">
|
||||
SELECT
|
||||
WCT.DESCRIPTION NEXT_WORK_CENTER,
|
||||
ZSD.SFC,
|
||||
C1.VALUE WORK_ORDER,
|
||||
IT.DESCRIPTION ITEM_DESCRIPTION,
|
||||
ZSD.BLANKING_SIZE,
|
||||
ZSD.DISPATCH_QTY,
|
||||
OT1.DESCRIPTION OVER_OPERATION,
|
||||
OT.DESCRIPTION NEXT_OPERATION,
|
||||
ZSD.EMPLOYEE_DESCRIPTION
|
||||
FROM
|
||||
Z_LOGISTICS_TURNOVER ZLT
|
||||
LEFT JOIN WORK_CENTER WC ON WC.WORK_CENTER = ZLT.TURNOVER_WORK_CENTER
|
||||
LEFT JOIN WORK_CENTER_T WCT ON WCT.WORK_CENTER_BO = WC.HANDLE
|
||||
LEFT JOIN Z_SFC_DISPATCH ZSD ON ZLT.SFC_DISPATCH_BO = ZSD.HANDLE
|
||||
LEFT JOIN OPERATION O1 ON O1.OPERATION = ZSD.OPERATION
|
||||
LEFT JOIN OPERATION_T OT1 ON OT1.OPERATION_BO = O1.HANDLE
|
||||
LEFT JOIN OPERATION O ON O.OPERATION = ZLT.OTHER1
|
||||
LEFT JOIN OPERATION_T OT ON OT.OPERATION_BO = O.HANDLE
|
||||
INNER JOIN SHOP_ORDER SO ON SO.SITE = ZSD.SITE
|
||||
AND SO.SHOP_ORDER = ZSD.SHOP_ORDER
|
||||
LEFT JOIN CUSTOM_FIELDS C1 ON C1.HANDLE = SO.HANDLE
|
||||
AND C1."ATTRIBUTE" = 'WORK_ORDER'
|
||||
INNER JOIN ITEM IM ON IM.HANDLE = SO.ITEM_BO
|
||||
LEFT JOIN ITEM_T IT ON IT.ITEM_BO = IM.HANDLE
|
||||
AND IT.LOCALE = 'zh'
|
||||
INNER JOIN OPERATION O ON O.SITE = ZSD.SITE
|
||||
AND O.OPERATION = ZSD.OPERATION
|
||||
AND O.CURRENT_REVISION = 'true'
|
||||
LEFT JOIN OPERATION_T OT ON OT.OPERATION_BO = O.HANDLE
|
||||
AND OT.LOCALE = 'zh'
|
||||
</select>
|
||||
|
||||
<insert id="insert" parameterType="com.foreverwin.mesnac.meapi.model.LogisticsTurnover">
|
||||
INSERT INTO Z_LOGISTICS_TURNOVER
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
HANDLE,
|
||||
<if test="sfcDispatchBo!=null">SFC_DISPATCH_BO,</if>
|
||||
<if test="status!=null">STATUS,</if>
|
||||
<if test="createdDateTime!=null">CREATED_DATE_TIME,</if>
|
||||
<if test="user!=null">USER,</if>
|
||||
<if test="userName!=null">USER_NAME,</if>
|
||||
<if test="other1!=null">OTHER1,</if>
|
||||
<if test="other2!=null">OTHER2,</if>
|
||||
<if test="other3!=null">OTHER3,</if>
|
||||
<if test="storageLocation!=null">STORAGE_LOCATION,</if>
|
||||
<if test="turnoverWorkCenter!=null">TURNOVER_WORK_CENTER,</if>
|
||||
</trim> VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
#{handle},
|
||||
<if test="sfcDispatchBo!=null">#{sfcDispatchBo},</if>
|
||||
<if test="status!=null">#{status},</if>
|
||||
<if test="createdDateTime!=null">#{createdDateTime},</if>
|
||||
<if test="user!=null">#{user},</if>
|
||||
<if test="userName!=null">#{userName},</if>
|
||||
<if test="other1!=null">#{other1},</if>
|
||||
<if test="other2!=null">#{other2},</if>
|
||||
<if test="other3!=null">#{other3},</if>
|
||||
<if test="storageLocation!=null">#{storageLocation},</if>
|
||||
<if test="turnoverWorkCenter!=null">#{turnoverWorkCenter},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertAllColumn" parameterType="com.foreverwin.mesnac.meapi.model.LogisticsTurnover">
|
||||
INSERT INTO Z_LOGISTICS_TURNOVER
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<include refid="Base_Column_List"></include>
|
||||
</trim> VALUES
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
#{handle},
|
||||
#{sfcDispatchBo},
|
||||
#{status},
|
||||
#{createdDateTime},
|
||||
#{user},
|
||||
#{userName},
|
||||
#{other1},
|
||||
#{other2},
|
||||
#{other3},
|
||||
#{storageLocation},
|
||||
#{turnoverWorkCenter},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<update id="updateById">
|
||||
UPDATE Z_LOGISTICS_TURNOVER <trim prefix="SET" suffixOverrides=",">
|
||||
<if test="et.sfcDispatchBo!=null">SFC_DISPATCH_BO=#{et.sfcDispatchBo},</if>
|
||||
<if test="et.status!=null">STATUS=#{et.status},</if>
|
||||
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
||||
<if test="et.user!=null">USER=#{et.user},</if>
|
||||
<if test="et.userName!=null">USER_NAME=#{et.userName},</if>
|
||||
<if test="et.other1!=null">OTHER1=#{et.other1},</if>
|
||||
<if test="et.other2!=null">OTHER2=#{et.other2},</if>
|
||||
<if test="et.other3!=null">OTHER3=#{et.other3},</if>
|
||||
<if test="et.storageLocation!=null">STORAGE_LOCATION=#{et.storageLocation},</if>
|
||||
<if test="et.turnoverWorkCenter!=null">TURNOVER_WORK_CENTER=#{et.turnoverWorkCenter},</if>
|
||||
</trim> WHERE HANDLE=#{et.handle} <if test="et instanceof java.util.Map"><if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if></if>
|
||||
</update>
|
||||
|
||||
|
||||
<update id="updateAllColumnById">
|
||||
UPDATE Z_LOGISTICS_TURNOVER <trim prefix="SET" suffixOverrides=",">
|
||||
SFC_DISPATCH_BO=#{et.sfcDispatchBo},
|
||||
STATUS=#{et.status},
|
||||
CREATED_DATE_TIME=#{et.createdDateTime},
|
||||
USER=#{et.user},
|
||||
USER_NAME=#{et.userName},
|
||||
OTHER1=#{et.other1},
|
||||
OTHER2=#{et.other2},
|
||||
OTHER3=#{et.other3},
|
||||
STORAGE_LOCATION=#{et.storageLocation},
|
||||
TURNOVER_WORK_CENTER=#{et.turnoverWorkCenter},
|
||||
</trim> WHERE HANDLE=#{et.handle} <if test="et instanceof java.util.Map"><if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if></if>
|
||||
</update>
|
||||
|
||||
|
||||
<update id="update">
|
||||
UPDATE Z_LOGISTICS_TURNOVER <trim prefix="SET" suffixOverrides=",">
|
||||
<if test="et.sfcDispatchBo!=null">SFC_DISPATCH_BO=#{et.sfcDispatchBo},</if>
|
||||
<if test="et.status!=null">STATUS=#{et.status},</if>
|
||||
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
||||
<if test="et.user!=null">USER=#{et.user},</if>
|
||||
<if test="et.userName!=null">USER_NAME=#{et.userName},</if>
|
||||
<if test="et.other1!=null">OTHER1=#{et.other1},</if>
|
||||
<if test="et.other2!=null">OTHER2=#{et.other2},</if>
|
||||
<if test="et.other3!=null">OTHER3=#{et.other3},</if>
|
||||
<if test="et.storageLocation!=null">STORAGE_LOCATION=#{et.storageLocation},</if>
|
||||
<if test="et.turnoverWorkCenter!=null">TURNOVER_WORK_CENTER=#{et.turnoverWorkCenter},</if>
|
||||
</trim>
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</update>
|
||||
|
||||
<delete id="deleteById">
|
||||
DELETE FROM Z_LOGISTICS_TURNOVER WHERE HANDLE=#{handle}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByMap">
|
||||
DELETE FROM Z_LOGISTICS_TURNOVER
|
||||
<if test="cm!=null and !cm.isEmpty">
|
||||
<where>
|
||||
<foreach collection="cm.keys" item="k" separator="AND">
|
||||
<if test="cm[k] != null">
|
||||
${k} = #{cm[${k}]}
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
<delete id="delete">
|
||||
DELETE FROM Z_LOGISTICS_TURNOVER
|
||||
<where>
|
||||
<if test="ew!=null">
|
||||
<if test="ew.entity!=null">
|
||||
<if test="ew.entity.handle!=null">
|
||||
HANDLE=#{ew.entity.handle}
|
||||
</if>
|
||||
<if test="ew.entity.sfcDispatchBo!=null"> AND SFC_DISPATCH_BO=#{ew.entity.sfcDispatchBo}</if>
|
||||
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
||||
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
||||
<if test="ew.entity.user!=null"> AND USER=#{ew.entity.user}</if>
|
||||
<if test="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
|
||||
<if test="ew.entity.other1!=null"> AND OTHER1=#{ew.entity.other1}</if>
|
||||
<if test="ew.entity.other2!=null"> AND OTHER2=#{ew.entity.other2}</if>
|
||||
<if test="ew.entity.other3!=null"> AND OTHER3=#{ew.entity.other3}</if>
|
||||
<if test="ew.entity.storageLocation!=null"> AND STORAGE_LOCATION=#{ew.entity.storageLocation}</if>
|
||||
<if test="ew.entity.turnoverWorkCenter!=null"> AND TURNOVER_WORK_CENTER=#{ew.entity.turnoverWorkCenter}</if>
|
||||
</if>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
|
||||
${ew.sqlSegment}
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBatchIds">
|
||||
DELETE FROM Z_LOGISTICS_TURNOVER WHERE HANDLE IN (
|
||||
<foreach item="item" index="index" collection="coll" separator=",">#{item}
|
||||
</foreach>)
|
||||
</delete>
|
||||
<!-- BaseMapper标准查询/修改/删除 -->
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue