添加序列号功能
This commit is contained in:
@@ -1,6 +1,36 @@
|
||||
<?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.jsh.erp.datasource.mappers.MaterialMapper">
|
||||
<mapper namespace="com.jsh.erp.datasource.mappers.MaterialMapperEx">
|
||||
<resultMap id="BaseResultMap" type="com.jsh.erp.datasource.entities.Material">
|
||||
<!--
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<id column="Id" jdbcType="BIGINT" property="id" />
|
||||
<result column="CategoryId" jdbcType="BIGINT" property="categoryid" />
|
||||
<result column="Name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="Mfrs" jdbcType="VARCHAR" property="mfrs" />
|
||||
<result column="Packing" jdbcType="DECIMAL" property="packing" />
|
||||
<result column="SafetyStock" jdbcType="DECIMAL" property="safetystock" />
|
||||
<result column="Model" jdbcType="VARCHAR" property="model" />
|
||||
<result column="Standard" jdbcType="VARCHAR" property="standard" />
|
||||
<result column="Color" jdbcType="VARCHAR" property="color" />
|
||||
<result column="Unit" jdbcType="VARCHAR" property="unit" />
|
||||
<result column="Remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="RetailPrice" jdbcType="DECIMAL" property="retailprice" />
|
||||
<result column="LowPrice" jdbcType="DECIMAL" property="lowprice" />
|
||||
<result column="PresetPriceOne" jdbcType="DECIMAL" property="presetpriceone" />
|
||||
<result column="PresetPriceTwo" jdbcType="DECIMAL" property="presetpricetwo" />
|
||||
<result column="UnitId" jdbcType="BIGINT" property="unitid" />
|
||||
<result column="FirstOutUnit" jdbcType="VARCHAR" property="firstoutunit" />
|
||||
<result column="FirstInUnit" jdbcType="VARCHAR" property="firstinunit" />
|
||||
<result column="PriceStrategy" jdbcType="VARCHAR" property="pricestrategy" />
|
||||
<result column="Enabled" jdbcType="BIT" property="enabled" />
|
||||
<result column="OtherField1" jdbcType="VARCHAR" property="otherfield1" />
|
||||
<result column="OtherField2" jdbcType="VARCHAR" property="otherfield2" />
|
||||
<result column="OtherField3" jdbcType="VARCHAR" property="otherfield3" />
|
||||
<result column="enableSerialNumber" jdbcType="BIT" property="enableSerialNumber" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapList" type="com.jsh.erp.datasource.entities.MaterialVo4Unit">
|
||||
<result column="unitName" jdbcType="VARCHAR" property="unitName" />
|
||||
<result column="categoryName" jdbcType="VARCHAR" property="categoryName" />
|
||||
@@ -95,4 +125,15 @@
|
||||
</if>
|
||||
order by m.id asc
|
||||
</select>
|
||||
<select id="findByMaterialName" resultType="com.jsh.erp.datasource.entities.Material">
|
||||
select m.*
|
||||
FROM jsh_material m
|
||||
where 1=1
|
||||
<if test="name != null">
|
||||
and m.name =#{name}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user