整改
This commit is contained in:
parent
17dde9a6a7
commit
9c66f27d3c
@ -11,52 +11,4 @@ import com.shgx.moldmanagement.domain.MoldInfo;
|
||||
* @author ruoyi
|
||||
* @date 2025-09-25
|
||||
*/
|
||||
public interface MoldInfoMapper extends BaseMapper<MoldInfo>
|
||||
{
|
||||
/**
|
||||
* 查询模具基本信息
|
||||
*
|
||||
* @param moldId 模具基本信息主键
|
||||
* @return 模具基本信息
|
||||
*/
|
||||
public MoldInfo selectMoldInfoByMoldId(Long moldId);
|
||||
|
||||
/**
|
||||
* 查询模具基本信息列表
|
||||
*
|
||||
* @return 模具基本信息集合
|
||||
*/
|
||||
public List<MoldInfo> selectMoldInfoList(MoldInfo moldInfo);
|
||||
|
||||
/**
|
||||
* 新增模具基本信息
|
||||
*
|
||||
* @param moldInfo 模具基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMoldInfo(MoldInfo moldInfo);
|
||||
|
||||
/**
|
||||
* 修改模具基本信息
|
||||
*
|
||||
* @param moldInfo 模具基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMoldInfo(MoldInfo moldInfo);
|
||||
|
||||
/**
|
||||
* 删除模具基本信息
|
||||
*
|
||||
* @param moldId 模具基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoldInfoByMoldId(Long moldId);
|
||||
|
||||
/**
|
||||
* 批量删除模具基本信息
|
||||
*
|
||||
* @param moldIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMoldInfoByMoldIds(Long[] moldIds);
|
||||
}
|
||||
public interface MoldInfoMapper extends BaseMapper<MoldInfo> { }
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.shgx.moldmanagement.service.impl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
@ -47,7 +48,7 @@ public class MoldInfoServiceImpl implements IMoldInfoService
|
||||
@Override
|
||||
public MoldInfo selectMoldInfoByMoldId(Long moldId)
|
||||
{
|
||||
return moldInfoMapper.selectMoldInfoByMoldId(moldId);
|
||||
return moldInfoMapper.selectById(moldId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -59,7 +60,8 @@ public class MoldInfoServiceImpl implements IMoldInfoService
|
||||
@Override
|
||||
public List<MoldInfo> selectMoldInfoList(MoldInfo moldInfo)
|
||||
{
|
||||
return moldInfoMapper.selectMoldInfoList(moldInfo);
|
||||
LambdaQueryWrapper<MoldInfo> queryWrapper = new LambdaQueryWrapper<>(moldInfo);
|
||||
return moldInfoMapper.selectList(queryWrapper.orderByDesc(MoldInfo::getCreateTime));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,9 +73,9 @@ public class MoldInfoServiceImpl implements IMoldInfoService
|
||||
@Override
|
||||
public int insertMoldInfo(MoldInfo moldInfo)
|
||||
{
|
||||
moldInfo.setCreateBy(SecurityUtils.getUsername());
|
||||
moldInfo.setCreateTime(DateUtils.getNowDate());
|
||||
moldInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return moldInfoMapper.insertMoldInfo(moldInfo);
|
||||
return moldInfoMapper.insert(moldInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -85,8 +87,9 @@ public class MoldInfoServiceImpl implements IMoldInfoService
|
||||
@Override
|
||||
public int updateMoldInfo(MoldInfo moldInfo)
|
||||
{
|
||||
moldInfo.setUpdateBy(SecurityUtils.getUsername());
|
||||
moldInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return moldInfoMapper.updateMoldInfo(moldInfo);
|
||||
return moldInfoMapper.updateById(moldInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -98,7 +101,8 @@ public class MoldInfoServiceImpl implements IMoldInfoService
|
||||
@Override
|
||||
public int deleteMoldInfoByMoldIds(Long[] moldIds)
|
||||
{
|
||||
return moldInfoMapper.deleteMoldInfoByMoldIds(moldIds);
|
||||
List<Long> idList = Arrays.asList(moldIds);
|
||||
return moldInfoMapper.deleteByIds(idList);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -110,7 +114,7 @@ public class MoldInfoServiceImpl implements IMoldInfoService
|
||||
@Override
|
||||
public int deleteMoldInfoByMoldId(Long moldId)
|
||||
{
|
||||
return moldInfoMapper.deleteMoldInfoByMoldId(moldId);
|
||||
return moldInfoMapper.deleteById(moldId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
package com.shgx.moldmanagement.service.impl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.shgx.common.utils.DateUtils;
|
||||
import com.shgx.common.utils.SecurityUtils;
|
||||
import com.shgx.moldmanagement.domain.MoldInventoryChangeLog;
|
||||
import com.shgx.moldmanagement.mapper.MoldInventoryChangeLogMapper;
|
||||
import com.shgx.moldmanagement.mapper.MoldWarehouseLocationLiveMapper;
|
||||
@ -19,6 +22,7 @@ import org.springframework.stereotype.Service;
|
||||
*/
|
||||
@Service
|
||||
public class MoldInventoryChangeLogServiceImpl implements IMoldInventoryChangeLogService {
|
||||
|
||||
@Autowired
|
||||
private MoldInventoryChangeLogMapper moldInventoryChangeLogMapper;
|
||||
|
||||
@ -33,7 +37,7 @@ public class MoldInventoryChangeLogServiceImpl implements IMoldInventoryChangeLo
|
||||
*/
|
||||
@Override
|
||||
public MoldInventoryChangeLog selectMoldInventoryChangeLogByChangeId(Long changeId) {
|
||||
return moldInventoryChangeLogMapper.selectMoldInventoryChangeLogByChangeId(changeId);
|
||||
return moldInventoryChangeLogMapper.selectById(changeId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -44,7 +48,8 @@ public class MoldInventoryChangeLogServiceImpl implements IMoldInventoryChangeLo
|
||||
*/
|
||||
@Override
|
||||
public List<MoldInventoryChangeLog> selectMoldInventoryChangeLogList(MoldInventoryChangeLog moldInventoryChangeLog) {
|
||||
return moldInventoryChangeLogMapper.selectMoldInventoryChangeLogList(moldInventoryChangeLog);
|
||||
LambdaQueryWrapper<MoldInventoryChangeLog> queryWrapper = new LambdaQueryWrapper<>(moldInventoryChangeLog);
|
||||
return moldInventoryChangeLogMapper.selectList(queryWrapper.orderByDesc(MoldInventoryChangeLog::getCreateTime));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -55,8 +60,9 @@ public class MoldInventoryChangeLogServiceImpl implements IMoldInventoryChangeLo
|
||||
*/
|
||||
@Override
|
||||
public int insertMoldInventoryChangeLog(MoldInventoryChangeLog moldInventoryChangeLog) {
|
||||
moldInventoryChangeLog.setCreateBy(SecurityUtils.getUsername());
|
||||
moldInventoryChangeLog.setCreateTime(DateUtils.getNowDate());
|
||||
return moldInventoryChangeLogMapper.insertMoldInventoryChangeLog(moldInventoryChangeLog);
|
||||
return moldInventoryChangeLogMapper.insert(moldInventoryChangeLog);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,8 +73,9 @@ public class MoldInventoryChangeLogServiceImpl implements IMoldInventoryChangeLo
|
||||
*/
|
||||
@Override
|
||||
public int updateMoldInventoryChangeLog(MoldInventoryChangeLog moldInventoryChangeLog) {
|
||||
moldInventoryChangeLog.setUpdateBy(SecurityUtils.getUsername());
|
||||
moldInventoryChangeLog.setUpdateTime(DateUtils.getNowDate());
|
||||
return moldInventoryChangeLogMapper.updateMoldInventoryChangeLog(moldInventoryChangeLog);
|
||||
return moldInventoryChangeLogMapper.updateById(moldInventoryChangeLog);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,7 +86,8 @@ public class MoldInventoryChangeLogServiceImpl implements IMoldInventoryChangeLo
|
||||
*/
|
||||
@Override
|
||||
public int deleteMoldInventoryChangeLogByChangeIds(Long[] changeIds) {
|
||||
return moldInventoryChangeLogMapper.deleteMoldInventoryChangeLogByChangeIds(changeIds);
|
||||
List<Long> idList = Arrays.asList(changeIds);
|
||||
return moldInventoryChangeLogMapper.deleteByIds(idList);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -90,7 +98,7 @@ public class MoldInventoryChangeLogServiceImpl implements IMoldInventoryChangeLo
|
||||
*/
|
||||
@Override
|
||||
public int deleteMoldInventoryChangeLogByChangeId(Long changeId) {
|
||||
return moldInventoryChangeLogMapper.deleteMoldInventoryChangeLogByChangeId(changeId);
|
||||
return moldInventoryChangeLogMapper.deleteById(changeId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
package com.shgx.moldmanagement.service.impl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.shgx.common.utils.DateUtils;
|
||||
import com.shgx.common.utils.SecurityUtils;
|
||||
import com.shgx.moldmanagement.domain.MoldStatusLog;
|
||||
import com.shgx.moldmanagement.mapper.MoldStatusLogMapper;
|
||||
import com.shgx.moldmanagement.service.IMoldStatusLogService;
|
||||
@ -30,7 +34,7 @@ public class MoldStatusLogServiceImpl implements IMoldStatusLogService
|
||||
@Override
|
||||
public MoldStatusLog selectMoldStatusLogById(Long id)
|
||||
{
|
||||
return moldStatusLogMapper.selectMoldStatusLogById(id);
|
||||
return moldStatusLogMapper.selectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -42,7 +46,8 @@ public class MoldStatusLogServiceImpl implements IMoldStatusLogService
|
||||
@Override
|
||||
public List<MoldStatusLog> selectMoldStatusLogList(MoldStatusLog moldStatusLog)
|
||||
{
|
||||
return moldStatusLogMapper.selectMoldStatusLogList(moldStatusLog);
|
||||
LambdaQueryWrapper<MoldStatusLog> queryWrapper = new LambdaQueryWrapper<>(moldStatusLog);
|
||||
return moldStatusLogMapper.selectList(queryWrapper.orderByDesc(MoldStatusLog::getCreateTime));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -54,7 +59,9 @@ public class MoldStatusLogServiceImpl implements IMoldStatusLogService
|
||||
@Override
|
||||
public int insertMoldStatusLog(MoldStatusLog moldStatusLog)
|
||||
{
|
||||
return moldStatusLogMapper.insertMoldStatusLog(moldStatusLog);
|
||||
moldStatusLog.setCreateBy(SecurityUtils.getUsername());
|
||||
moldStatusLog.setCreateTime(DateUtils.getNowDate());
|
||||
return moldStatusLogMapper.insert(moldStatusLog);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -66,7 +73,9 @@ public class MoldStatusLogServiceImpl implements IMoldStatusLogService
|
||||
@Override
|
||||
public int updateMoldStatusLog(MoldStatusLog moldStatusLog)
|
||||
{
|
||||
return moldStatusLogMapper.updateMoldStatusLog(moldStatusLog);
|
||||
moldStatusLog.setUpdateBy(SecurityUtils.getUsername());
|
||||
moldStatusLog.setUpdateTime(DateUtils.getNowDate());
|
||||
return moldStatusLogMapper.updateById(moldStatusLog);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -78,7 +87,8 @@ public class MoldStatusLogServiceImpl implements IMoldStatusLogService
|
||||
@Override
|
||||
public int deleteMoldStatusLogByIds(Long[] ids)
|
||||
{
|
||||
return moldStatusLogMapper.deleteMoldStatusLogByIds(ids);
|
||||
List<Long> idList = Arrays.asList(ids);
|
||||
return moldStatusLogMapper.deleteByIds(idList);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -90,7 +100,7 @@ public class MoldStatusLogServiceImpl implements IMoldStatusLogService
|
||||
@Override
|
||||
public int deleteMoldStatusLogById(Long id)
|
||||
{
|
||||
return moldStatusLogMapper.deleteMoldStatusLogById(id);
|
||||
return moldStatusLogMapper.deleteById(id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.shgx.common.utils.DateUtils;
|
||||
import com.shgx.common.utils.SecurityUtils;
|
||||
import com.shgx.moldmanagement.domain.MoldWarehouseLocationLive;
|
||||
import com.shgx.moldmanagement.domain.dto.MoldQueryDto;
|
||||
import com.shgx.moldmanagement.mapper.MoldWarehouseLocationLiveMapper;
|
||||
@ -34,7 +35,7 @@ public class MoldWarehouseLocationLiveServiceImpl implements IMoldWarehouseLocat
|
||||
@Override
|
||||
public MoldWarehouseLocationLive selectMoldWarehouseLocationLiveById(Long id)
|
||||
{
|
||||
return moldWarehouseLocationLiveMapper.selectMoldWarehouseLocationLiveById(id);
|
||||
return moldWarehouseLocationLiveMapper.selectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -46,7 +47,8 @@ public class MoldWarehouseLocationLiveServiceImpl implements IMoldWarehouseLocat
|
||||
@Override
|
||||
public List<MoldWarehouseLocationLive> selectMoldWarehouseLocationLiveList(MoldWarehouseLocationLive moldWarehouseLocationLive)
|
||||
{
|
||||
return moldWarehouseLocationLiveMapper.selectMoldWarehouseLocationLiveList(moldWarehouseLocationLive);
|
||||
LambdaQueryWrapper<MoldWarehouseLocationLive> queryWrapper = new LambdaQueryWrapper<>(moldWarehouseLocationLive);
|
||||
return moldWarehouseLocationLiveMapper.selectList(queryWrapper.orderByDesc(MoldWarehouseLocationLive::getCreateTime));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -58,8 +60,9 @@ public class MoldWarehouseLocationLiveServiceImpl implements IMoldWarehouseLocat
|
||||
@Override
|
||||
public int insertMoldWarehouseLocationLive(MoldWarehouseLocationLive moldWarehouseLocationLive)
|
||||
{
|
||||
moldWarehouseLocationLive.setCreateBy(SecurityUtils.getUsername());
|
||||
moldWarehouseLocationLive.setCreateTime(DateUtils.getNowDate());
|
||||
return moldWarehouseLocationLiveMapper.insertMoldWarehouseLocationLive(moldWarehouseLocationLive);
|
||||
return moldWarehouseLocationLiveMapper.insert(moldWarehouseLocationLive);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,8 +74,9 @@ public class MoldWarehouseLocationLiveServiceImpl implements IMoldWarehouseLocat
|
||||
@Override
|
||||
public int updateMoldWarehouseLocationLive(MoldWarehouseLocationLive moldWarehouseLocationLive)
|
||||
{
|
||||
moldWarehouseLocationLive.setUpdateBy(SecurityUtils.getUsername());
|
||||
moldWarehouseLocationLive.setUpdateTime(DateUtils.getNowDate());
|
||||
return moldWarehouseLocationLiveMapper.updateMoldWarehouseLocationLive(moldWarehouseLocationLive);
|
||||
return moldWarehouseLocationLiveMapper.updateById(moldWarehouseLocationLive);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -84,7 +88,8 @@ public class MoldWarehouseLocationLiveServiceImpl implements IMoldWarehouseLocat
|
||||
@Override
|
||||
public int deleteMoldWarehouseLocationLiveByIds(Long[] ids)
|
||||
{
|
||||
return moldWarehouseLocationLiveMapper.deleteByIds(Arrays.asList(ids));
|
||||
List<Long> idList = Arrays.asList(ids);
|
||||
return moldWarehouseLocationLiveMapper.deleteByIds(idList);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -96,7 +101,7 @@ public class MoldWarehouseLocationLiveServiceImpl implements IMoldWarehouseLocat
|
||||
@Override
|
||||
public int deleteMoldWarehouseLocationLiveById(Long id)
|
||||
{
|
||||
return moldWarehouseLocationLiveMapper.deleteMoldWarehouseLocationLiveById(id);
|
||||
return moldWarehouseLocationLiveMapper.deleteById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
package com.shgx.moldmanagement.service.impl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.shgx.common.utils.DateUtils;
|
||||
import com.shgx.common.utils.SecurityUtils;
|
||||
import com.shgx.moldmanagement.domain.MoldWarehouseLocation;
|
||||
import com.shgx.moldmanagement.mapper.MoldWarehouseLocationMapper;
|
||||
import com.shgx.moldmanagement.service.IMoldWarehouseLocationService;
|
||||
@ -30,7 +33,7 @@ public class MoldWarehouseLocationServiceImpl implements IMoldWarehouseLocationS
|
||||
@Override
|
||||
public MoldWarehouseLocation selectMoldWarehouseLocationByLocationId(Long locationId)
|
||||
{
|
||||
return moldWarehouseLocationMapper.selectMoldWarehouseLocationByLocationId(locationId);
|
||||
return moldWarehouseLocationMapper.selectById(locationId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -42,7 +45,8 @@ public class MoldWarehouseLocationServiceImpl implements IMoldWarehouseLocationS
|
||||
@Override
|
||||
public List<MoldWarehouseLocation> selectMoldWarehouseLocationList(MoldWarehouseLocation moldWarehouseLocation)
|
||||
{
|
||||
return moldWarehouseLocationMapper.selectMoldWarehouseLocationList(moldWarehouseLocation);
|
||||
LambdaQueryWrapper<MoldWarehouseLocation> queryWrapper = new LambdaQueryWrapper<>(moldWarehouseLocation);
|
||||
return moldWarehouseLocationMapper.selectList(queryWrapper.orderByDesc(MoldWarehouseLocation::getCreateTime));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -54,8 +58,9 @@ public class MoldWarehouseLocationServiceImpl implements IMoldWarehouseLocationS
|
||||
@Override
|
||||
public int insertMoldWarehouseLocation(MoldWarehouseLocation moldWarehouseLocation)
|
||||
{
|
||||
moldWarehouseLocation.setCreateBy(SecurityUtils.getUsername());
|
||||
moldWarehouseLocation.setCreateTime(DateUtils.getNowDate());
|
||||
return moldWarehouseLocationMapper.insertMoldWarehouseLocation(moldWarehouseLocation);
|
||||
return moldWarehouseLocationMapper.insert(moldWarehouseLocation);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -67,8 +72,9 @@ public class MoldWarehouseLocationServiceImpl implements IMoldWarehouseLocationS
|
||||
@Override
|
||||
public int updateMoldWarehouseLocation(MoldWarehouseLocation moldWarehouseLocation)
|
||||
{
|
||||
moldWarehouseLocation.setUpdateBy(SecurityUtils.getUsername());
|
||||
moldWarehouseLocation.setUpdateTime(DateUtils.getNowDate());
|
||||
return moldWarehouseLocationMapper.updateMoldWarehouseLocation(moldWarehouseLocation);
|
||||
return moldWarehouseLocationMapper.updateById(moldWarehouseLocation);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -80,7 +86,8 @@ public class MoldWarehouseLocationServiceImpl implements IMoldWarehouseLocationS
|
||||
@Override
|
||||
public int deleteMoldWarehouseLocationByLocationIds(Long[] locationIds)
|
||||
{
|
||||
return moldWarehouseLocationMapper.deleteMoldWarehouseLocationByLocationIds(locationIds);
|
||||
List<Long> idList = Arrays.asList(locationIds);
|
||||
return moldWarehouseLocationMapper.deleteByIds(idList);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -92,6 +99,6 @@ public class MoldWarehouseLocationServiceImpl implements IMoldWarehouseLocationS
|
||||
@Override
|
||||
public int deleteMoldWarehouseLocationByLocationId(Long locationId)
|
||||
{
|
||||
return moldWarehouseLocationMapper.deleteMoldWarehouseLocationByLocationId(locationId);
|
||||
return moldWarehouseLocationMapper.deleteById(locationId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,132 +0,0 @@
|
||||
<?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.shgx.moldmanagement.mapper.MoldInfoMapper">
|
||||
|
||||
<resultMap type="MoldInfo" id="MoldInfoResult">
|
||||
<result property="moldId" column="mold_id" />
|
||||
<result property="moldCode" column="mold_code" />
|
||||
<result property="moldName" column="mold_name" />
|
||||
<result property="productCode" column="product_code" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="specification" column="specification" />
|
||||
<result property="material" column="material" />
|
||||
<result property="designLife" column="design_life" />
|
||||
<result property="useLife" column="use_life" />
|
||||
<result property="moldType" column="mold_type" />
|
||||
<result property="manufacturer" column="manufacturer" />
|
||||
<result property="productionDate" column="production_date" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMoldInfoVo">
|
||||
select mold_id, mold_code, mold_name, product_code, product_name, specification, material, design_life, use_life, mold_type, manufacturer, production_date, status, create_by, create_time, update_by, update_time, remark from mold_info
|
||||
</sql>
|
||||
|
||||
<select id="selectMoldInfoList" parameterType="MoldInfo" resultMap="MoldInfoResult">
|
||||
<include refid="selectMoldInfoVo"/>
|
||||
<where>
|
||||
<if test="moldCode != null and moldCode != ''"> and mold_code = #{moldCode}</if>
|
||||
<if test="moldName != null and moldName != ''"> and mold_name like concat('%', #{moldName}, '%')</if>
|
||||
<if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="specification != null and specification != ''"> and specification = #{specification}</if>
|
||||
<if test="material != null and material != ''"> and material = #{material}</if>
|
||||
<if test="designLife != null "> and design_life = #{designLife}</if>
|
||||
<if test="useLife != null "> and use_life = #{useLife}</if>
|
||||
<if test="moldType != null and moldType != ''"> and mold_type = #{moldType}</if>
|
||||
<if test="manufacturer != null and manufacturer != ''"> and manufacturer = #{manufacturer}</if>
|
||||
<if test="productionDate != null "> and production_date = #{productionDate}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMoldInfoByMoldId" parameterType="Long" resultMap="MoldInfoResult">
|
||||
<include refid="selectMoldInfoVo"/>
|
||||
where mold_id = #{moldId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMoldInfo" parameterType="MoldInfo" useGeneratedKeys="true" keyProperty="moldId">
|
||||
insert into mold_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="moldCode != null and moldCode != ''">mold_code,</if>
|
||||
<if test="moldName != null and moldName != ''">mold_name,</if>
|
||||
<if test="productCode != null">product_code,</if>
|
||||
<if test="productName != null">product_name,</if>
|
||||
<if test="specification != null">specification,</if>
|
||||
<if test="material != null">material,</if>
|
||||
<if test="designLife != null">design_life,</if>
|
||||
<if test="useLife != null">use_life,</if>
|
||||
<if test="moldType != null">mold_type,</if>
|
||||
<if test="manufacturer != null">manufacturer,</if>
|
||||
<if test="productionDate != null">production_date,</if>
|
||||
<if test="status != null and status != ''">status,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="moldCode != null and moldCode != ''">#{moldCode},</if>
|
||||
<if test="moldName != null and moldName != ''">#{moldName},</if>
|
||||
<if test="productCode != null">#{productCode},</if>
|
||||
<if test="productName != null">#{productName},</if>
|
||||
<if test="specification != null">#{specification},</if>
|
||||
<if test="material != null">#{material},</if>
|
||||
<if test="designLife != null">#{designLife},</if>
|
||||
<if test="useLife != null">#{useLife},</if>
|
||||
<if test="moldType != null">#{moldType},</if>
|
||||
<if test="manufacturer != null">#{manufacturer},</if>
|
||||
<if test="productionDate != null">#{productionDate},</if>
|
||||
<if test="status != null and status != ''">#{status},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMoldInfo" parameterType="MoldInfo">
|
||||
update mold_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="moldCode != null and moldCode != ''">mold_code = #{moldCode},</if>
|
||||
<if test="moldName != null and moldName != ''">mold_name = #{moldName},</if>
|
||||
<if test="productCode != null">product_code = #{productCode},</if>
|
||||
<if test="productName != null">product_name = #{productName},</if>
|
||||
<if test="specification != null">specification = #{specification},</if>
|
||||
<if test="material != null">material = #{material},</if>
|
||||
<if test="designLife != null">design_life = #{designLife},</if>
|
||||
<if test="useLife != null">use_life = #{useLife},</if>
|
||||
<if test="moldType != null">mold_type = #{moldType},</if>
|
||||
<if test="manufacturer != null">manufacturer = #{manufacturer},</if>
|
||||
<if test="productionDate != null">production_date = #{productionDate},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where mold_id = #{moldId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMoldInfoByMoldId" parameterType="Long">
|
||||
delete from mold_info where mold_id = #{moldId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMoldInfoByMoldIds" parameterType="String">
|
||||
delete from mold_info where mold_id in
|
||||
<foreach item="moldId" collection="array" open="(" separator="," close=")">
|
||||
#{moldId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -1,102 +0,0 @@
|
||||
<?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.shgx.moldmanagement.mapper.MoldInventoryChangeLogMapper">
|
||||
|
||||
<resultMap type="MoldInventoryChangeLog" id="MoldInventoryChangeLogResult">
|
||||
<result property="changeId" column="change_id" />
|
||||
<result property="injectionMachineCode" column="injection_machine_code" />
|
||||
<result property="moldCode" column="mold_code" />
|
||||
<result property="changeType" column="change_type" />
|
||||
<result property="changeTime" column="change_time" />
|
||||
<result property="fromLocation" column="from_location" />
|
||||
<result property="toLocation" column="to_location" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMoldInventoryChangeLogVo">
|
||||
select change_id, injection_machine_code, mold_code, change_type, change_time, from_location, to_location, create_by, create_time, update_by, update_time, remark from mold_inventory_change_log
|
||||
</sql>
|
||||
|
||||
<select id="selectMoldInventoryChangeLogList" parameterType="MoldInventoryChangeLog" resultMap="MoldInventoryChangeLogResult">
|
||||
<include refid="selectMoldInventoryChangeLogVo"/>
|
||||
<where>
|
||||
<if test="injectionMachineCode != null and injectionMachineCode != ''"> and injection_machine_code = #{injectionMachineCode}</if>
|
||||
<if test="moldCode != null and moldCode != ''"> and mold_code = #{moldCode}</if>
|
||||
<if test="changeType != null and changeType != ''"> and change_type = #{changeType}</if>
|
||||
<if test="changeTime != null "> and change_time = #{changeTime}</if>
|
||||
<if test="fromLocation != null and fromLocation != ''"> and from_location = #{fromLocation}</if>
|
||||
<if test="toLocation != null and toLocation != ''"> and to_location = #{toLocation}</if>
|
||||
</where>
|
||||
ORDER BY change_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMoldInventoryChangeLogByChangeId" parameterType="Long" resultMap="MoldInventoryChangeLogResult">
|
||||
<include refid="selectMoldInventoryChangeLogVo"/>
|
||||
where change_id = #{changeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMoldInventoryChangeLog" parameterType="MoldInventoryChangeLog" useGeneratedKeys="true" keyProperty="changeId">
|
||||
insert into mold_inventory_change_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="injectionMachineCode != null">injection_machine_code,</if>
|
||||
<if test="moldCode != null and moldCode != ''">mold_code,</if>
|
||||
<if test="changeType != null and changeType != ''">change_type,</if>
|
||||
<if test="changeTime != null">change_time,</if>
|
||||
<if test="fromLocation != null">from_location,</if>
|
||||
<if test="toLocation != null">to_location,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="injectionMachineCode != null">#{injectionMachineCode},</if>
|
||||
<if test="moldCode != null and moldCode != ''">#{moldCode},</if>
|
||||
<if test="changeType != null and changeType != ''">#{changeType},</if>
|
||||
<if test="changeTime != null">#{changeTime},</if>
|
||||
<if test="fromLocation != null">#{fromLocation},</if>
|
||||
<if test="toLocation != null">#{toLocation},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMoldInventoryChangeLog" parameterType="MoldInventoryChangeLog">
|
||||
update mold_inventory_change_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="injectionMachineCode != null">injection_machine_code = #{injectionMachineCode},</if>
|
||||
<if test="moldCode != null and moldCode != ''">mold_code = #{moldCode},</if>
|
||||
<if test="changeType != null and changeType != ''">change_type = #{changeType},</if>
|
||||
<if test="changeTime != null">change_time = #{changeTime},</if>
|
||||
<if test="fromLocation != null">from_location = #{fromLocation},</if>
|
||||
<if test="toLocation != null">to_location = #{toLocation},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where change_id = #{changeId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMoldInventoryChangeLogByChangeId" parameterType="Long">
|
||||
delete from mold_inventory_change_log where change_id = #{changeId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMoldInventoryChangeLogByChangeIds" parameterType="String">
|
||||
delete from mold_inventory_change_log where change_id in
|
||||
<foreach item="changeId" collection="array" open="(" separator="," close=")">
|
||||
#{changeId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -1,73 +0,0 @@
|
||||
<?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.shgx.moldmanagement.mapper.MoldStatusLogMapper">
|
||||
|
||||
<resultMap type="MoldStatusLog" id="MoldStatusLogResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="moldCode" column="mold_code" />
|
||||
<result property="status" column="status" />
|
||||
<result property="changeTime" column="change_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMoldStatusLogVo">
|
||||
select id, mold_code, status, change_time, remark from mold_status_log
|
||||
</sql>
|
||||
|
||||
<select id="selectMoldStatusLogList" parameterType="MoldStatusLog" resultMap="MoldStatusLogResult">
|
||||
<include refid="selectMoldStatusLogVo"/>
|
||||
<where>
|
||||
<if test="moldCode != null and moldCode != ''"> and mold_code = #{moldCode}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="changeTime != null "> and change_time = #{changeTime}</if>
|
||||
</where>
|
||||
ORDER BY change_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMoldStatusLogById" parameterType="Long" resultMap="MoldStatusLogResult">
|
||||
<include refid="selectMoldStatusLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMoldStatusLog" parameterType="MoldStatusLog">
|
||||
insert into mold_status_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="moldCode != null and moldCode != ''">mold_code,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="changeTime != null">change_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="moldCode != null and moldCode != ''">#{moldCode},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="changeTime != null">#{changeTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMoldStatusLog" parameterType="MoldStatusLog">
|
||||
update mold_status_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="moldCode != null and moldCode != ''">mold_code = #{moldCode},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="changeTime != null">change_time = #{changeTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMoldStatusLogById" parameterType="Long">
|
||||
delete from mold_status_log where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMoldStatusLogByIds" parameterType="String">
|
||||
delete from mold_status_log where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -1,99 +0,0 @@
|
||||
<?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.shgx.moldmanagement.mapper.MoldWarehouseLocationLiveMapper">
|
||||
|
||||
<resultMap type="MoldWarehouseLocationLive" id="MoldWarehouseLocationLiveResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="moldCode" column="mold_code" />
|
||||
<result property="moldName" column="mold_name" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="positionCode" column="position_code" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMoldWarehouseLocationLiveVo">
|
||||
select id, mold_code, mold_name, warehouse_code, position_code, status, create_by, create_time, update_by, update_time, remark from mold_warehouse_location_live
|
||||
</sql>
|
||||
|
||||
<select id="selectMoldWarehouseLocationLiveList" parameterType="MoldWarehouseLocationLive" resultMap="MoldWarehouseLocationLiveResult">
|
||||
<include refid="selectMoldWarehouseLocationLiveVo"/>
|
||||
<where>
|
||||
<if test="moldCode != null and moldCode != ''"> and mold_code = #{moldCode}</if>
|
||||
<if test="moldName != null and moldName != ''"> and mold_name like concat('%', #{moldName}, '%')</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''"> and warehouse_code = #{warehouseCode}</if>
|
||||
<if test="positionCode != null and positionCode != ''"> and position_code = #{positionCode}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMoldWarehouseLocationLiveById" parameterType="Long" resultMap="MoldWarehouseLocationLiveResult">
|
||||
<include refid="selectMoldWarehouseLocationLiveVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMoldWarehouseLocationLive" parameterType="MoldWarehouseLocationLive">
|
||||
insert into mold_warehouse_location_live
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="moldCode != null">mold_code,</if>
|
||||
<if test="moldName != null and moldName != ''">mold_name,</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">warehouse_code,</if>
|
||||
<if test="positionCode != null">position_code,</if>
|
||||
<if test="status != null and status != ''">status,</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>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="moldCode != null">#{moldCode},</if>
|
||||
<if test="moldName != null and moldName != ''">#{moldName},</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">#{warehouseCode},</if>
|
||||
<if test="positionCode != null">#{positionCode},</if>
|
||||
<if test="status != null and status != ''">#{status},</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>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMoldWarehouseLocationLive" parameterType="MoldWarehouseLocationLive">
|
||||
update mold_warehouse_location_live
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="moldCode != null">mold_code = #{moldCode},</if>
|
||||
<if test="moldName != null and moldName != ''">mold_name = #{moldName},</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">warehouse_code = #{warehouseCode},</if>
|
||||
<if test="positionCode != null">position_code = #{positionCode},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMoldWarehouseLocationLiveById" parameterType="Long">
|
||||
delete from mold_warehouse_location_live where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMoldWarehouseLocationLiveByIds" parameterType="String">
|
||||
delete from mold_warehouse_location_live where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -1,98 +0,0 @@
|
||||
<?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.shgx.moldmanagement.mapper.MoldWarehouseLocationMapper">
|
||||
|
||||
<resultMap type="MoldWarehouseLocation" id="MoldWarehouseLocationResult">
|
||||
<result property="locationId" column="location_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="shelfLayer" column="shelf_layer" />
|
||||
<result property="positionCode" column="position_code" />
|
||||
<result property="locationStatus" column="location_status" />
|
||||
<result property="capacity" column="capacity" />
|
||||
<result property="currentQuantity" column="current_quantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMoldWarehouseLocationVo">
|
||||
select location_id, warehouse_code, shelf_layer, position_code, location_status, capacity, current_quantity, create_time, update_by, update_time, remark from mold_warehouse_location
|
||||
</sql>
|
||||
|
||||
<select id="selectMoldWarehouseLocationList" parameterType="MoldWarehouseLocation" resultMap="MoldWarehouseLocationResult">
|
||||
<include refid="selectMoldWarehouseLocationVo"/>
|
||||
<where>
|
||||
<if test="warehouseCode != null and warehouseCode != ''"> and warehouse_code = #{warehouseCode}</if>
|
||||
<if test="shelfLayer != null and shelfLayer != ''"> and shelf_layer = #{shelfLayer}</if>
|
||||
<if test="positionCode != null and positionCode != ''"> and position_code = #{positionCode}</if>
|
||||
<if test="locationStatus != null and locationStatus != ''"> and location_status = #{locationStatus}</if>
|
||||
<if test="capacity != null "> and capacity = #{capacity}</if>
|
||||
<if test="currentQuantity != null "> and current_quantity = #{currentQuantity}</if>
|
||||
</where>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMoldWarehouseLocationByLocationId" parameterType="Long" resultMap="MoldWarehouseLocationResult">
|
||||
<include refid="selectMoldWarehouseLocationVo"/>
|
||||
where location_id = #{locationId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMoldWarehouseLocation" parameterType="MoldWarehouseLocation" useGeneratedKeys="true" keyProperty="locationId">
|
||||
insert into mold_warehouse_location
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="warehouseCode != null and warehouseCode != ''">warehouse_code,</if>
|
||||
<if test="shelfLayer != null">shelf_layer,</if>
|
||||
<if test="positionCode != null and positionCode != ''">position_code,</if>
|
||||
<if test="locationStatus != null">location_status,</if>
|
||||
<if test="capacity != null">capacity,</if>
|
||||
<if test="currentQuantity != null">current_quantity,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="warehouseCode != null and warehouseCode != ''">#{warehouseCode},</if>
|
||||
<if test="shelfLayer != null">#{shelfLayer},</if>
|
||||
<if test="positionCode != null and positionCode != ''">#{positionCode},</if>
|
||||
<if test="locationStatus != null">#{locationStatus},</if>
|
||||
<if test="capacity != null">#{capacity},</if>
|
||||
<if test="currentQuantity != null">#{currentQuantity},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMoldWarehouseLocation" parameterType="MoldWarehouseLocation">
|
||||
update mold_warehouse_location
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="warehouseCode != null and warehouseCode != ''">warehouse_code = #{warehouseCode},</if>
|
||||
<if test="shelfLayer != null">shelf_layer = #{shelfLayer},</if>
|
||||
<if test="positionCode != null and positionCode != ''">position_code = #{positionCode},</if>
|
||||
<if test="locationStatus != null">location_status = #{locationStatus},</if>
|
||||
<if test="capacity != null">capacity = #{capacity},</if>
|
||||
<if test="currentQuantity != null">current_quantity = #{currentQuantity},</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>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where location_id = #{locationId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMoldWarehouseLocationByLocationId" parameterType="Long">
|
||||
delete from mold_warehouse_location where location_id = #{locationId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMoldWarehouseLocationByLocationIds" parameterType="String">
|
||||
delete from mold_warehouse_location where location_id in
|
||||
<foreach item="locationId" collection="array" open="(" separator="," close=")">
|
||||
#{locationId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
x
Reference in New Issue
Block a user