| | |
| | | @Operation(summary = "检测指标维护查询") |
| | | @Log(title = "检测指标维护查询", businessType = BusinessType.OTHER) |
| | | public R<?> list(Long testStandardId) { |
| | | return R.ok(qualityTestStandardParamService.list(Wrappers.<QualityTestStandardParam>lambdaQuery().eq(QualityTestStandardParam::getTestStandardId,testStandardId))); |
| | | return R.ok(qualityTestStandardParamService.list(Wrappers.<QualityTestStandardParam>lambdaQuery() |
| | | .eq(QualityTestStandardParam::getTestStandardId, testStandardId) |
| | | .orderByDesc(QualityTestStandardParam::getCreateTime))); |
| | | } |
| | | |
| | | } |
| | |
| | | <if test="c.inspectType != null "> |
| | | AND inspect_type =#{c.inspectType} |
| | | </if> |
| | | order by create_time desc |
| | | </select> |
| | | <select id="getQualityTestStandardByProductId" resultType="com.ruoyi.quality.pojo.QualityTestStandard"> |
| | | SELECT qts.* |
| | |
| | | END AS method |
| | | FROM quality_unqualified qu |
| | | LEFT JOIN product_model pm ON qu.model = pm.id |
| | | where |
| | | 1=1 |
| | | <where> |
| | | <if test="qualityUnqualified.inspectType != null "> |
| | | AND inspect_type = #{qualityUnqualified.inspectType} |
| | | </if> |
| | |
| | | <if test="qualityUnqualified.entryDateEnd != null and qualityUnqualified.entryDateEnd != '' "> |
| | | AND check_time <= DATE_FORMAT(#{qualityUnqualified.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | </where> |
| | | order by qu.create_time desc |
| | | </select> |
| | | <select id="qualityUnqualifiedExport" resultType="com.ruoyi.quality.pojo.QualityUnqualified"> |
| | | SELECT |
| | |
| | | <if test="documentationBorrowManagement.entryDateEnd != null and documentationBorrowManagement.entryDateEnd != ''"> |
| | | and borrow_date <= DATE_FORMAT(#{documentationBorrowManagement.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | order by dbm.create_time desc |
| | | </select> |
| | | <select id="export" resultType="com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto"> |
| | | select dbm.*,doc.doc_name |
| | |
| | | <if test="documentation.id != null"> |
| | | and doc.id = #{documentation.id} |
| | | </if> |
| | | order by doc.create_time desc |
| | | </select> |
| | | <select id="listByDocumentClassificationId" resultType="com.ruoyi.warehouse.dto.DocumentationDto"> |
| | | SELECT |
| | |
| | | <if test="documentationReturnManagement.entryDateEnd != null and documentationReturnManagement.entryDateEnd != ''"> |
| | | and return_date <= DATE_FORMAT(#{documentationReturnManagement.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | order by dbm.create_time desc |
| | | </select> |
| | | |
| | | <select id="exportrevent" resultType="com.ruoyi.warehouse.dto.ReturnExportDto"> |
| | |
| | | and wgsr.id = #{warehouseGoodsShelvesRowcol.id} |
| | | </if> |
| | | </where> |
| | | order by wgsr.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |