| | |
| | | private String inspectMaterialCondition; |
| | | |
| | | /** |
| | | * 检验用粉剂/液情况 产品ID |
| | | */ |
| | | private Long inspectMaterialConditionId; |
| | | |
| | | /** |
| | | * 检验用粉剂/液规格型号IDa |
| | | */ |
| | | private Long inspectProductModelId; |
| | | |
| | | /** |
| | | * 有效期(计算字段:生产日期+有效期) |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | |
| | | <select id="selectOneData" resultType="com.ruoyi.quality.pojo.QualityInspect"> |
| | | select *, |
| | | case |
| | | when inspect_material_condition = '检验用液剂情况' then |
| | | '☐' |
| | | else |
| | | when inspect_material_condition = '检验用粉剂' then |
| | | '☑' |
| | | else |
| | | '☐' |
| | | end as inspect_material_condition_a, |
| | | case |
| | | when inspect_material_condition = '检验用粉剂情况' then |
| | | '☐' |
| | | else |
| | | when inspect_material_condition = '检验用液剂' then |
| | | '☑' |
| | | else |
| | | '☐' |
| | | end as inspect_material_condition_b |
| | | from quality_inspect |
| | | where id = #{id}; |