| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="purchaseApplyServiceDaoImpl"> |
| | | <resultMap type="com.java110.dto.purchaseApply.PurchaseApplyDto" id="applyMap"> |
| | | <resultMap type="com.java110.dto.purchase.PurchaseApplyDto" id="applyMap"> |
| | | <id column="applyOrderId" property="applyOrderId"/> |
| | | <result column="description" property="description"/> |
| | | <result column="resOrderType" property="resOrderType"/> |
| | |
| | | <!-- 保存采购明细表--> |
| | | <insert id="savePurchaseApplyDetailInfo" parameterType="List"> |
| | | insert into purchase_apply_detail |
| | | (id,rs_id,apply_order_id,res_id,quantity,remark,b_id,operate,status_cd,price,purchase_quantity,purchase_remark,original_stock,times_id) |
| | | (id,rs_id,apply_order_id,res_id,quantity,remark,b_id,operate,status_cd,price,purchase_quantity,purchase_remark,original_stock,times_id,consult_price) |
| | | values |
| | | <foreach collection="list" item="item" index="index" separator=","> |
| | | ( |
| | |
| | | #{item.purchaseQuantity}, |
| | | #{item.purchaseRemark}, |
| | | #{item.originalStock}, |
| | | #{item.timesId} |
| | | #{item.timesId}, |
| | | #{item.consultPrice} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | |
| | | p.id, |
| | | p.apply_order_id applyOrderId, |
| | | p.res_id resId,p.quantity,p.remark,p.purchase_quantity purchaseQuantity,p.purchase_remark purchaseRemark,p.price |
| | | purchasePrice,p.original_stock originalStock, |
| | | purchasePrice,p.original_stock originalStock,p.consult_price consultPrice,p.times_id timesId, |
| | | r.res_name resName,r.res_code resCode, |
| | | r.price,r.price standardPrice,rstime.stock,rst.name rstName,rst1.name parentRstName,rss.spec_name specName,rs.supplier_name supplierName, |
| | | td1.name unitCodeName, |