|
@@ -23,32 +23,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="joinHouseName" column="join_house_name" />
|
|
|
<result property="recyclingName" column="recycling_name" />
|
|
|
<result property="recyclingTime" column="recycling_time" />
|
|
|
+ <result property="enterpriseName" column="enterprise_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCenterdataTHousingconstructionSteelcylinderLogVo">
|
|
|
- select id, steelcylinder_id, steelcylinder_name, join_warehouse_time, filling_medium, filling_time, operator_id, operator_name, car_id, car_number, delivery_time, delivery_id, delivery_name, sign_time, join_house_id, join_house_name, recycling_name, recycling_time from centerdata_t_housingconstruction_steelcylinder_log
|
|
|
+ select a.id, a.steelcylinder_id, a.steelcylinder_name, a.join_warehouse_time, a.filling_medium, a.filling_time, a.operator_id, a.operator_name, a.car_id,
|
|
|
+ a.car_number, a.delivery_time, a.delivery_id, a.delivery_name, a.sign_time, a.join_house_id, a.join_house_name, a.recycling_name, a.recycling_time from centerdata_t_housingconstruction_steelcylinder_log a
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCenterdataTHousingconstructionSteelcylinderLogList" parameterType="CenterdataTHousingconstructionSteelcylinderLog" resultMap="CenterdataTHousingconstructionSteelcylinderLogResult">
|
|
|
- <include refid="selectCenterdataTHousingconstructionSteelcylinderLogVo"/>
|
|
|
+ select a.id, a.steelcylinder_id, a.steelcylinder_name, a.join_warehouse_time, a.filling_medium, a.filling_time, a.operator_id, a.operator_name, a.car_id,b.enterprise_name,
|
|
|
+ a.car_number, a.delivery_time, a.delivery_id, a.delivery_name, a.sign_time, a.join_house_id, a.join_house_name, a.recycling_name, a.recycling_time from centerdata_t_housingconstruction_steelcylinder_log a
|
|
|
+ left join centerdata_t_housingconstruction_steelcylinder b on a.steelcylinder_id = b.id
|
|
|
<where>
|
|
|
- <if test="steelcylinderId != null and steelcylinderId != ''"> and steelcylinder_id = #{steelcylinderId}</if>
|
|
|
- <if test="steelcylinderName != null and steelcylinderName != ''"> and steelcylinder_name like concat('%', #{steelcylinderName}, '%')</if>
|
|
|
- <if test="joinWarehouseTime != null "> and join_warehouse_time = #{joinWarehouseTime}</if>
|
|
|
- <if test="fillingMedium != null and fillingMedium != ''"> and filling_medium = #{fillingMedium}</if>
|
|
|
- <if test="fillingTime != null "> and filling_time = #{fillingTime}</if>
|
|
|
- <if test="operatorId != null and operatorId != ''"> and operator_id = #{operatorId}</if>
|
|
|
- <if test="operatorName != null and operatorName != ''"> and operator_name like concat('%', #{operatorName}, '%')</if>
|
|
|
- <if test="carId != null and carId != ''"> and car_id = #{carId}</if>
|
|
|
- <if test="carNumber != null and carNumber != ''"> and car_number = #{carNumber}</if>
|
|
|
- <if test="deliveryTime != null "> and delivery_time = #{deliveryTime}</if>
|
|
|
- <if test="deliveryId != null and deliveryId != ''"> and delivery_id = #{deliveryId}</if>
|
|
|
- <if test="deliveryName != null and deliveryName != ''"> and delivery_name like concat('%', #{deliveryName}, '%')</if>
|
|
|
- <if test="signTime != null "> and sign_time = #{signTime}</if>
|
|
|
- <if test="joinHouseId != null and joinHouseId != ''"> and join_house_id = #{joinHouseId}</if>
|
|
|
- <if test="joinHouseName != null and joinHouseName != ''"> and join_house_name like concat('%', #{joinHouseName}, '%')</if>
|
|
|
- <if test="recyclingName != null and recyclingName != ''"> and recycling_name like concat('%', #{recyclingName}, '%')</if>
|
|
|
- <if test="recyclingTime != null "> and recycling_time = #{recyclingTime}</if>
|
|
|
+ <if test="steelcylinderId != null and steelcylinderId != ''"> and a.steelcylinder_id = #{steelcylinderId}</if>
|
|
|
+ <if test="steelcylinderName != null and steelcylinderName != ''"> and a.steelcylinder_name like concat('%', #{steelcylinderName}, '%')</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|