Commit 61c68599 by duanhq

bug修复 by duanht 2019/2/28

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17912 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 648d70d4
...@@ -548,7 +548,7 @@ public class UserController extends BaseController { ...@@ -548,7 +548,7 @@ public class UserController extends BaseController {
* @return ResultObject * @return ResultObject
* @author duanht * @author duanht
* @Title: getMechanicById * @Title: getMechanicById
* @Description: TODO 根据用户id商户信息(小程序端) * @Description: TODO 根据id获取商户信息(小程序端)
*/ */
@RequestMapping(value = "/getMerchantById", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/getMerchantById", method = {RequestMethod.GET, RequestMethod.POST})
@ResponseBody @ResponseBody
...@@ -564,6 +564,7 @@ public class UserController extends BaseController { ...@@ -564,6 +564,7 @@ public class UserController extends BaseController {
merchantInfo.setShopName(sysMerchant.getShopName()); merchantInfo.setShopName(sysMerchant.getShopName());
merchantInfo.setSysArea(iAreaService.getAllChargeItems(Integer.valueOf(sysMerchant.getDistrict()))); merchantInfo.setSysArea(iAreaService.getAllChargeItems(Integer.valueOf(sysMerchant.getDistrict())));
merchantInfo.setServiceType(sysMerchant.getServiceType()); merchantInfo.setServiceType(sysMerchant.getServiceType());
merchantInfo.setAddress(sysMerchant.getAddress());
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), merchantInfo); return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), merchantInfo);
} }
......
...@@ -23,6 +23,8 @@ public class MerchantInfo { ...@@ -23,6 +23,8 @@ public class MerchantInfo {
private String shopName; private String shopName;
private String address;
public Integer getId() { public Integer getId() {
return id; return id;
} }
...@@ -70,4 +72,12 @@ public class MerchantInfo { ...@@ -70,4 +72,12 @@ public class MerchantInfo {
public void setShopName(String shopName) { public void setShopName(String shopName) {
this.shopName = shopName; this.shopName = shopName;
} }
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
} }
...@@ -800,7 +800,7 @@ ...@@ -800,7 +800,7 @@
<update id="deleteUserById" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"> <update id="deleteUserById" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo">
update sys_user update sys_user
set user_status = 2,update_by= #{name,jdbcType=VARCHAR},update_time= #{time,jdbcType=TIMESTAMP} set user_status = 'sys_user_status_logout',update_by= #{name,jdbcType=VARCHAR},update_time= #{time,jdbcType=TIMESTAMP}
where id in where id in
<foreach collection="ids" index="index" item="id" <foreach collection="ids" index="index" item="id"
separator="," open="(" close=")"> separator="," open="(" close=")">
...@@ -935,7 +935,8 @@ ...@@ -935,7 +935,8 @@
su.phone_number phoneNumber, su.phone_number phoneNumber,
sm.shop_name shopName, sm.shop_name shopName,
sm.district, sm.district,
sm.service_type serviceType sm.service_type serviceType,
sm.address
FROM FROM
sys_user su sys_user su
LEFT JOIN sys_merchant sm ON su.id = sm.user_id LEFT JOIN sys_merchant sm ON su.id = sm.user_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!