no message
This commit is contained in:
parent
0c6ced5f64
commit
b572d35b88
|
|
@ -1788,4 +1788,12 @@ public class OrderMasterController extends BaseController {
|
||||||
public AjaxResult statistics() {
|
public AjaxResult statistics() {
|
||||||
return AjaxResult.success(orderMasterService.orderStatisticsReturn());
|
return AjaxResult.success(orderMasterService.orderStatisticsReturn());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("/updateMasterAddress")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult updateMasterAddress(OrderMaster orderMaster) {
|
||||||
|
|
||||||
|
return toAjax(orderMasterService.updateOrderMasterAddressById(orderMaster));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -227,4 +227,12 @@ public class OrderMaster extends BaseEntity {
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
|
private String provinceName;
|
||||||
|
|
||||||
|
private String cityName;
|
||||||
|
|
||||||
|
private String countryName;
|
||||||
|
|
||||||
|
private String streetName;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,11 @@
|
||||||
<result property="address" column="address"/>
|
<result property="address" column="address"/>
|
||||||
<result property="name" column="name"/>
|
<result property="name" column="name"/>
|
||||||
<result property="phone" column="phone"/>
|
<result property="phone" column="phone"/>
|
||||||
|
<result property="provinceName" column="province_name"/>
|
||||||
|
<result property="cityName" column="city_name"/>
|
||||||
|
<result property="countryName" column="country_name"/>
|
||||||
|
<result property="streetName" column="street_name"/>
|
||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectOrderMaster">
|
<sql id="selectOrderMaster">
|
||||||
|
|
@ -457,6 +462,10 @@
|
||||||
<if test="address != null">address,</if>
|
<if test="address != null">address,</if>
|
||||||
<if test="name != null">name,</if>
|
<if test="name != null">name,</if>
|
||||||
<if test="phone != null">phone,</if>
|
<if test="phone != null">phone,</if>
|
||||||
|
<if test="provinceName != null">province_name,</if>
|
||||||
|
<if test="cityName != null">city_name,</if>
|
||||||
|
<if test="countryName != null">country_name,</if>
|
||||||
|
<if test="streetName != null">street_name,</if>
|
||||||
create_time
|
create_time
|
||||||
)VALUES(
|
)VALUES(
|
||||||
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
||||||
|
|
@ -488,6 +497,10 @@
|
||||||
<if test="address != null">#{address},</if>
|
<if test="address != null">#{address},</if>
|
||||||
<if test="name != null">#{name},</if>
|
<if test="name != null">#{name},</if>
|
||||||
<if test="phone != null">#{phone},</if>
|
<if test="phone != null">#{phone},</if>
|
||||||
|
<if test="provinceName != null">#{provinceName},</if>
|
||||||
|
<if test="cityName != null">#{cityName},</if>
|
||||||
|
<if test="countryName != null">#{countryName},</if>
|
||||||
|
<if test="streetName != null">#{streetName},</if>
|
||||||
SYSDATE()
|
SYSDATE()
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
@ -588,4 +601,25 @@
|
||||||
<if test="timeoutFineTimes != null">,timeout_fine_times = #{timeoutFineTimes}</if>
|
<if test="timeoutFineTimes != null">,timeout_fine_times = #{timeoutFineTimes}</if>
|
||||||
WHERE id = #{id}
|
WHERE id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="updateOrderMasterAddressById" parameterType="com.ghy.order.domain.OrderMaster">
|
||||||
|
UPDATE order_master
|
||||||
|
<set>
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="phone != null">phone = #{phone},</if>
|
||||||
|
<if test="provinceId != null">province_id = #{provinceId},</if>
|
||||||
|
<if test="provinceName != null">province_name = #{provinceName},</if>
|
||||||
|
<if test="cityName != null">city_name = #{cityName},</if>
|
||||||
|
<if test="countryName != null">country_name = #{countryName},</if>
|
||||||
|
<if test="streetName != null">street_name = #{streetName},</if>
|
||||||
|
<if test="cityId != null">city_id = #{cityId},</if>
|
||||||
|
<if test="countryId != null">country_id = #{countryId},</if>
|
||||||
|
<if test="streetId != null">street_id = #{streetId},</if>
|
||||||
|
<if test="address != null">address = #{address}</if>
|
||||||
|
</set>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue