|
@@ -2,45 +2,56 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.xingxi.web.controller.master.product.mapper.ProdVoMapper">
|
|
<mapper namespace="com.xingxi.web.controller.master.product.mapper.ProdVoMapper">
|
|
|
<resultMap type="ProdVo" id="ProdResult">
|
|
<resultMap type="ProdVo" id="ProdResult">
|
|
|
- <result property="id" column="id" />
|
|
|
|
|
- <result property="prodClassId" column="prodClassId" />
|
|
|
|
|
- <result property="prodName" column="prodName" />
|
|
|
|
|
- <result property="ipId" column="ipId" />
|
|
|
|
|
- <result property="designerId" column="designerId" />
|
|
|
|
|
- <result property="description" column="description" />
|
|
|
|
|
- <result property="prodStatus" column="prodStatus" />
|
|
|
|
|
- <result property="thirdIdConfirmFlag" column="thirdIdConfirmFlag" />
|
|
|
|
|
- <result property="delFlag" column="delFlag" />
|
|
|
|
|
- <result property="createUser" column="createUser" />
|
|
|
|
|
- <result property="createTime" column="createTime" />
|
|
|
|
|
- <result property="updateUser" column="updateUser" />
|
|
|
|
|
- <result property="updateTime" column="updateTime" />
|
|
|
|
|
- <result property="prodClass" column="updateTime" />
|
|
|
|
|
- <result property="prodName" column="updateTime" />
|
|
|
|
|
- <result property="ipName" column="updateTime" />
|
|
|
|
|
- <result property="designerName" column="updateTime" />
|
|
|
|
|
- <result property="prodDesc" column="updateTime" />
|
|
|
|
|
|
|
+ <result property="id" column="id" />
|
|
|
|
|
+ <result property="prodClassId" column="prodClassId" />
|
|
|
|
|
+ <result property="prodName" column="prodName" />
|
|
|
|
|
+ <result property="ipId" column="ipId" />
|
|
|
|
|
+ <result property="designerId" column="designerId" />
|
|
|
|
|
+ <result property="description" column="description" />
|
|
|
|
|
+ <result property="prodStatus" column="prodStatus" />
|
|
|
|
|
+ <result property="thirdIdConfirmFlag" column="thirdIdConfirmFlag" />
|
|
|
|
|
+ <result property="delFlag" column="delFlag" />
|
|
|
|
|
+ <result property="createUser" column="createUser" />
|
|
|
|
|
+ <result property="createTime" column="createTime" />
|
|
|
|
|
+ <result property="updateUser" column="updateUser" />
|
|
|
|
|
+ <result property="updateTime" column="updateTime" />
|
|
|
|
|
+ <result property="prodClass" column="prodClass" />
|
|
|
|
|
+ <result property="ipName" column="ipName" />
|
|
|
|
|
+ <result property="designerName" column="designerName" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectProdVo">
|
|
<sql id="selectProdVo">
|
|
|
- select id, prodClassId, prodName, ipId, designerId, description, prodStatus, thirdIdConfirmFlag, delFlag, createUser, createTime, updateUser, updateTime from m_prod
|
|
|
|
|
|
|
+ select id
|
|
|
|
|
+ , m_prod.prodClassId
|
|
|
|
|
+ , m_prod.prodName
|
|
|
|
|
+ , m_prod.ipId
|
|
|
|
|
+ , m_prod.designerId
|
|
|
|
|
+ , m_prod.description
|
|
|
|
|
+ , m_prod.prodStatus
|
|
|
|
|
+ , m_prod.thirdIdConfirmFlag
|
|
|
|
|
+ , m_prod_class.className
|
|
|
|
|
+ , m_designer.designerName
|
|
|
|
|
+ , m_ipinfo.ipName
|
|
|
|
|
+ from m_prod
|
|
|
|
|
+ inner join m_prod_class on m_prod.prodClassId = m_prod_class.prodClassId
|
|
|
|
|
+ inner join m_designer on m_prod.designerId = m_designer.id
|
|
|
|
|
+ inner join m_ipinfo on m_prod.ipId = m_ipinfo.ipId
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectProdVoList" parameterType="ProdVo" resultMap="ProdResult">
|
|
<select id="selectProdVoList" parameterType="ProdVo" resultMap="ProdResult">
|
|
|
<include refid="selectProdVo"/>
|
|
<include refid="selectProdVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="prodClassId != null "> and prodClassId = #{prodClassId}</if>
|
|
|
|
|
- <if test="prodName != null and prodName != ''"> and prodName like concat('%', #{prodName}, '%')</if>
|
|
|
|
|
|
|
+ <if test="prodClassId != null "> and m_prod.prodClassId = #{prodClassId}</if>
|
|
|
|
|
+ <if test="prodName != null and prodName != ''"> and m_prod.prodName like concat('%', #{prodName}, '%')</if>
|
|
|
<if test="ipId != null "> and ipId = #{ipId}</if>
|
|
<if test="ipId != null "> and ipId = #{ipId}</if>
|
|
|
- <if test="designerId != null "> and designerId = #{designerId}</if>
|
|
|
|
|
- <if test="description != null and description != ''"> and description = #{description}</if>
|
|
|
|
|
- <if test="prodStatus != null and prodStatus != ''"> and prodStatus = #{prodStatus}</if>
|
|
|
|
|
- <if test="thirdIdConfirmFlag != null and thirdIdConfirmFlag != ''"> and thirdIdConfirmFlag = #{thirdIdConfirmFlag}</if>
|
|
|
|
|
- <if test="delFlag != null and delFlag != ''"> and delFlag = #{delFlag}</if>
|
|
|
|
|
- <if test="createUser != null and createUser != ''"> and createUser = #{createUser}</if>
|
|
|
|
|
- <if test="createTime != null "> and createTime = #{createTime}</if>
|
|
|
|
|
- <if test="updateUser != null and updateUser != ''"> and updateUser = #{updateUser}</if>
|
|
|
|
|
- <if test="updateTime != null "> and updateTime = #{updateTime}</if>
|
|
|
|
|
|
|
+ <if test="designerId != null "> and m_prod.designerId = #{designerId}</if>
|
|
|
|
|
+ <if test="description != null and description != ''"> and m_prod.description = #{description}</if>
|
|
|
|
|
+ <if test="prodStatus != null and prodStatus != ''"> and m_prod.prodStatus = #{prodStatus}</if>
|
|
|
|
|
+ <if test="thirdIdConfirmFlag != null and thirdIdConfirmFlag != ''"> and m_prod.thirdIdConfirmFlag = #{thirdIdConfirmFlag}</if>
|
|
|
|
|
+ <if test="delFlag != null and delFlag != ''"> and m_prod.delFlag = #{delFlag}</if>
|
|
|
|
|
+ <if test="className != null and className != ''"> and m_prod_class.className like concat('%', #{className}, '%')</if>
|
|
|
|
|
+ <if test="designerName != null and designerName != ''"> and m_designer.designerName like concat('%', #{designerName}, '%')</if>
|
|
|
|
|
+ <if test="ipName != null and ipName != ''"> and m_ipinfo.ipName like concat('%', #{ipName}, '%')</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|