| | |
| | | |
| | | <insert id="insertBaths"> |
| | | INSERT INTO `project_document` |
| | | (`company_id`, `catalogue_id`, `item_id`, `file_name`, `file_path` ) |
| | | (`company_id`, `catalogue_id`, `item_id`, `file_name`, `file_path`,document_type ) |
| | | VALUES |
| | | <foreach collection="projectDocuments" separator="," item="item"> |
| | | ( #{item.companyId}, #{item.catalogueId}, #{item.itemId}, #{item.fileName}, #{item.filePath} ) |
| | | ( #{item.companyId}, #{item.catalogueId}, #{item.itemId}, #{item.fileName}, #{item.filePath}, #{item.documentType} ) |
| | | </foreach> |
| | | |
| | | </insert> |
| | |
| | | `item_id`, |
| | | `file_name`, |
| | | `file_path`, |
| | | `del_flag` |
| | | `del_flag`, |
| | | `document_type` |
| | | FROM |
| | | `project_document` |
| | | where del_flag = 1 |
| | | and company_id = #{companyId} |
| | | and catalogue_id = #{catalogueId} |
| | | and item_id = #{itemId} |
| | | and document_type = #{documentType} |
| | | </select> |
| | | </mapper> |