| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamThirdMaintenanceOrderDetailMapper"> |
| | | |
| | | <select id="selectCreatByAndTimeByOrderId" resultType="org.jeecg.modules.eam.vo.EamThirdMaintenanceBaseVo"> |
| | | SELECT DISTINCT |
| | | CASE |
| | | |
| | | WHEN |
| | | update_by IS NOT NULL |
| | | AND update_time IS NOT NULL THEN |
| | | update_by ELSE create_by |
| | | END AS operate_by, |
| | | CASE |
| | | |
| | | WHEN update_by IS NOT NULL |
| | | AND update_time IS NOT NULL THEN |
| | | FORMAT ( update_time, 'yyyy年MM月dd日' ) ELSE FORMAT ( create_time, 'yyyy年MM月dd日' ) |
| | | END AS operate_time |
| | | FROM |
| | | eam_third_maintenance_order_detail |
| | | WHERE |
| | | order_id = #{id} |
| | | </select> |
| | | |
| | | </mapper> |