| | |
| | | and inspection_status = 1 |
| | | and DATE_FORMAT(end_time, '%Y-%m') = #{monthofYear} |
| | | </select> |
| | | <select id="getInspectionMaterials" resultType="java.util.Map"> |
| | | |
| | | </select> |
| | | <select id="selectImAndUserName" resultType="java.util.Map"> |
| | | SELECT |
| | | im.`code`, |
| | | im.`name`, |
| | | i.`code` iCode, |
| | | i.create_time iCreateTime, |
| | | im.specifications_id specificationsId, |
| | | im.specifications specifications, |
| | | u.`name` uName |
| | | FROM |
| | | inspection i, |
| | | inspection_material im, |
| | | `user` u |
| | | WHERE |
| | | i.id = im.inspection_id |
| | | AND i.user_id=u.id |
| | | AND i.id=#{id} |
| | | </select> |
| | | </mapper> |