CyclecountAdjustDetailMapper.xml
1.15 KB
<?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.huaheng.pc.inventory.cyclecountAdjustDetail.mapper.CyclecountAdjustDetailMapper">
<select id="selectListByEqualMaterialName" resultType="com.huaheng.pc.inventory.cyclecountAdjustDetail.domain.CyclecountAdjustDetail">
SELECT ca.id, ca.cyclecountHeadId, ca.cyclecountHeadCode, ca.cyclecountDetailId,
ca.cyclecountAdjustId, ca.cyclecountAdjustCode, ca.companyId, ca.companyCode, ca.locationId,
ca.locationCode, ca.containerCode, ca.inventoryId, ca.materialId, ca.materialCode,
ca.materialSpecification, ca.receiptCode, ca.receiptId, ca.receiptDetailId, ca.batch, ca.lot, ca.project,
ca.manufactureDate, ca.expirationDate, ca.inventoryStatus, ca.fromSource, ca.systemQty, ca.countedQty,
ca.gapQty, ca.adjustQty, ca.created, ca.createdBy, ca.lastUpdated, ca.lastUpdatedBy, ca.status,
ca.userDef1, ma.name materialName
FROM cyclecount_adjustdetail ca
INNER JOIN material ma ON ca.materialCode = ma.code
where ca.cyclecountAdjustId = #{cyclecountAdjustId}
</select>
</mapper>