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 {
* @return ResultObject
* @author duanht
* @Title: getMechanicById
* @Description: TODO 根据用户id商户信息(小程序端)
* @Description: TODO 根据id获取商户信息(小程序端)
*/
@RequestMapping(value = "/getMerchantById", method = {RequestMethod.GET, RequestMethod.POST})
@ResponseBody
......@@ -564,6 +564,7 @@ public class UserController extends BaseController {
merchantInfo.setShopName(sysMerchant.getShopName());
merchantInfo.setSysArea(iAreaService.getAllChargeItems(Integer.valueOf(sysMerchant.getDistrict())));
merchantInfo.setServiceType(sysMerchant.getServiceType());
merchantInfo.setAddress(sysMerchant.getAddress());
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), merchantInfo);
}
......
......@@ -23,6 +23,8 @@ public class MerchantInfo {
private String shopName;
private String address;
public Integer getId() {
return id;
}
......@@ -70,4 +72,12 @@ public class MerchantInfo {
public void setShopName(String shopName) {
this.shopName = shopName;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
}
......@@ -800,7 +800,7 @@
<update id="deleteUserById" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo">
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
<foreach collection="ids" index="index" item="id"
separator="," open="(" close=")">
......@@ -935,7 +935,8 @@
su.phone_number phoneNumber,
sm.shop_name shopName,
sm.district,
sm.service_type serviceType
sm.service_type serviceType,
sm.address
FROM
sys_user su
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!