|
@@ -200,8 +200,11 @@
|
|
|
</delete>
|
|
|
|
|
|
<select id="selectByProductGuid" parameterType="string" resultMap="BaseResultMap">
|
|
|
- select <include refid="Base_Column_List"></include> from t_product_belong
|
|
|
- where fk_product_guid = #{productInfoGuid,jdbcType=CHAR}
|
|
|
+ select guid, fk_product_guid, fk_farmer_guid, fk_collective_guid,
|
|
|
+ (CASE belong_type WHEN 1 THEN farmer_name ELSE farmer_village END ) AS farmer_name,
|
|
|
+ farmer_village, farmer_num, state, create_time, modified_time, belong_type
|
|
|
+ from t_product_belong
|
|
|
+ where fk_product_guid = #{productInfoGuid,jdbcType=CHAR}
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteByProductInfoGuids" parameterType="list">
|