1.提交建垛规则相关实体类
parent
b0fee6307d
commit
338bdf041a
@ -0,0 +1,19 @@
|
||||
package com.glxp.udi.admin.dao.basic;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.glxp.udi.admin.entity.basic.StockRulesEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 建垛规则表数据接口
|
||||
*/
|
||||
@Mapper
|
||||
public interface StockRulesDao extends BaseMapper<StockRulesEntity> {
|
||||
|
||||
/**
|
||||
* 自定义更新建垛规则
|
||||
*
|
||||
* @param stockRulesEntity
|
||||
*/
|
||||
void updateStockRules(StockRulesEntity stockRulesEntity);
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
<?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.glxp.udi.admin.dao.basic.StockRulesDao">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.udi.admin.entity.basic.StockRulesEntity">
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId"/>
|
||||
<result column="prefix" jdbcType="VARCHAR" property="prefix"/>
|
||||
<result column="startNum" jdbcType="VARCHAR" property="serialNum"/>
|
||||
<result column="step" jdbcType="INTEGER" property="step"/>
|
||||
<result column="serialNum" jdbcType="INTEGER" property="serialNum"/>
|
||||
<result column="stauts" jdbcType="BOOLEAN" property="stauts"/>
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,
|
||||
`name`,
|
||||
customerId,
|
||||
`prefix`,
|
||||
startNum,
|
||||
step,
|
||||
serialNum,
|
||||
stauts,
|
||||
createTime,
|
||||
updateTime,
|
||||
remark
|
||||
</sql>
|
||||
|
||||
<update id="updateStockRules">
|
||||
update stock_rules
|
||||
set name = #{name},
|
||||
customerId = #{customerId},
|
||||
prefix = #{prefix},
|
||||
startNum = #{startNum},
|
||||
step = #{step},
|
||||
serialNum = #{serialNum},
|
||||
`status` = #{status},
|
||||
createTime = #{createTime},
|
||||
updateTime = #{updateTime},
|
||||
remark = #{remark}
|
||||
where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue