Commit cf9b79b7 by zhengxj

finish 商户基本信息页面 on 20191014 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24224 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d3d3baab
......@@ -801,6 +801,7 @@ public class UserController extends BaseController {
if (StringUtil.isNotEmpty(sysMerchant.getDistrict())) {
merchantInfo.setSysArea(iAreaService.getAllChargeItems(Integer.valueOf(sysMerchant.getDistrict())));
}
merchantInfo.setGroupName(sysMerchant.getGroupName());
merchantInfo.setServiceType(sysMerchant.getServiceType());
merchantInfo.setAddress(sysMerchant.getAddress());
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), merchantInfo);
......
......@@ -25,7 +25,17 @@ public class MerchantInfo {
private String address;
public Integer getId() {
private String groupName;
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public Integer getId() {
return id;
}
......
......@@ -63,7 +63,21 @@ public class SysMerchant extends SysUser {
*/
private String mechanicPhoneNumber;
public String getDistrict() {
/**
* 归属集团
*
*/
private String groupName;
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public String getDistrict() {
return district;
}
......
......@@ -1370,10 +1370,12 @@
sm.shop_name shopName,
sm.district,
sm.service_type serviceType,
sm.address
sm.address,
so.name groupName
FROM
sys_user su
LEFT JOIN sys_merchant sm ON su.id = sm.user_id
LEFT JOIN sys_organization so ON su.group_id = so.id
WHERE su.id = #{merchantId,jdbcType=INTEGER}
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!