1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| <?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.doumee.dao.business.CateParamSelectMapper">
| <insert id="insertBatch" >
| INSERT INTO `cate_param_select`
| (`CREATOR`, `CREATE_DATE`, `EDITOR`, `EDIT_DATE`, `ISDELETED`, `REMARK`, `NAME`, `PARAM_ID`, `CATEGORY_ID`,
| `STATUS`, `SORTNUM`)
| select DISTINCT #{userId} , now(),null , null , 0 , null , TRIM(REPLACE(a.val,' ','')), a.PRAMA_ID , b.CATEGORY_ID , 0 , null from goods_param a inner join goods b on a.GOODS_ID = b.ID
| and a.PRAMA_ID is not null AND a.VAL is not null
| and a.ISDELETED = 0
| and a.`STATUS` = 0
| and b.`STATUS` = 0
| and b.ISDELETED = 0
| AND b.company_id = #{companyId}
| </insert>
|
| </mapper>
|
|