| | |
| | | left join t_site_type c on (a.siteTypeId = c.id) |
| | | where a.state = 1 |
| | | <if test="null != item.startTime and '' != item.startTime and null != item.endTime and '' != item.endTime"> |
| | | and CONCAT(DATE_FORMAT(now(), '%Y-%m-%d'), ' ', a.appointmentStartTime) <= CONCAT(DATE_FORMAT(now(), '%Y-%m-%d'), ' ', #{item.startTime}) and CONCAT(DATE_FORMAT(now(), '%Y-%m-%d'), ' ', a.appointmentEndTime) >= CONCAT(DATE_FORMAT(now(), '%Y-%m-%d'), ' ', #{item.endTime}) |
| | | and CONCAT(DATE_FORMAT(now(), '%Y-%m-%d'), ' ', a.appointmentStartTime) <= CONCAT(DATE_FORMAT(now(), |
| | | '%Y-%m-%d'), ' ', #{item.startTime}) and CONCAT(DATE_FORMAT(now(), '%Y-%m-%d'), ' ', a.appointmentEndTime) |
| | | >= CONCAT(DATE_FORMAT(now(), '%Y-%m-%d'), ' ', #{item.endTime}) |
| | | </if> |
| | | <if test="null != item.siteTypeId"> |
| | | and a.siteTypeId = #{item.siteTypeId} |
| | |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="queryMySite" resultType="com.dsh.other.model.QueryMySiteVo"> |
| | | select |
| | | a.id, |
| | |
| | | c.lon as storeLon, |
| | | c.lat as storeLat, |
| | | a.payMoney as payMoney, |
| | | a.payType as payType, |
| | | a.payType as payType, |
| | | a.isHalf as isHalf, |
| | | CONCAT(DATE_FORMAT(a.startTime, '%Y-%m-%d %H:%i'), '-', DATE_FORMAT(a.endTime, '%H:%i')) as appointment, |
| | | a.`status`, |
| | |
| | | where |
| | | t1.sign=0 |
| | | <if test="query.objectType == 2"> |
| | | and t1.cityManagerId = #{query.objectId} |
| | | and t1.cityManagerId = #{query.objectId} |
| | | </if> |
| | | <if test="query.objectType == 3"> |
| | | and t2.id = #{query.objectId} |
| | | and t2.id = #{query.objectId} |
| | | </if> |
| | | <if test="query.city!=null and query.city!= ''"> |
| | | and t1.city = #{query.city} |
| | | </if> |
| | | <if test="query.city!=null and query.city!= ''"> |
| | | and t1.city = #{query.city} |
| | | </if> |
| | | <if test="query.province!=null and query.province!= ''"> |
| | | and t1.province = #{query.province} |
| | | </if> |