zjh
2024-01-24 aa33bb96ba9f14b16c6c7832e21bfbd88983ba6d
ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjOrderMapper.java
@@ -5,6 +5,7 @@
import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltkj.hosp.domain.TjCustomer;
import com.ltkj.hosp.domain.TjOrder;
import com.ltkj.hosp.vodomain.LineChartsVo;
import org.apache.ibatis.annotations.Mapper;
@@ -175,4 +176,26 @@
    @Select("SELECT * FROM tj_order WHERE  deleted='0' and  user_id = #{userId}  AND !ISNULL(finish_time) " +
            "and !ISNULL(confirm_time) ")
    List<TjOrder> getCsTjOrderListByCusId1(Long userId);
    @Select("SELECT GROUP_CONCAT( DISTINCT b.pro_name  SEPARATOR ';' ) aa FROM tj_order_remark a" +
            " LEFT JOIN tj_project b ON a.pro_id=b.pro_id WHERE a.deleted=0 AND a.tj_number= #{tjNum} AND a.type !=2")
    String getHistoryTjOrderProByTjNum(String tjNum);
    @Select("SELECT * FROM tj_order WHERE  deleted='0' and user_id =#{userId}" +
            "  AND !ISNULL(finish_time) ORDER BY create_time DESC LIMIT 1")
    TjOrder getLastTjOrderListByCusId(Long userId);
    //存储过程专用接口(总检)
    List<List<?>> getCunChuGuoChengCustomerList(Map<String,Object> map);
    //存储过程专用接口(初审)
    List<List<?>> getCsCunChuGuoChengCustomerList(Map<String,Object> map);
    @Select("SELECT count(*) FROM tj_order a WHERE  a.deleted=0 and  a.card_id=#{cardId}")
    int selectTjOrderByCardId(String cardId);
}