对比新文件 |
| | |
| | | <?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.yuanchu.limslaboratory.mapper.CnasSatisfactionSurveyMapper"> |
| | | |
| | | <select id="selectCnasSatisfactionSurvey" |
| | | resultType="CnasSatisfactionSurvey"> |
| | | SELECT |
| | | css.id id, |
| | | css.project_name projectName, |
| | | css.survey_date surveyDate, |
| | | css.user_unit userUnit, |
| | | css.`fill_name` fillName, |
| | | css.post post, |
| | | css.telephone telephone, |
| | | css.entry_date entryDate, |
| | | u.`name` userName, |
| | | css.service_attitude serviceAttitude, |
| | | css.technical_power technicalPower, |
| | | css.test_job testJob, |
| | | css.reasonable_charge reasonableCharge, |
| | | css.improvement_requirements improvementRequirements, |
| | | css.other_supplements otherSupplements |
| | | FROM |
| | | cnas_satisfaction_survey css, |
| | | `user` u |
| | | WHERE |
| | | 1 = 1 |
| | | AND css.user_id = u.id |
| | | and css.state=1 |
| | | <if test="surveyDate!=null"> |
| | | and date_format(css.survey_date,'%Y%m%d') = ${surveyDate} |
| | | </if> |
| | | <if test="entryDate!=null"> |
| | | and date_format(css.entry_date,'%Y%m%d') = ${entryDate} |
| | | </if> |
| | | order by css.id Desc |
| | | </select> |
| | | </mapper> |