| | |
| | | <insert id="insertAndUpdate"> |
| | | insert ignore into t_su_material_warehouse_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="nameOfOrigin != null"> |
| | | name_of_origin, |
| | | </if> |
| | | <if test="tableNum != null"> |
| | | table_num, |
| | | </if> |
| | |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="nameOfOrigin != null"> |
| | | #{nameOfOrigin,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="tableNum != null"> |
| | | #{tableNum,jdbcType=INTEGER}, |
| | | </if> |
| | |
| | | </trim> |
| | | on duplicate key update |
| | | <trim suffixOverrides=","> |
| | | <if test="nameOfOrigin != null"> |
| | | name_of_origin = #{nameOfOrigin,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="tableNum != null"> |
| | | table_num = #{tableNum,jdbcType=INTEGER}, |
| | | </if> |
| | |
| | | <select id="selectPageList" resultType="com.thhy.materials.modules.biz.suMaterialWarehouse.entity.SuMaterialWarehouseEntity"> |
| | | SELECT |
| | | t.id AS id, |
| | | t.name_of_origin AS nameOfOrigin, |
| | | t.table_num AS tableNum, |
| | | sd.dict_name AS materialName, |
| | | t.incoming_quantity AS incomingQuantity, |
| | |
| | | LEFT JOIN sys_users su1 on su1.user_id = t.update_user |
| | | LEFT JOIN sys_dict sd on sd.dict_id = t.material_name |
| | | where t.is_use = 1 and t.company_id = #{companyId} |
| | | order by |
| | | order by t.create_time desc |
| | | </select> |
| | | |
| | | <select id="selectInfo" resultType="com.thhy.materials.modules.biz.suMaterialWarehouse.entity.SuMaterialWarehouseEntity"> |
| | | SELECT |
| | | |
| | | t.id AS id, |
| | | t.name_of_origin AS nameOfOrigin, |
| | | t.table_num AS tableNum, |
| | | sd.dict_name AS materialName, |
| | | t.incoming_quantity AS incomingQuantity, |
| | |
| | | |
| | | t.id AS id, |
| | | t.table_num AS tableNum, |
| | | t.name_of_origin AS nameOfOrigin, |
| | | sd.dict_name AS materialName, |
| | | t.incoming_quantity AS incomingQuantity, |
| | | t.create_time AS createTime, |