| | |
| | | group by b.id) t |
| | | </select> |
| | | |
| | | <select id="selectHasValidProjUse" resultMap="SysProjUseMap"> |
| | | select * from sys_proj_use |
| | | where date_format(now(), '%Y-%m-%d') > date_format(FAIL_TIME, '%Y-%m-%d') and STATUS='有效' |
| | | </select> |
| | | <update id="updateInvalidProjUse" > |
| | | update sys_proj_use set STATUS='无效' |
| | | where date_format(now(), '%Y-%m-%d') > date_format(FAIL_TIME, '%Y-%m-%d') |
| | | and STATUS='有效' |
| | | </update> |
| | | |
| | | <resultMap type="SysProjUse" id="TaoCanWithProjMap"> |
| | | |
| | |
| | | <result property="timeLength" column="proj_time_length"/> |
| | | <result property="img" column="proj_img"/> |
| | | <result property="projId" column="proj_projId"/> |
| | | <result property="status" column="proj_status"/> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | |
| | | e.SURPLUS_COUNT proj_SURPLUS_COUNT, |
| | | e.id proj_info_id, |
| | | e.proj_id proj_projId, |
| | | e.status proj_status, |
| | | f.time_length proj_time_length, |
| | | f.img proj_img |
| | | from sys_proj_use a |