Commit 6a3e6ded authored by zjy's avatar zjy

user/role/tright 6.5

修改了我的管理的添加公司
还需要调用其他服务
parent c5fe681a
...@@ -6,6 +6,7 @@ import com.pangding.web.authority.vo.CompanyVo; ...@@ -6,6 +6,7 @@ import com.pangding.web.authority.vo.CompanyVo;
import com.pangding.web.authority.vo.reqvo.*; import com.pangding.web.authority.vo.reqvo.*;
import com.pangding.web.authority.vo.resvo.CompanyResVo; import com.pangding.web.authority.vo.resvo.CompanyResVo;
import com.pangding.web.authority.vo.resvo.DetailResVo; import com.pangding.web.authority.vo.resvo.DetailResVo;
import com.pangding.web.authority.vo.resvo.SaveCompanyResVo;
import com.yanzuoguang.util.helper.CheckerHelper; import com.yanzuoguang.util.helper.CheckerHelper;
import com.yanzuoguang.util.vo.PageSizeData; import com.yanzuoguang.util.vo.PageSizeData;
import com.yanzuoguang.util.vo.ResponseResult; import com.yanzuoguang.util.vo.ResponseResult;
...@@ -28,48 +29,17 @@ public class CompanyManagementController { ...@@ -28,48 +29,17 @@ public class CompanyManagementController {
@Autowired @Autowired
CompanyService companyServiceImpl; CompanyService companyServiceImpl;
/**y
* 新增/修改公司信息
* @param reqVo 公司以及公司扩展表信息
* @return 公司信息
*/
@RequestMapping(value = "/saveCompany", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<CompanyVo> saveCompany(@RequestBody CompanyAndCompanyExtendSaveReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("companyName",reqVo.getCompanyName())
.notBlankCheck("companyType",reqVo.getCompanyType())
.notBlankCheck("businessLicenseCode",reqVo.getBusinessLicenseCode())
.notBlankCheck("address",reqVo.getAddress())
.notBlankCheck("companyAttribute",reqVo.getCompanyAttribute())
.notBlankCheck("contactName",reqVo.getContactName())
.notBlankCheck("contactPhone",reqVo.getContactPhone())
.checkPhoneNo("contactPhone",reqVo.getContactPhone())
.notBlankCheck("contactCode",reqVo.getContactCode())
.checkIdCard("contactCode",reqVo.getContactCode())
.notBlankCheck("electromicAgreementCode",reqVo.getElectromicAgreementCode())
.notBlankCheck("signingStatus",reqVo.getSigningStatus())
.notBlankCheck("status",reqVo.getStatus())
.notBlankCheck("nature",reqVo.getNature())
.notBlankCheck("productOrInterface",reqVo.getProductOrInterface())
.checkException();
return ResponseResult.result(companyServiceImpl.saveCompany(reqVo));
}
/**y /**y
* 商户查看详情,根据公司id返回用户信息和公司主表信息 * 商户查看详情,根据公司id返回用户信息和公司主表信息
* @param reqVo 包含公司id的请求对象 * @param reqVo 包含公司id的请求对象
* @return 封装了用户,公司主表信息的对象 * @return 封装了用户,公司主表信息的对象
*/ */
@RequestMapping(value = "/detail", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/detail", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<DetailResVo> getDetail(@RequestBody CompanyGetReqVo reqVo){ public ResponseResult<CompanyResVo> getDetail(@RequestBody CompanyGetReqVo reqVo){
CheckerHelper.newInstance() CheckerHelper.newInstance()
.notBlankCheck("companyId",reqVo.getId()) .notBlankCheck("companyId",reqVo.getId())
.checkException(); .checkException();
return ResponseResult.result(companyServiceImpl.getDetail(reqVo)); return ResponseResult.result(companyServiceImpl.pdGetDetail(reqVo));
} }
/**y /**y
...@@ -120,8 +90,8 @@ public class CompanyManagementController { ...@@ -120,8 +90,8 @@ public class CompanyManagementController {
.notBlankCheck("idCard",reqVo.getIdCard()) .notBlankCheck("idCard",reqVo.getIdCard())
.notBlankCheck("companyId",reqVo.getCompanyId()) .notBlankCheck("companyId",reqVo.getCompanyId())
.checkIdCard("idCard",reqVo.getIdCard()) .checkIdCard("idCard",reqVo.getIdCard())
.notBlankCheck("reservedPhone",reqVo.getReservedPhone()) .notBlankCheck("phone",reqVo.getPhone())
.checkPhoneNo("reservedPhone",reqVo.getReservedPhone()) .checkPhoneNo("phone",reqVo.getPhone())
.checkException(); .checkException();
} }
...@@ -162,6 +132,9 @@ public class CompanyManagementController { ...@@ -162,6 +132,9 @@ public class CompanyManagementController {
CheckerHelper.newInstance() CheckerHelper.newInstance()
.notBlankCheck("account",reqVo.getAccount()) .notBlankCheck("account",reqVo.getAccount())
.notBlankCheck("password",reqVo.getPassword()) .notBlankCheck("password",reqVo.getPassword())
.notBlankCheck("confirmPassword",reqVo.getConfirmPassword())
.notBlankCheck("name",reqVo.getName())
.notBlankCheck("email",reqVo.getEmail())
.notBlankCheck("phone",reqVo.getPhone()) .notBlankCheck("phone",reqVo.getPhone())
.checkPhoneNo("phone",reqVo.getPhone()) .checkPhoneNo("phone",reqVo.getPhone())
.notBlankCheck("createId",reqVo.getCreateId()) .notBlankCheck("createId",reqVo.getCreateId())
...@@ -201,4 +174,32 @@ public class CompanyManagementController { ...@@ -201,4 +174,32 @@ public class CompanyManagementController {
companyServiceImpl.setDefault(reqVo); companyServiceImpl.setDefault(reqVo);
return new ResponseResult(); return new ResponseResult();
} }
/**
* 批量删除用户
* @param reqVo 封装了用户id列表的请求对象
* @return
*/
@RequestMapping(value = "/batchDelete", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult batchDelete(@RequestBody BatchDeleteReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("userIdList",reqVo.getUserIdList())
.checkException();
companyServiceImpl.batchDelete(reqVo);
return new ResponseResult();
}
/**
* 批量更新用户信息
* @param reqVo 封装了用户列表的请求对象
* @return
*/
@RequestMapping(value = "/batchUpdate", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult batchUpdate(@RequestBody BatchUpdateReqVo reqVo) throws Exception {
CheckerHelper.newInstance()
.notBlankCheck("userList",reqVo.getUserVoList())
.checkException();
companyServiceImpl.batchUpdate(reqVo);
return new ResponseResult();
}
} }
...@@ -5,6 +5,7 @@ import com.pangding.web.authority.vo.CompanyBankCardVo; ...@@ -5,6 +5,7 @@ import com.pangding.web.authority.vo.CompanyBankCardVo;
import com.pangding.web.authority.vo.CompanyVo; import com.pangding.web.authority.vo.CompanyVo;
import com.pangding.web.authority.vo.reqvo.*; import com.pangding.web.authority.vo.reqvo.*;
import com.pangding.web.authority.vo.resvo.CompanyResVo; import com.pangding.web.authority.vo.resvo.CompanyResVo;
import com.pangding.web.authority.vo.resvo.SaveCompanyResVo;
import com.yanzuoguang.util.helper.CheckerHelper; import com.yanzuoguang.util.helper.CheckerHelper;
import com.yanzuoguang.util.vo.PageSizeData; import com.yanzuoguang.util.vo.PageSizeData;
import com.yanzuoguang.util.vo.ResponseResult; import com.yanzuoguang.util.vo.ResponseResult;
...@@ -60,32 +61,46 @@ public class PangdingManagementController { ...@@ -60,32 +61,46 @@ public class PangdingManagementController {
} }
/**y /**y
* 新增/修改公司信息 * 新增用户表(密码为123456),公司主表,公司扩展表,商户表,银行卡表(企业类型有,个人类型没有)
* @param reqVo 公司以及公司扩展表信息 * @param reqVo 公司以及公司扩展表信息
* @return 公司信息 * @return 公司信息
*/ */
@RequestMapping(value = "/saveCompany", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/saveCompany", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<CompanyVo> saveCompany(@RequestBody CompanyAndCompanyExtendSaveReqVo reqVo){ public ResponseResult<SaveCompanyResVo> saveCompany(@RequestBody SaveCompanyReqVo reqVo){
CheckerHelper.newInstance() CheckerHelper.newInstance()
.notBlankCheck("companyName",reqVo.getCompanyName()) .notBlankCheck("account",reqVo.getAccount())
.notBlankCheck("companyType",reqVo.getCompanyType()) .notBlankCheck("companyType",reqVo.getCompanyType())
.notBlankCheck("businessLicenseCode",reqVo.getBusinessLicenseCode())
.notBlankCheck("address",reqVo.getAddress())
.notBlankCheck("companyAttribute",reqVo.getCompanyAttribute()) .notBlankCheck("companyAttribute",reqVo.getCompanyAttribute())
.notBlankCheck("merchantName",reqVo.getMerchantName())
.notBlankCheck("merchantAddress",reqVo.getMerchantAddress())
.notBlankCheck("companyName",reqVo.getCompanyName())
.notBlankCheck("companyAddress",reqVo.getCompanyAddress())
.notBlankCheck("businessLicenseCode",reqVo.getBusinessLicenseCode())
.notBlankCheck("contactName",reqVo.getContactName()) .notBlankCheck("contactName",reqVo.getContactName())
.notBlankCheck("contactPhone",reqVo.getContactPhone())
.checkPhoneNo("contactPhone",reqVo.getContactPhone())
.notBlankCheck("contactCode",reqVo.getContactCode()) .notBlankCheck("contactCode",reqVo.getContactCode())
.checkIdCard("contactCode",reqVo.getContactCode()) .checkIdCard("contactCode",reqVo.getContactCode())
.notBlankCheck("electromicAgreementCode",reqVo.getElectromicAgreementCode()) .notBlankCheck("contactPhone",reqVo.getContactPhone())
.notBlankCheck("signingStatus",reqVo.getSigningStatus()) .checkPhoneNo("contactPhone",reqVo.getContactPhone())
.notBlankCheck("status",reqVo.getStatus())
.notBlankCheck("nature",reqVo.getNature())
.notBlankCheck("productOrInterface",reqVo.getProductOrInterface())
.checkException(); .checkException();
return ResponseResult.result(companyServiceImpl.saveCompany(reqVo)); return ResponseResult.result(companyServiceImpl.saveCompany(reqVo));
} }
/**
* 添加公司提交按钮
* @param reqVo 封装了公司id和验证码的请求对象
* @return
*/
@RequestMapping(value = "/companySubmit", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult companySubmit(@RequestBody CompanySubmitReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("companyId",reqVo.getCompanyId())
.notBlankCheck("verifyCode",reqVo.getVerifyCode())
.checkException();
companyServiceImpl.companySubmit(reqVo);
return new ResponseResult();
}
/**y /**y
* 我的二维码页面 * 我的二维码页面
* @param reqVo 公司扩展表请求对象 * @param reqVo 公司扩展表请求对象
...@@ -134,8 +149,8 @@ public class PangdingManagementController { ...@@ -134,8 +149,8 @@ public class PangdingManagementController {
.notBlankCheck("idCard",reqVo.getIdCard()) .notBlankCheck("idCard",reqVo.getIdCard())
.notBlankCheck("companyId",reqVo.getCompanyId()) .notBlankCheck("companyId",reqVo.getCompanyId())
.checkIdCard("idCard",reqVo.getIdCard()) .checkIdCard("idCard",reqVo.getIdCard())
.notBlankCheck("reservedPhone",reqVo.getReservedPhone()) .notBlankCheck("phone",reqVo.getPhone())
.checkPhoneNo("reservedPhone",reqVo.getReservedPhone()) .checkPhoneNo("phone",reqVo.getPhone())
.checkException(); .checkException();
} }
...@@ -178,6 +193,9 @@ public class PangdingManagementController { ...@@ -178,6 +193,9 @@ public class PangdingManagementController {
.notBlankCheck("password",reqVo.getPassword()) .notBlankCheck("password",reqVo.getPassword())
.notBlankCheck("phone",reqVo.getPhone()) .notBlankCheck("phone",reqVo.getPhone())
.checkPhoneNo("phone",reqVo.getPhone()) .checkPhoneNo("phone",reqVo.getPhone())
.notBlankCheck("confirmPassword",reqVo.getConfirmPassword())
.notBlankCheck("name",reqVo.getName())
.notBlankCheck("email",reqVo.getEmail())
.notBlankCheck("createId",reqVo.getCreateId()) .notBlankCheck("createId",reqVo.getCreateId())
.notBlankCheck("createName",reqVo.getCreateName()) .notBlankCheck("createName",reqVo.getCreateName())
.notBlankCheck("companyId",reqVo.getCompanyId()) .notBlankCheck("companyId",reqVo.getCompanyId())
...@@ -226,4 +244,32 @@ public class PangdingManagementController { ...@@ -226,4 +244,32 @@ public class PangdingManagementController {
companyServiceImpl.setDefault(reqVo); companyServiceImpl.setDefault(reqVo);
return new ResponseResult(); return new ResponseResult();
} }
/**
* 批量删除用户
* @param reqVo 封装了用户id列表的请求对象
* @return
*/
@RequestMapping(value = "/batchDelete", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult batchDelete(@RequestBody BatchDeleteReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("userIdList",reqVo.getUserIdList())
.checkException();
companyServiceImpl.batchDelete(reqVo);
return new ResponseResult();
}
/**
* 批量更新用户信息
* @param reqVo 封装了用户列表的请求对象
* @return
*/
@RequestMapping(value = "/batchUpdate", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult batchUpdate(@RequestBody BatchUpdateReqVo reqVo) throws Exception {
CheckerHelper.newInstance()
.notBlankCheck("userList",reqVo.getUserVoList())
.checkException();
companyServiceImpl.batchUpdate(reqVo);
return new ResponseResult();
}
} }
package com.pangding.web.authority.controller; package com.pangding.web.authority.controller;
import com.pangding.web.authority.vo.RoleVo;
import com.pangding.web.authority.vo.reqvo.CountByRoleReqVo;
import com.pangding.web.authority.vo.reqvo.ListRoleReqVo; import com.pangding.web.authority.vo.reqvo.ListRoleReqVo;
import com.pangding.web.authority.vo.reqvo.WebRoleReqVo; import com.pangding.web.authority.vo.reqvo.WebRoleReqVo;
import com.pangding.web.authority.service.RoleService; import com.pangding.web.authority.service.RoleService;
...@@ -58,10 +60,27 @@ public class RoleController { ...@@ -58,10 +60,27 @@ public class RoleController {
* @return * @return
*/ */
@RequestMapping(value = "/list", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/list", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<PageSizeData<WebRoleResVo>> listRoles(@RequestBody ListRoleReqVo req){ public ResponseResult listRoles(@RequestBody ListRoleReqVo req){
CheckerHelper.newInstance()
.notBlankCheck("companyId",req.getCompanyId())
.checkException();
return ResponseResult.result(roleServiceImpl.getWebRoleResVoList(req)); return ResponseResult.result(roleServiceImpl.getWebRoleResVoList(req));
} }
/**
* 获取该公司该角色已分配的角色列表
* @param reqVo 封装了公司id和权限id的请求对象
* @return 用户列表
*/
@RequestMapping(value = "/countByRole", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult countByRole(@RequestBody CountByRoleReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("roleId",reqVo.getRoleId())
.notBlankCheck("companyId",reqVo.getCompanyId())
.checkException();
return ResponseResult.result(roleServiceImpl.countByRole(reqVo));
}
/** /**
* 根据ID查询角色 * 根据ID查询角色
* @param * @param
......
...@@ -33,8 +33,10 @@ public class UserController { ...@@ -33,8 +33,10 @@ public class UserController {
CheckerHelper.newInstance() CheckerHelper.newInstance()
.notBlankCheck("account",webUserReqVo.getAccount()) .notBlankCheck("account",webUserReqVo.getAccount())
.notBlankCheck("password",webUserReqVo.getPassword()) .notBlankCheck("password",webUserReqVo.getPassword())
.notBlankCheck("confirmPassword",webUserReqVo.getConfirmPassword())
.checkPhoneNo("phone",webUserReqVo.getPhone()) .checkPhoneNo("phone",webUserReqVo.getPhone())
.notBlankCheck("companyId",webUserReqVo.getCompanyId()) .notBlankCheck("companyId",webUserReqVo.getCompanyId())
.notBlankCheck("email",webUserReqVo.getEmail())
.checkException(); .checkException();
return ResponseResult.result(userServiceImpl.saveUser(webUserReqVo)); return ResponseResult.result(userServiceImpl.saveUser(webUserReqVo));
} }
......
...@@ -39,14 +39,6 @@ public interface RoleDao extends BaseDao { ...@@ -39,14 +39,6 @@ public interface RoleDao extends BaseDao {
*/ */
void checkNameExist(RoleVo roleVo); void checkNameExist(RoleVo roleVo);
/**
* 获取角色分页对象
*
* @param req
* @return 角色分页对象
*/
PageSizeData<RoleVo> getRoleVoList(ListRoleReqVo req);
/** /**
* 通过角色id获取子角色列表 * 通过角色id获取子角色列表
* *
......
...@@ -24,7 +24,7 @@ public class CompanyDaoImpl extends BaseDaoImpl implements CompanyDao { ...@@ -24,7 +24,7 @@ public class CompanyDaoImpl extends BaseDaoImpl implements CompanyDao {
table.addExist(CHECK_PHONE,"contact_phone"); table.addExist(CHECK_PHONE,"contact_phone");
table.add(SELECT,"select * from pd_company where 1=1 ") table.add(SELECT,"select * from pd_company where status <> '12' ")
.add("companyName","and company_name = ? ") .add("companyName","and company_name = ? ")
.add("companyType","and company_type = ? ") .add("companyType","and company_type = ? ")
.add("companyAttribute","and company_attribute = ? ") .add("companyAttribute","and company_attribute = ? ")
......
...@@ -46,12 +46,6 @@ public class RoleDaoImpl extends BaseDaoImpl implements RoleDao { ...@@ -46,12 +46,6 @@ public class RoleDaoImpl extends BaseDaoImpl implements RoleDao {
this.checkExist(CHECK_NAME_EXIST,roleVo,"角色名已存在"); this.checkExist(CHECK_NAME_EXIST,roleVo,"角色名已存在");
} }
@Override
public PageSizeData<RoleVo> getRoleVoList(ListRoleReqVo req) {
return this.queryPage(RoleVo.class,req,SELECT,req);
}
@Override @Override
public List<RoleVo> getChild(RoleGetReqVo roleGetReqVo) { public List<RoleVo> getChild(RoleGetReqVo roleGetReqVo) {
return this.query(RoleVo.class,SELECT, roleGetReqVo); return this.query(RoleVo.class,SELECT, roleGetReqVo);
......
...@@ -41,12 +41,12 @@ public class UserDaoImpl extends BaseDaoImpl implements UserDao { ...@@ -41,12 +41,12 @@ public class UserDaoImpl extends BaseDaoImpl implements UserDao {
@Override @Override
public void checkAccount(UserVo account) { public void checkAccount(UserVo account) {
this.checkExist(CHECK_ACCOUNT,account,"用戶名已存在"); this.checkExist(CHECK_ACCOUNT,account,"用戶名已存在:"+account.getAccount());
} }
@Override @Override
public void checkPhone(UserVo phone) { public void checkPhone(UserVo phone) {
this.checkExist(CHECK_PHONE,phone,"手机号已存在"); this.checkExist(CHECK_PHONE,phone,"手机号已存在:"+phone.getPhone());
} }
@Override @Override
......
package com.pangding.web.authority.feign;
import com.pangding.web.authority.vo.reqvo.CompanyBankReqVo;
import com.pangding.web.authority.vo.reqvo.CompanyReqVo;
import com.yanzuoguang.util.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @Author zhangjinyao
* @create 2019/6/2 18:06
*/
@FeignClient(value="pd-interface-pay")
@RequestMapping(value="/userNew")
public interface PayFeign {
/**
* 注册会员
* @param req
* @return
*/
@RequestMapping(value="/register")
public ResponseResult setCompanyInfo(@RequestBody CompanyReqVo req);
/**
* 绑定银行卡
* @param req
* @return
*/
@RequestMapping(value="/bindback")
public ResponseResult bindBack(@RequestBody CompanyBankReqVo req);
/**
* 解绑银行卡
* @param req
* @return
*/
@RequestMapping(value = "/unbindBankCard")
public ResponseResult unbindBankCard(@RequestBody CompanyBankReqVo req);
}
package com.pangding.web.authority.feign; package com.pangding.web.authority.feign;
import com.pangding.web.authority.vo.Merchant;
import com.pangding.web.authority.vo.reqvo.CompanyScenicInfoReqVo;
import com.pangding.web.authority.vo.reqvo.MerchantCreateReqVo; import com.pangding.web.authority.vo.reqvo.MerchantCreateReqVo;
import com.yanzuoguang.util.vo.ResponseResult; import com.yanzuoguang.util.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
...@@ -20,4 +22,13 @@ public interface StoreFeign { ...@@ -20,4 +22,13 @@ public interface StoreFeign {
*/ */
@RequestMapping("/merchantCreate") @RequestMapping("/merchantCreate")
public ResponseResult merchantCreate(@RequestBody MerchantCreateReqVo req); public ResponseResult merchantCreate(@RequestBody MerchantCreateReqVo req);
/**
* 通过公司还是id获取商户信息
*
* @param req
* @return
*/
@RequestMapping("/getCompanyScenicInfo")
ResponseResult<Merchant> getCompanyScenicInfo(@RequestBody CompanyScenicInfoReqVo req);
} }
...@@ -6,6 +6,7 @@ import com.pangding.web.authority.vo.CompanyVo; ...@@ -6,6 +6,7 @@ import com.pangding.web.authority.vo.CompanyVo;
import com.pangding.web.authority.vo.reqvo.*; import com.pangding.web.authority.vo.reqvo.*;
import com.pangding.web.authority.vo.resvo.CompanyResVo; import com.pangding.web.authority.vo.resvo.CompanyResVo;
import com.pangding.web.authority.vo.resvo.DetailResVo; import com.pangding.web.authority.vo.resvo.DetailResVo;
import com.pangding.web.authority.vo.resvo.SaveCompanyResVo;
import com.yanzuoguang.util.vo.PageSizeData; import com.yanzuoguang.util.vo.PageSizeData;
import java.util.List; import java.util.List;
...@@ -54,7 +55,14 @@ public interface CompanyService{ ...@@ -54,7 +55,14 @@ public interface CompanyService{
* @param reqVo 公司以及公司扩展表信息 * @param reqVo 公司以及公司扩展表信息
* @return 公司id * @return 公司id
*/ */
CompanyVo saveCompany(CompanyAndCompanyExtendSaveReqVo reqVo); SaveCompanyResVo saveCompany(SaveCompanyReqVo reqVo);
/**
* 添加公司提交按钮
* @param reqVo 封装了公司id和验证码的请求对象
* @return
*/
void companySubmit(CompanySubmitReqVo reqVo);
/** /**
* 仅将公司状态设置为12(停用) * 仅将公司状态设置为12(停用)
...@@ -85,6 +93,11 @@ public interface CompanyService{ ...@@ -85,6 +93,11 @@ public interface CompanyService{
*/ */
CompanyBankCardVo bankSubmit(BankSubmitReqVo reqVo); CompanyBankCardVo bankSubmit(BankSubmitReqVo reqVo);
/**
* 设置该银行卡为默认支付,并取消其他银行卡的默认
* @param reqVo 封装了银行卡id的请求对象
* @return
*/
void setDefault(CompanyBankCardVo reqVo); void setDefault(CompanyBankCardVo reqVo);
/**y /**y
...@@ -114,4 +127,18 @@ public interface CompanyService{ ...@@ -114,4 +127,18 @@ public interface CompanyService{
* @return 用户id * @return 用户id
*/ */
String saveUser(WebUserReqVo reqVo) throws Exception; String saveUser(WebUserReqVo reqVo) throws Exception;
/**
* 批量删除用户
* @param reqVo 封装了用户id列表的请求对象
* @return
*/
void batchDelete(BatchDeleteReqVo reqVo);
/**
* 批量更新用户信息
* @param reqVo 封装了用户列表的请求对象
* @return
*/
void batchUpdate(BatchUpdateReqVo reqVo) throws Exception;
} }
package com.pangding.web.authority.service; package com.pangding.web.authority.service;
import com.pangding.web.authority.vo.AuthorityVo; import com.pangding.web.authority.vo.AuthorityVo;
import com.pangding.web.authority.vo.UserVo;
import com.pangding.web.authority.vo.reqvo.CountByRoleReqVo;
import com.pangding.web.authority.vo.reqvo.ListRoleReqVo; import com.pangding.web.authority.vo.reqvo.ListRoleReqVo;
import com.pangding.web.authority.vo.reqvo.WebRoleReqVo; import com.pangding.web.authority.vo.reqvo.WebRoleReqVo;
import com.pangding.web.authority.vo.RoleVo; import com.pangding.web.authority.vo.RoleVo;
...@@ -46,20 +48,19 @@ public interface RoleService { ...@@ -46,20 +48,19 @@ public interface RoleService {
void checkNameExist(RoleVo roleVo); void checkNameExist(RoleVo roleVo);
/** /**
* 获取RoleVo对象列表 * 获取角色返回信息
* *
* @param req * @param req
* @return RoleVo对象列表分页对象 * @return 角色返回信息
*/ */
PageSizeData<RoleVo> getRoleVoList(ListRoleReqVo req); List<WebRoleResVo> getWebRoleResVoList(ListRoleReqVo req);
/** /**
* 获取角色返回信息分页对象 * 获取该公司该角色已分配的角色列表
* * @param reqVo 封装了公司id和权限id的请求对象
* @param req * @return 用户列表
* @return 角色返回信息分页对象
*/ */
PageSizeData<WebRoleResVo> getWebRoleResVoList(ListRoleReqVo req); List<UserVo> countByRole(CountByRoleReqVo reqVo);
/** /**
* 通过角色id查询该角色权限id列表 * 通过角色id查询该角色权限id列表
......
...@@ -136,4 +136,6 @@ public interface UserService { ...@@ -136,4 +136,6 @@ public interface UserService {
* @return 角色列表 * @return 角色列表
*/ */
List<RoleVo> getRoleListByUserId(String userId); List<RoleVo> getRoleListByUserId(String userId);
void checkEmail(String email);
} }
package com.pangding.web.authority.service.impl; package com.pangding.web.authority.service.impl;
import com.pangding.web.authority.dao.RoleDao; import com.pangding.web.authority.dao.*;
import com.pangding.web.authority.dao.RoleAuthorityDao;
import com.pangding.web.authority.dao.AuthorityDao;
import com.pangding.web.authority.dao.UserRoleDao;
import com.pangding.web.authority.vo.reqvo.*; import com.pangding.web.authority.vo.reqvo.*;
import com.pangding.web.authority.service.RoleService; import com.pangding.web.authority.service.RoleService;
import com.pangding.web.authority.vo.*; import com.pangding.web.authority.vo.*;
import com.pangding.web.authority.vo.resvo.WebRoleResVo; import com.pangding.web.authority.vo.resvo.WebRoleResVo;
import com.yanzuoguang.util.base.ObjectHelper;
import com.yanzuoguang.util.exception.CodeException; import com.yanzuoguang.util.exception.CodeException;
import com.yanzuoguang.util.helper.StringHelper; import com.yanzuoguang.util.helper.StringHelper;
import com.yanzuoguang.util.vo.PageSizeData; import com.yanzuoguang.util.vo.PageSizeData;
...@@ -36,6 +34,9 @@ public class RoleServiceImpl implements RoleService { ...@@ -36,6 +34,9 @@ public class RoleServiceImpl implements RoleService {
@Autowired @Autowired
AuthorityDao authorityDaoImpl; AuthorityDao authorityDaoImpl;
@Autowired
UserDao userDaoImpl;
/** /**
* 保存RoleVo对象,并保存角色权限的对应关系 * 保存RoleVo对象,并保存角色权限的对应关系
* *
...@@ -125,22 +126,6 @@ public class RoleServiceImpl implements RoleService { ...@@ -125,22 +126,6 @@ public class RoleServiceImpl implements RoleService {
roleDao.checkNameExist(roleVo); roleDao.checkNameExist(roleVo);
} }
/**
* 获取RoleVo对象列表
*
* @param req
* @return RoleVo对象列表分页对象
*/
@Override
public PageSizeData<RoleVo> getRoleVoList(ListRoleReqVo req) {
PageSizeData<RoleVo> roleVoPageSizeData = roleDao.getRoleVoList(req);
if (roleVoPageSizeData.getList() == null || roleVoPageSizeData.getList().isEmpty()){
throw new CodeException("没有更多权限");
}
return roleVoPageSizeData;
}
/** /**
* 获取角色返回信息分页对象 * 获取角色返回信息分页对象
* *
...@@ -148,29 +133,58 @@ public class RoleServiceImpl implements RoleService { ...@@ -148,29 +133,58 @@ public class RoleServiceImpl implements RoleService {
* @return 角色返回信息分页对象 * @return 角色返回信息分页对象
*/ */
@Override @Override
public PageSizeData<WebRoleResVo> getWebRoleResVoList(ListRoleReqVo req) { public List<WebRoleResVo> getWebRoleResVoList(ListRoleReqVo req) {
PageSizeData<RoleVo> roleVoPageSizeData = this.getRoleVoList(req); List<RoleVo> roleVoList = roleDao.loadList(req,RoleVo.class);
PageSizeData<WebRoleResVo> webRoleResVoPageSizeData = new PageSizeData(); List<WebRoleResVo> webRoleResVoList = new ArrayList();
List<RoleVo> roleVoList = roleVoPageSizeData.getList();
List<WebRoleResVo> webRoleResVoList = new ArrayList(roleVoList.size());
for (RoleVo roleVo:roleVoList) { for (RoleVo roleVo:roleVoList) {
WebRoleResVo resVo = new WebRoleResVo(); WebRoleResVo resVo = new WebRoleResVo();
List<AuthorityVo> authorityVoList = this.getAuthorityListByRoleId(roleVo.getId()); List<AuthorityVo> authorityVoList = this.getAuthorityListByRoleId(roleVo.getId());
ObjectHelper.writeWithFrom(resVo,roleVo);
resVo.setAuthorityList(authorityVoList); resVo.setAuthorityList(authorityVoList);
resVo.setId(roleVo.getId());
resVo.setName(roleVo.getName()); CountByRoleReqVo countByRoleReqVo = new CountByRoleReqVo();
resVo.setPid(roleVo.getPid()); countByRoleReqVo.setCompanyId(req.getCompanyId());
resVo.setRemark(roleVo.getRemark()); countByRoleReqVo.setRoleId(roleVo.getId());
List<UserVo> userVoList = countByRole(countByRoleReqVo);
if (null == userVoList || userVoList.isEmpty()){
resVo.setCount(0);
}
resVo.setCount(userVoList.size());
webRoleResVoList.add(resVo); webRoleResVoList.add(resVo);
} }
webRoleResVoPageSizeData.setPageTotal(roleVoPageSizeData.getPageTotal());
webRoleResVoPageSizeData.setList(webRoleResVoList);
webRoleResVoPageSizeData.setPageIndex(roleVoPageSizeData.getPageIndex());
webRoleResVoPageSizeData.setPageSize(roleVoPageSizeData.getPageSize());
return webRoleResVoPageSizeData; return webRoleResVoList;
}
/**
* 获取该公司该角色已分配的角色列表
* @param reqVo 封装了公司id和权限id的请求对象
* @return 用户列表
*/
@Override
public List<UserVo> countByRole(CountByRoleReqVo reqVo) {
UserRoleGetReqVo getReqVo = new UserRoleGetReqVo();
getReqVo.setRoleId(reqVo.getRoleId());
List<UserRoleVo> userRoleVoList = userRoleDaoImpl.loadList(getReqVo,UserRoleVo.class);
List<String> userIdList = new ArrayList<>();
for (UserRoleVo userRoleVo:userRoleVoList) {
userIdList.add(userRoleVo.getUserId());
}
String companyId = reqVo.getCompanyId();
List<UserVo> userVoList = new ArrayList<>();
for (String userId:userIdList) {
UserGetReqVo userGetReqVo = new UserGetReqVo();
userGetReqVo.setId(userId);
UserVo userVo = userDaoImpl.load(userGetReqVo,UserVo.class);
if (null != userVo && companyId.equals(userVo.getCompanyId())){
userVo.setPassword("");
userVo.setRemark("");
userVoList.add(userVo);
}
}
return userVoList;
} }
/** /**
......
...@@ -41,9 +41,14 @@ public class UserServiceImpl implements UserService { ...@@ -41,9 +41,14 @@ public class UserServiceImpl implements UserService {
this.isValid(webUserReqVo.getAccount()); this.isValid(webUserReqVo.getAccount());
this.checkAccount(webUserReqVo); this.checkAccount(webUserReqVo);
this.checkPhone(webUserReqVo); this.checkPhone(webUserReqVo);
this.checkEmail(webUserReqVo.getEmail());
/*将RSA加密后的密码解密*/ /*将RSA加密后的密码解密*/
String password = RSAUtils.decryptionByPrivateKey(webUserReqVo.getPassword(), RsaConstant.privateKey); String password = RSAUtils.decryptionByPrivateKey(webUserReqVo.getPassword(), RsaConstant.privateKey);
String confirmPassword = RSAUtils.decryptionByPrivateKey(webUserReqVo.getConfirmPassword(), RsaConstant.privateKey);
if (!StringHelper.compare(password,confirmPassword)){
throw new CodeException("确认密码错误");
}
webUserReqVo.setRemark(password); webUserReqVo.setRemark(password);
String md5Password = this.passwordEncoder(password); String md5Password = this.passwordEncoder(password);
...@@ -178,7 +183,15 @@ public class UserServiceImpl implements UserService { ...@@ -178,7 +183,15 @@ public class UserServiceImpl implements UserService {
public void isValid(String account) { public void isValid(String account) {
String regex = "^(?!\\d+$)[\\da-zA-Z]+$"; String regex = "^(?!\\d+$)[\\da-zA-Z]+$";
if(!account.matches(regex)){ if(!account.matches(regex)){
throw new CodeException("用户名仅支持字母和数字的组合,且不能为纯数字"); throw new CodeException("错误的用户名:"+account+",用户名仅支持字母和数字的组合,且不能为纯数字");
}
}
@Override
public void checkEmail(String email){
String regex = "^\\s*\\w+(?:\\.{0,1}[\\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\\.[a-zA-Z]+\\s*$";
if (!email.matches(regex)){
throw new CodeException("错误的邮箱格式:"+email);
} }
} }
......
...@@ -9,11 +9,11 @@ public class CompanyBankCardConstant { ...@@ -9,11 +9,11 @@ public class CompanyBankCardConstant {
* 设置银行卡为默认卡 * 设置银行卡为默认卡
* 值:1 * 值:1
*/ */
public static final String IS_DEFAULT = "1"; public static final int IS_DEFAULT = 1;
/** /**
* 不设置为默认卡 * 不设置为默认卡
* 值:0 * 值:0
*/ */
public static final String IS_NOT_DEFAULT = "0"; public static final int IS_NOT_DEFAULT = 0;
} }
...@@ -6,30 +6,30 @@ public class CompanyConstant { ...@@ -6,30 +6,30 @@ public class CompanyConstant {
* 公司类型 个人 * 公司类型 个人
* 值:0 * 值:0
*/ */
public static final String COMPANY_TYPE_PERSON = "0"; public static final int COMPANY_TYPE_PERSON = 0;
/** /**
* 公司类型 公司 * 公司类型 公司
* 值:1 * 值:1
*/ */
public static final String COMPANY_TYPE_COMPANY = "1"; public static final int COMPANY_TYPE_COMPANY = 1;
/** /**
* 公司状态 停用 * 公司状态 停用
* 值:12 * 值:12
*/ */
public static final String COMPANY_STATUS_STOP = "12"; public static final int COMPANY_STATUS_STOP = 12;
/** /**
* 供应商 * 供应商
* 值:0 * 值:0
*/ */
public static final String PRODUCT = "0"; public static final int PRODUCT = 0;
/** /**
* 接口商 * 接口商
* 值:1 * 值:1
*/ */
public static final String INTERFACE = "1"; public static final int INTERFACE = 1;
} }
...@@ -7,6 +7,5 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -7,6 +7,5 @@ import org.springframework.beans.factory.annotation.Value;
* @create 2019/6/1 15:39 * @create 2019/6/1 15:39
*/ */
public class RsaConstant { public class RsaConstant {
@Value("${rsa.privatekey}") public static final String privateKey = "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBALZh0s9zLNdnF6OxW9R9nHXHewBs0YwTC9cpXVrjHMkrF+p/WLSwQItzwv+rTaEXCZazGxU2uv/IS58YEhG2i6HqwFJDZwgkQ3TimrGXkZ7w5x7JLXoAvIDgJRNJnL2qOPn1nw47DmZ+VsTK3nK/CPtyeJ+QWYgHXxQDcEyv8911AgMBAAECgYAyLaHhf4+zx+JiIBbi1JhqczKtQEM65baZQQE1U00FL/0JgHX4aJGpjHT3ALt/+aWit65Y3NEANKxRnj7CbtXlhG65zWGfZXoieqFlOxRFcHIWRpEFCtlnflGY1Os0n6dJ335YDWKuxbvq4TiLs6WIG8rIdD6tK1x49VNdukX+dQJBAOPX/rrQHjUuVK6kidhgbZXAjqRfQri50rFOxmvZvfpO+Fn7AuSA5NxXLj+7Jf/5SPJBXP5OhEiNIhh3qnoy1UcCQQDM653qBdR3KR3ro89mzc0RKJjooZVttqHc/FV9vd2dUPYGk0h94mSB2+ofsoOIZYa5eh0lDyBISbofnKjjVwVjAkA70HeSKZLUmU4n7xA1GtOKDdwksNF+V2JFpA2ZQLeMH/E5BhmzTVdHtSdyGbqXIaWR27EDHi/CMDL0Q24g2Hl/AkBP87YfMrsc6vvzjmxDbhSOl0phqXnF3rX0pLcuYj/vO0Fie2CTTRtt10HXsCzFsOcJwu1QIkC0M5/c6aCzYqaFAkBOaY9LoJXr2Fjga4XXWxE0oRvjCaV0p/dKTRAzXKdgqc6ADXc/OiAPr4nH48vnPH2w30nk17CR0WeMqhhgpMtM";
public static String privateKey;
} }
...@@ -22,14 +22,14 @@ public class AuthorityVo extends BaseVo implements InitDao { ...@@ -22,14 +22,14 @@ public class AuthorityVo extends BaseVo implements InitDao {
private String name; private String name;
private String type; private int type;
private String alias; private String alias;
private String url; private String url;
@TableAnnotation("open_mode") @TableAnnotation("open_mode")
private String openMode; private int openMode;
private String remark; private String remark;
...@@ -37,13 +37,13 @@ public class AuthorityVo extends BaseVo implements InitDao { ...@@ -37,13 +37,13 @@ public class AuthorityVo extends BaseVo implements InitDao {
private String createTime; private String createTime;
private String sort; private int sort;
public String getSort() { public int getSort() {
return sort; return sort;
} }
public void setSort(String sort) { public void setSort(int sort) {
this.sort = sort; this.sort = sort;
} }
...@@ -71,11 +71,11 @@ public class AuthorityVo extends BaseVo implements InitDao { ...@@ -71,11 +71,11 @@ public class AuthorityVo extends BaseVo implements InitDao {
this.name = name; this.name = name;
} }
public String getType() { public int getType() {
return type; return type;
} }
public void setType(String type) { public void setType(int type) {
this.type = type; this.type = type;
} }
...@@ -95,11 +95,11 @@ public class AuthorityVo extends BaseVo implements InitDao { ...@@ -95,11 +95,11 @@ public class AuthorityVo extends BaseVo implements InitDao {
this.url = url; this.url = url;
} }
public String getOpenMode() { public int getOpenMode() {
return openMode; return openMode;
} }
public void setOpenMode(String openMode) { public void setOpenMode(int openMode) {
this.openMode = openMode; this.openMode = openMode;
} }
......
...@@ -25,7 +25,7 @@ public class CompanyBankCardVo extends BaseVo { ...@@ -25,7 +25,7 @@ public class CompanyBankCardVo extends BaseVo {
@TableAnnotation("bank_code") @TableAnnotation("bank_code")
private String bankCode; private String bankCode;
private String type; private int type;
@TableAnnotation("company_id") @TableAnnotation("company_id")
private String companyId; private String companyId;
...@@ -36,9 +36,9 @@ public class CompanyBankCardVo extends BaseVo { ...@@ -36,9 +36,9 @@ public class CompanyBankCardVo extends BaseVo {
private String idCard; private String idCard;
@TableAnnotation("reserved_phone") @TableAnnotation("reserved_phone")
private String reservedPhone; private String phone;
private String status; private int status;
@TableAnnotation("binding_code") @TableAnnotation("binding_code")
private String bindingCode; private String bindingCode;
...@@ -47,13 +47,13 @@ public class CompanyBankCardVo extends BaseVo { ...@@ -47,13 +47,13 @@ public class CompanyBankCardVo extends BaseVo {
private String bindingTime; private String bindingTime;
@TableAnnotation("is_default") @TableAnnotation("is_default")
private String isDefault; private int isDefault;
public String getIsDefault() { public int getIsDefault() {
return isDefault; return isDefault;
} }
public void setIsDefault(String isDefault) { public void setIsDefault(int isDefault) {
this.isDefault = isDefault; this.isDefault = isDefault;
} }
...@@ -97,11 +97,11 @@ public class CompanyBankCardVo extends BaseVo { ...@@ -97,11 +97,11 @@ public class CompanyBankCardVo extends BaseVo {
this.bankCode = bankCode; this.bankCode = bankCode;
} }
public String getType() { public int getType() {
return type; return type;
} }
public void setType(String type) { public void setType(int type) {
this.type = type; this.type = type;
} }
...@@ -129,19 +129,19 @@ public class CompanyBankCardVo extends BaseVo { ...@@ -129,19 +129,19 @@ public class CompanyBankCardVo extends BaseVo {
this.idCard = idCard; this.idCard = idCard;
} }
public String getReservedPhone() { public String getPhone() {
return reservedPhone; return phone;
} }
public void setReservedPhone(String reservedPhone) { public void setPhone(String phone) {
this.reservedPhone = reservedPhone; this.phone = phone;
} }
public String getStatus() { public int getStatus() {
return status; return status;
} }
public void setStatus(String status) { public void setStatus(int status) {
this.status = status; this.status = status;
} }
......
...@@ -18,7 +18,7 @@ public class CompanyExtendVo extends BaseVo { ...@@ -18,7 +18,7 @@ public class CompanyExtendVo extends BaseVo {
private String qrCode; private String qrCode;
@TableAnnotation("QR_code_type") @TableAnnotation("QR_code_type")
private String qrCodeType; private int qrCodeType;
@TableAnnotation("QR_code_url") @TableAnnotation("QR_code_url")
private String qrCodeUrl; private String qrCodeUrl;
...@@ -27,7 +27,7 @@ public class CompanyExtendVo extends BaseVo { ...@@ -27,7 +27,7 @@ public class CompanyExtendVo extends BaseVo {
* 是否分账 * 是否分账
*/ */
@TableAnnotation("subledger_status") @TableAnnotation("subledger_status")
private String subledgerStatus; private int subledgerStatus;
/** /**
* 分账规则 * 分账规则
...@@ -39,7 +39,7 @@ public class CompanyExtendVo extends BaseVo { ...@@ -39,7 +39,7 @@ public class CompanyExtendVo extends BaseVo {
* 是否分润 * 是否分润
*/ */
@TableAnnotation("divide_status") @TableAnnotation("divide_status")
private String divedeStatus; private int divedeStatus;
/** /**
* 分润规则 * 分润规则
...@@ -51,7 +51,7 @@ public class CompanyExtendVo extends BaseVo { ...@@ -51,7 +51,7 @@ public class CompanyExtendVo extends BaseVo {
* 是够可提现 * 是够可提现
*/ */
@TableAnnotation("withdraw_status") @TableAnnotation("withdraw_status")
private String withdrawStatus; private int withdrawStatus;
/** /**
* 提现规则 * 提现规则
...@@ -69,7 +69,7 @@ public class CompanyExtendVo extends BaseVo { ...@@ -69,7 +69,7 @@ public class CompanyExtendVo extends BaseVo {
* 是否扫码支付 * 是否扫码支付
*/ */
@TableAnnotation("scan_code_pay_status") @TableAnnotation("scan_code_pay_status")
private String scanCodePayStatus; private int scanCodePayStatus;
/** /**
* 支付规则 * 支付规则
...@@ -81,7 +81,7 @@ public class CompanyExtendVo extends BaseVo { ...@@ -81,7 +81,7 @@ public class CompanyExtendVo extends BaseVo {
* 是否邀请 * 是否邀请
*/ */
@TableAnnotation("invitation_status") @TableAnnotation("invitation_status")
private String invitationStatus; private int invitationStatus;
/** /**
* 邀请规则 * 邀请规则
...@@ -116,11 +116,11 @@ public class CompanyExtendVo extends BaseVo { ...@@ -116,11 +116,11 @@ public class CompanyExtendVo extends BaseVo {
this.qrCode = qrCode; this.qrCode = qrCode;
} }
public String getQrCodeType() { public int getQrCodeType() {
return qrCodeType; return qrCodeType;
} }
public void setQrCodeType(String qrCodeType) { public void setQrCodeType(int qrCodeType) {
this.qrCodeType = qrCodeType; this.qrCodeType = qrCodeType;
} }
...@@ -132,11 +132,11 @@ public class CompanyExtendVo extends BaseVo { ...@@ -132,11 +132,11 @@ public class CompanyExtendVo extends BaseVo {
this.qrCodeUrl = qrCodeUrl; this.qrCodeUrl = qrCodeUrl;
} }
public String getSubledgerStatus() { public int getSubledgerStatus() {
return subledgerStatus; return subledgerStatus;
} }
public void setSubledgerStatus(String subledgerStatus) { public void setSubledgerStatus(int subledgerStatus) {
this.subledgerStatus = subledgerStatus; this.subledgerStatus = subledgerStatus;
} }
...@@ -148,11 +148,11 @@ public class CompanyExtendVo extends BaseVo { ...@@ -148,11 +148,11 @@ public class CompanyExtendVo extends BaseVo {
this.subledgerRuleId = subledgerRuleId; this.subledgerRuleId = subledgerRuleId;
} }
public String getDivedeStatus() { public int getDivedeStatus() {
return divedeStatus; return divedeStatus;
} }
public void setDivedeStatus(String divedeStatus) { public void setDivedeStatus(int divedeStatus) {
this.divedeStatus = divedeStatus; this.divedeStatus = divedeStatus;
} }
...@@ -164,11 +164,11 @@ public class CompanyExtendVo extends BaseVo { ...@@ -164,11 +164,11 @@ public class CompanyExtendVo extends BaseVo {
this.divideRuleId = divideRuleId; this.divideRuleId = divideRuleId;
} }
public String getWithdrawStatus() { public int getWithdrawStatus() {
return withdrawStatus; return withdrawStatus;
} }
public void setWithdrawStatus(String withdrawStatus) { public void setWithdrawStatus(int withdrawStatus) {
this.withdrawStatus = withdrawStatus; this.withdrawStatus = withdrawStatus;
} }
...@@ -180,11 +180,11 @@ public class CompanyExtendVo extends BaseVo { ...@@ -180,11 +180,11 @@ public class CompanyExtendVo extends BaseVo {
this.withdrawRuleId = withdrawRuleId; this.withdrawRuleId = withdrawRuleId;
} }
public String getScanCodePayStatus() { public int getScanCodePayStatus() {
return scanCodePayStatus; return scanCodePayStatus;
} }
public void setScanCodePayStatus(String scanCodePayStatus) { public void setScanCodePayStatus(int scanCodePayStatus) {
this.scanCodePayStatus = scanCodePayStatus; this.scanCodePayStatus = scanCodePayStatus;
} }
...@@ -196,11 +196,11 @@ public class CompanyExtendVo extends BaseVo { ...@@ -196,11 +196,11 @@ public class CompanyExtendVo extends BaseVo {
this.payRuleId = payRuleId; this.payRuleId = payRuleId;
} }
public String getInvitationStatus() { public int getInvitationStatus() {
return invitationStatus; return invitationStatus;
} }
public void setInvitationStatus(String invitationStatus) { public void setInvitationStatus(int invitationStatus) {
this.invitationStatus = invitationStatus; this.invitationStatus = invitationStatus;
} }
......
...@@ -27,7 +27,7 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -27,7 +27,7 @@ public class CompanyVo extends BaseVo implements InitDao {
private String companyName; private String companyName;
@TableAnnotation("company_type") @TableAnnotation("company_type")
private String companyType; private int companyType;
@TableAnnotation("business_license_code") @TableAnnotation("business_license_code")
private String businessLicenseCode; private String businessLicenseCode;
...@@ -35,7 +35,7 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -35,7 +35,7 @@ public class CompanyVo extends BaseVo implements InitDao {
private String address; private String address;
@TableAnnotation("company_attribute") @TableAnnotation("company_attribute")
private String companyAttribute; private int companyAttribute;
@TableAnnotation("contact_name") @TableAnnotation("contact_name")
private String contactName; private String contactName;
...@@ -50,9 +50,9 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -50,9 +50,9 @@ public class CompanyVo extends BaseVo implements InitDao {
private String electromicAgreementCode; private String electromicAgreementCode;
@TableAnnotation("signing_status") @TableAnnotation("signing_status")
private String signingStatus; private int signingStatus;
private String status; private int status;
@TableAnnotation("create_time") @TableAnnotation("create_time")
private String createTime; private String createTime;
...@@ -60,16 +60,16 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -60,16 +60,16 @@ public class CompanyVo extends BaseVo implements InitDao {
@TableAnnotation("update_time") @TableAnnotation("update_time")
private String updateTime; private String updateTime;
private String nature; private int nature;
@TableAnnotation("product_or_interface") @TableAnnotation("product_or_interface")
private String productOrInterface; private int productOrInterface;
public String getProductOrInterface() { public int getProductOrInterface() {
return productOrInterface; return productOrInterface;
} }
public void setProductOrInterface(String productOrInterface) { public void setProductOrInterface(int productOrInterface) {
this.productOrInterface = productOrInterface; this.productOrInterface = productOrInterface;
} }
...@@ -105,11 +105,11 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -105,11 +105,11 @@ public class CompanyVo extends BaseVo implements InitDao {
this.companyName = companyName; this.companyName = companyName;
} }
public String getCompanyType() { public int getCompanyType() {
return companyType; return companyType;
} }
public void setCompanyType(String companyType) { public void setCompanyType(int companyType) {
this.companyType = companyType; this.companyType = companyType;
} }
...@@ -129,11 +129,11 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -129,11 +129,11 @@ public class CompanyVo extends BaseVo implements InitDao {
this.address = address; this.address = address;
} }
public String getCompanyAttribute() { public int getCompanyAttribute() {
return companyAttribute; return companyAttribute;
} }
public void setCompanyAttribute(String companyAttribute) { public void setCompanyAttribute(int companyAttribute) {
this.companyAttribute = companyAttribute; this.companyAttribute = companyAttribute;
} }
...@@ -169,19 +169,19 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -169,19 +169,19 @@ public class CompanyVo extends BaseVo implements InitDao {
this.electromicAgreementCode = electromicAgreementCode; this.electromicAgreementCode = electromicAgreementCode;
} }
public String getSigningStatus() { public int getSigningStatus() {
return signingStatus; return signingStatus;
} }
public void setSigningStatus(String signingStatus) { public void setSigningStatus(int signingStatus) {
this.signingStatus = signingStatus; this.signingStatus = signingStatus;
} }
public String getStatus() { public int getStatus() {
return status; return status;
} }
public void setStatus(String status) { public void setStatus(int status) {
this.status = status; this.status = status;
} }
...@@ -201,18 +201,16 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -201,18 +201,16 @@ public class CompanyVo extends BaseVo implements InitDao {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public String getNature() { public int getNature() {
return nature; return nature;
} }
public void setNature(String nature) { public void setNature(int nature) {
this.nature = nature; this.nature = nature;
} }
@Override @Override
public void init() { public void init() {
this.createTime = StringHelper.getFirst(this.createTime, DateHelper.getNow()); this.createTime = StringHelper.getFirst(this.createTime, DateHelper.getNow());
this.status = StringHelper.getFirst(this.status, "0");
this.companyAttribute = StringHelper.getFirst(this.companyAttribute,"0");
} }
} }
...@@ -60,7 +60,7 @@ public class Merchant extends BaseVo { ...@@ -60,7 +60,7 @@ public class Merchant extends BaseVo {
/** /**
* 类型(1:景区;2:餐饮;3:酒店) * 类型(1:景区;2:餐饮;3:酒店)
*/ */
private String type; private int type;
/** /**
* 标签 * 标签
...@@ -215,11 +215,11 @@ public class Merchant extends BaseVo { ...@@ -215,11 +215,11 @@ public class Merchant extends BaseVo {
this.address = address; this.address = address;
} }
public String getType() { public int getType() {
return type; return type;
} }
public void setType(String type) { public void setType(int type) {
this.type = type; this.type = type;
} }
......
...@@ -24,7 +24,7 @@ public class UserVo extends BaseVo implements InitDao { ...@@ -24,7 +24,7 @@ public class UserVo extends BaseVo implements InitDao {
private String phone; private String phone;
private String status; private int status;
private String remark; private String remark;
...@@ -40,6 +40,26 @@ public class UserVo extends BaseVo implements InitDao { ...@@ -40,6 +40,26 @@ public class UserVo extends BaseVo implements InitDao {
@TableAnnotation("company_id") @TableAnnotation("company_id")
private String companyId; private String companyId;
private String name;
private String email;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getId() { public String getId() {
return id; return id;
} }
...@@ -72,11 +92,11 @@ public class UserVo extends BaseVo implements InitDao { ...@@ -72,11 +92,11 @@ public class UserVo extends BaseVo implements InitDao {
this.phone = phone; this.phone = phone;
} }
public String getStatus() { public int getStatus() {
return status; return status;
} }
public void setStatus(String status) { public void setStatus(int status) {
this.status = status; this.status = status;
} }
......
package com.pangding.web.authority.vo.cloudvo; package com.pangding.web.authority.vo.cloudvo;
import com.pangding.web.authority.vo.*; import com.pangding.web.authority.vo.*;
import com.pangding.web.authority.vo.resvo.AuthorityListByLevelResVo;
import com.pangding.web.authority.vo.resvo.LoginCompanyResVo; import com.pangding.web.authority.vo.resvo.LoginCompanyResVo;
import java.util.List; import java.util.List;
...@@ -12,20 +13,20 @@ import java.util.List; ...@@ -12,20 +13,20 @@ import java.util.List;
public class LoginResVo { public class LoginResVo {
private String token; private String token;
private String account; private UserVo userVo;
private String code; private String code;
private LoginCompanyResVo companyResVo; private LoginCompanyResVo companyResVo;
private List<AuthorityVo> authorityVoList; private List<AuthorityListByLevelResVo> authorityListByLevel;
public List<AuthorityVo> getAuthorityVoList() { public List<AuthorityListByLevelResVo> getAuthorityListByLevel() {
return authorityVoList; return authorityListByLevel;
} }
public void setAuthorityVoList(List<AuthorityVo> authorityVoList) { public void setAuthorityListByLevel(List<AuthorityListByLevelResVo> authorityListByLevel) {
this.authorityVoList = authorityVoList; this.authorityListByLevel = authorityListByLevel;
} }
public String getCode() { public String getCode() {
...@@ -44,12 +45,12 @@ public class LoginResVo { ...@@ -44,12 +45,12 @@ public class LoginResVo {
this.token = token; this.token = token;
} }
public String getAccount() { public UserVo getUserVo() {
return account; return userVo;
} }
public void setAccount(String account) { public void setUserVo(UserVo userVo) {
this.account = account; this.userVo = userVo;
} }
public LoginCompanyResVo getCompanyResVo() { public LoginCompanyResVo getCompanyResVo() {
......
...@@ -10,7 +10,7 @@ public class AuthorityGetReqVo { ...@@ -10,7 +10,7 @@ public class AuthorityGetReqVo {
private String pid; private String pid;
private String sort; private int sort;
public String getReqId() { public String getReqId() {
return reqId; return reqId;
...@@ -20,11 +20,11 @@ public class AuthorityGetReqVo { ...@@ -20,11 +20,11 @@ public class AuthorityGetReqVo {
this.reqId = reqId; this.reqId = reqId;
} }
public String getSort() { public int getSort() {
return sort; return sort;
} }
public void setSort(String sort) { public void setSort(int sort) {
this.sort = sort; this.sort = sort;
} }
......
package com.pangding.web.authority.vo.reqvo;
import java.util.List;
/**
* @Author zhangjinyao
* @create 2019/6/4 15:05
*/
public class BatchDeleteReqVo {
private String reqId;
private List<String> userIdList;
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public List<String> getUserIdList() {
return userIdList;
}
public void setUserIdList(List<String> userIdList) {
this.userIdList = userIdList;
}
}
package com.pangding.web.authority.vo.reqvo;
import com.pangding.web.authority.vo.UserVo;
import java.util.List;
/**
* @Author zhangjinyao
* @create 2019/6/4 15:14
*/
public class BatchUpdateReqVo {
private String reqId;
private List<UserVo> userVoList;
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public List<UserVo> getUserVoList() {
return userVoList;
}
public void setUserVoList(List<UserVo> userVoList) {
this.userVoList = userVoList;
}
}
package com.pangding.web.authority.vo.reqvo;
import com.pangding.web.authority.vo.CompanyVo;
/**
* @Author zhangjinyao
* @create 2019/5/23 18:06
*/
public class CompanyAndCompanyExtendSaveReqVo extends CompanyVo {
private String reqId;
private String qrCode;
private String qrCodeType;
private String qrCodeUrl;
private String isSubAccount;
private String subAccountRule;
private String isSubProfit;
private String subProfitRule;
private String isWithdraw;
private String withdrawRule;
private String isScanCodePay;
private String payRule;
private String isInvitate;
private String invitateRule;
private String invitationCode;
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public String getQrCode() {
return qrCode;
}
public void setQrCode(String qrCode) {
this.qrCode = qrCode;
}
public String getQrCodeType() {
return qrCodeType;
}
public void setQrCodeType(String qrCodeType) {
this.qrCodeType = qrCodeType;
}
public String getQrCodeUrl() {
return qrCodeUrl;
}
public void setQrCodeUrl(String qrCodeUrl) {
this.qrCodeUrl = qrCodeUrl;
}
public String getIsSubAccount() {
return isSubAccount;
}
public void setIsSubAccount(String isSubAccount) {
this.isSubAccount = isSubAccount;
}
public String getSubAccountRule() {
return subAccountRule;
}
public void setSubAccountRule(String subAccountRule) {
this.subAccountRule = subAccountRule;
}
public String getIsSubProfit() {
return isSubProfit;
}
public void setIsSubProfit(String isSubProfit) {
this.isSubProfit = isSubProfit;
}
public String getSubProfitRule() {
return subProfitRule;
}
public void setSubProfitRule(String subProfitRule) {
this.subProfitRule = subProfitRule;
}
public String getIsWithdraw() {
return isWithdraw;
}
public void setIsWithdraw(String isWithdraw) {
this.isWithdraw = isWithdraw;
}
public String getWithdrawRule() {
return withdrawRule;
}
public void setWithdrawRule(String withdrawRule) {
this.withdrawRule = withdrawRule;
}
public String getIsScanCodePay() {
return isScanCodePay;
}
public void setIsScanCodePay(String isScanCodePay) {
this.isScanCodePay = isScanCodePay;
}
public String getPayRule() {
return payRule;
}
public void setPayRule(String payRule) {
this.payRule = payRule;
}
public String getIsInvitate() {
return isInvitate;
}
public void setIsInvitate(String isInvitate) {
this.isInvitate = isInvitate;
}
public String getInvitateRule() {
return invitateRule;
}
public void setInvitateRule(String invitateRule) {
this.invitateRule = invitateRule;
}
public String getInvitationCode() {
return invitationCode;
}
public void setInvitationCode(String invitationCode) {
this.invitationCode = invitationCode;
}
}
package com.pangding.web.authority.vo.reqvo;
/**
* @Author zhangjinyao
* @create 2019/6/2 18:12
*/
public class CompanyBankReqVo {
/**
* 银行卡id
*/
private String id;
/**
* 银行卡号
*/
private String bankCardCode;
/**
* 银行名称
*/
private String bankName;
/**
* 银行地址
*/
private String bankAddress;
/**
* 银行行号
*/
private String bankCode;
/**
* 类型 公司 个人
*/
private String type;
/**
* 公司id
*/
private String companyId;
/**
* 姓名
*/
private String name;
/**
* 身份证
*/
private String idCard;
/**
* 电话
*/
private String phone;
/**
* 状态
*/
private int status;
/**
* 绑定编号
*/
private String bindingCode;
/**
* 绑定时间
*/
private String bindingTime;
/**
* 验证码
*/
private String validateCode;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getBankCardCode() {
return bankCardCode;
}
public void setBankCardCode(String bankCardCode) {
this.bankCardCode = bankCardCode;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public String getBankAddress() {
return bankAddress;
}
public void setBankAddress(String bankAddress) {
this.bankAddress = bankAddress;
}
public String getBankCode() {
return bankCode;
}
public void setBankCode(String bankCode) {
this.bankCode = bankCode;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIdCard() {
return idCard;
}
public void setIdCard(String idCard) {
this.idCard = idCard;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getBindingCode() {
return bindingCode;
}
public void setBindingCode(String bindingCode) {
this.bindingCode = bindingCode;
}
public String getBindingTime() {
return bindingTime;
}
public void setBindingTime(String bindingTime) {
this.bindingTime = bindingTime;
}
public String getValidateCode() {
return validateCode;
}
public void setValidateCode(String validateCode) {
this.validateCode = validateCode;
}
}
...@@ -9,15 +9,15 @@ public class CompanyGetReqVo { ...@@ -9,15 +9,15 @@ public class CompanyGetReqVo {
private String id; private String id;
private String productOrInterface; private int productOrInterface;
private String companyName; private String companyName;
public String getProductOrInterface() { public int getProductOrInterface() {
return productOrInterface; return productOrInterface;
} }
public void setProductOrInterface(String productOrInterface) { public void setProductOrInterface(int productOrInterface) {
this.productOrInterface = productOrInterface; this.productOrInterface = productOrInterface;
} }
......
package com.pangding.web.authority.vo.reqvo;
import java.util.List;
/**
* @Author zhangjinyao
* @create 2019/6/2 18:10
*/
public class CompanyReqVo {
/**
* 公司id
*/
private String id;
/**
* 上级公司id
*/
private String pid;
/**
* 邀请公司id
*/
private String invitationCompanyId;
/**
* 通联会员id
*/
private String thirdId;
/**
* 公司名称
*/
private String companyName;
/**
* 公司性质 0:其他,1:集团,2:公司,3:个人,4:行政机构
*/
private int nature;
/**
* 公司类型 1公司,0个人
*/
private int companyType;
/**
* 营业执照号
*/
private String businessLicenseCode;
/**
* 公司地址
*/
private String address;
/**
* 公司行业属性0:其他;1:景区;2:酒店;3:餐饮;4:特产;5:运营车
*/
private int companyAttribution;
/**
* 联系人姓名
*/
private String contactName;
/**
* 联系人电话
*/
private String contactPhone;
/**
* 联系人身份证
*/
private String contactCode;
/**
* 电子签约协议号
*/
private String electronicAgreementCode;
/**
* 签约状态
*/
private int signingStatus;
/**
* 公司状态0初始化状态,1创建会员成功,2绑定手机,3企业实名认证成功,
4绑定支付密码,5公司实名认证中,6公司实名认证错误,
7设置支付密码中,8电子签约中,9电子签约错误,
10电子签约成功,11绑定手机发送验证码中
*/
private int status;
/**
* 创建时间
*/
private String createTime;
/**
* 更新时间
*/
private String updateTime;
/**
* 验证码
*/
private String validateCode;
/**
* 银行卡列表
*/
private List<CompanyBankReqVo> bankList;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getInvitationCompanyId() {
return invitationCompanyId;
}
public void setInvitationCompanyId(String invitationCompanyId) {
this.invitationCompanyId = invitationCompanyId;
}
public String getThirdId() {
return thirdId;
}
public void setThirdId(String thirdId) {
this.thirdId = thirdId;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public int getNature() {
return nature;
}
public void setNature(int nature) {
this.nature = nature;
}
public int getCompanyType() {
return companyType;
}
public void setCompanyType(int companyType) {
this.companyType = companyType;
}
public String getBusinessLicenseCode() {
return businessLicenseCode;
}
public void setBusinessLicenseCode(String businessLicenseCode) {
this.businessLicenseCode = businessLicenseCode;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public int getCompanyAttribution() {
return companyAttribution;
}
public void setCompanyAttribution(int companyAttribution) {
this.companyAttribution = companyAttribution;
}
public String getContactName() {
return contactName;
}
public void setContactName(String contactName) {
this.contactName = contactName;
}
public String getContactPhone() {
return contactPhone;
}
public void setContactPhone(String contactPhone) {
this.contactPhone = contactPhone;
}
public String getContactCode() {
return contactCode;
}
public void setContactCode(String contactCode) {
this.contactCode = contactCode;
}
public String getElectronicAgreementCode() {
return electronicAgreementCode;
}
public void setElectronicAgreementCode(String electronicAgreementCode) {
this.electronicAgreementCode = electronicAgreementCode;
}
public int getSigningStatus() {
return signingStatus;
}
public void setSigningStatus(int signingStatus) {
this.signingStatus = signingStatus;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
public List<CompanyBankReqVo> getBankList() {
return bankList;
}
public void setBankList(List<CompanyBankReqVo> bankList) {
this.bankList = bankList;
}
public String getValidateCode() {
return validateCode;
}
public void setValidateCode(String validateCode) {
this.validateCode = validateCode;
}
}
package com.pangding.web.authority.vo.reqvo;
import com.yanzuoguang.util.vo.BaseVo;
/**
* @Author zhangjinyao
* @create 2019/6/4 11:40
*/
public class CompanyScenicInfoReqVo extends BaseVo {
/**
* 请求编号
*/
private String reqId;
/**
* 公司编号
*/
private String companyId;
/**
* 接口商还是供应商
*/
private int productOrInterface;
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public int getProductOrInterface() {
return productOrInterface;
}
public void setProductOrInterface(int productOrInterface) {
this.productOrInterface = productOrInterface;
}
}
package com.pangding.web.authority.vo.reqvo;
/**
* @Author zhangjinyao
* @create 2019/6/4 18:51
*/
public class CompanySubmitReqVo {
private String reqId;
private String companyId;
private String verifyCode;
public String getVerifyCode() {
return verifyCode;
}
public void setVerifyCode(String verifyCode) {
this.verifyCode = verifyCode;
}
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
}
...@@ -9,7 +9,7 @@ import com.pangding.web.authority.vo.LoginVo; ...@@ -9,7 +9,7 @@ import com.pangding.web.authority.vo.LoginVo;
public class ComputerLoginReqVo extends LoginVo { public class ComputerLoginReqVo extends LoginVo {
private String reqId; private String reqId;
private String accountOrPhone; private int accountOrPhone;
private String password; private String password;
...@@ -23,11 +23,11 @@ public class ComputerLoginReqVo extends LoginVo { ...@@ -23,11 +23,11 @@ public class ComputerLoginReqVo extends LoginVo {
this.reqId = reqId; this.reqId = reqId;
} }
public String getAccountOrPhone() { public int getAccountOrPhone() {
return accountOrPhone; return accountOrPhone;
} }
public void setAccountOrPhone(String accountOrPhone) { public void setAccountOrPhone(int accountOrPhone) {
this.accountOrPhone = accountOrPhone; this.accountOrPhone = accountOrPhone;
} }
......
package com.pangding.web.authority.vo.reqvo;
/**
* @Author zhangjinyao
* @create 2019/6/3 15:50
*/
public class CountByRoleReqVo {
private String reqId;
private String roleId;
private String companyId;
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public String getRoleId() {
return roleId;
}
public void setRoleId(String roleId) {
this.roleId = roleId;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
}
...@@ -9,7 +9,7 @@ public class GenerateQrCodeUrlReqVo { ...@@ -9,7 +9,7 @@ public class GenerateQrCodeUrlReqVo {
private String companyId; private String companyId;
private String select; private int select;
public String getReqId() { public String getReqId() {
return reqId; return reqId;
...@@ -27,11 +27,11 @@ public class GenerateQrCodeUrlReqVo { ...@@ -27,11 +27,11 @@ public class GenerateQrCodeUrlReqVo {
this.companyId = companyId; this.companyId = companyId;
} }
public String getSelect() { public int getSelect() {
return select; return select;
} }
public void setSelect(String select) { public void setSelect(int select) {
this.select = select; this.select = select;
} }
} }
package com.pangding.web.authority.vo.reqvo; package com.pangding.web.authority.vo.reqvo;
import com.yanzuoguang.util.vo.PageSizeReqVo;
/** /**
* @Author zhangjinyao * @Author zhangjinyao
* @create 2019/5/15 17:54 * @create 2019/5/15 17:54
*/ */
public class ListRoleReqVo extends PageSizeReqVo { public class ListRoleReqVo {
private String reqId; private String reqId;
private String companyId;
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public String getReqId() { public String getReqId() {
return reqId; return reqId;
} }
......
...@@ -7,7 +7,7 @@ package com.pangding.web.authority.vo.reqvo; ...@@ -7,7 +7,7 @@ package com.pangding.web.authority.vo.reqvo;
public class ProductOrInterfaceReqVo { public class ProductOrInterfaceReqVo {
private String reqId; private String reqId;
private String productOrInterface; private int productOrInterface;
private String companyName; private String companyName;
...@@ -19,11 +19,11 @@ public class ProductOrInterfaceReqVo { ...@@ -19,11 +19,11 @@ public class ProductOrInterfaceReqVo {
this.reqId = reqId; this.reqId = reqId;
} }
public String getProductOrInterface() { public int getProductOrInterface() {
return productOrInterface; return productOrInterface;
} }
public void setProductOrInterface(String productOrInterface) { public void setProductOrInterface(int productOrInterface) {
this.productOrInterface = productOrInterface; this.productOrInterface = productOrInterface;
} }
......
...@@ -11,7 +11,7 @@ public class RegisterEnterpriceReqVo { ...@@ -11,7 +11,7 @@ public class RegisterEnterpriceReqVo {
private String invitationCompanyId; private String invitationCompanyId;
private String companyType; private int companyType;
private String companyName; private String companyName;
...@@ -21,7 +21,7 @@ public class RegisterEnterpriceReqVo { ...@@ -21,7 +21,7 @@ public class RegisterEnterpriceReqVo {
private String merchantName; private String merchantName;
private String companyAttribute; private int companyAttribute;
private String contactName; private String contactName;
...@@ -73,11 +73,11 @@ public class RegisterEnterpriceReqVo { ...@@ -73,11 +73,11 @@ public class RegisterEnterpriceReqVo {
this.invitationCompanyId = invitationCompanyId; this.invitationCompanyId = invitationCompanyId;
} }
public String getCompanyType() { public int getCompanyType() {
return companyType; return companyType;
} }
public void setCompanyType(String companyType) { public void setCompanyType(int companyType) {
this.companyType = companyType; this.companyType = companyType;
} }
...@@ -113,11 +113,11 @@ public class RegisterEnterpriceReqVo { ...@@ -113,11 +113,11 @@ public class RegisterEnterpriceReqVo {
this.merchantName = merchantName; this.merchantName = merchantName;
} }
public String getCompanyAttribute() { public int getCompanyAttribute() {
return companyAttribute; return companyAttribute;
} }
public void setCompanyAttribute(String companyAttribute) { public void setCompanyAttribute(int companyAttribute) {
this.companyAttribute = companyAttribute; this.companyAttribute = companyAttribute;
} }
......
...@@ -9,15 +9,17 @@ public class RegisterIndividualReqVo { ...@@ -9,15 +9,17 @@ public class RegisterIndividualReqVo {
private String id; private String id;
private String pid;
private String invitationCompanyId; private String invitationCompanyId;
private String companyType; private int companyType;
private String companyName; private String companyName;
private String address; private String address;
private String companyAttribute; private int companyAttribute;
private String businessLicenseCode; private String businessLicenseCode;
...@@ -29,6 +31,14 @@ public class RegisterIndividualReqVo { ...@@ -29,6 +31,14 @@ public class RegisterIndividualReqVo {
private String merchantId; private String merchantId;
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getMerchantId() { public String getMerchantId() {
return merchantId; return merchantId;
} }
...@@ -61,11 +71,11 @@ public class RegisterIndividualReqVo { ...@@ -61,11 +71,11 @@ public class RegisterIndividualReqVo {
this.invitationCompanyId = invitationCompanyId; this.invitationCompanyId = invitationCompanyId;
} }
public String getCompanyType() { public int getCompanyType() {
return companyType; return companyType;
} }
public void setCompanyType(String companyType) { public void setCompanyType(int companyType) {
this.companyType = companyType; this.companyType = companyType;
} }
...@@ -85,11 +95,11 @@ public class RegisterIndividualReqVo { ...@@ -85,11 +95,11 @@ public class RegisterIndividualReqVo {
this.address = address; this.address = address;
} }
public String getCompanyAttribute() { public int getCompanyAttribute() {
return companyAttribute; return companyAttribute;
} }
public void setCompanyAttribute(String companyAttribute) { public void setCompanyAttribute(int companyAttribute) {
this.companyAttribute = companyAttribute; this.companyAttribute = companyAttribute;
} }
......
...@@ -14,7 +14,7 @@ public class RegisterUserReqVo { ...@@ -14,7 +14,7 @@ public class RegisterUserReqVo {
private String confirmPassword; private String confirmPassword;
private String companyType; private int companyType;
private String invitationCode; private String invitationCode;
...@@ -50,11 +50,11 @@ public class RegisterUserReqVo { ...@@ -50,11 +50,11 @@ public class RegisterUserReqVo {
this.password = password; this.password = password;
} }
public String getCompanyType() { public int getCompanyType() {
return companyType; return companyType;
} }
public void setCompanyType(String companyType) { public void setCompanyType(int companyType) {
this.companyType = companyType; this.companyType = companyType;
} }
......
package com.pangding.web.authority.vo.reqvo;
/**
* @Author zhangjinyao
* @create 2019/6/4 16:52
*/
public class SaveCompanyReqVo {
private String reqId;
/**
* 用户名
*/
private String account;
/**
* 用户类型
*/
private int companyType;
/**
* 行业属性
*/
private int companyAttribute;
/**
* 商户名称
*/
private String merchantName;
/**
* 商户地址
*/
private String merchantAddress;
/**
* 企业名称
*/
private String companyName;
/**
* 企业地址
*/
private String companyAddress;
/**
* 营业执照号
*/
private String businessLicenseCode;
/**
* 法人姓名
*/
private String contactName;
/**
* 身份证号
*/
private String contactCode;
/**
* 电话
*/
private String contactPhone;
/**
* 开户银行
*/
private String bankName;
/**
* 开户地址
*/
private String bankAddress;
/**
* 开户账号
*/
private String bankCardCode;
/**
* 开户行号
*/
private String bankCode;
/**
* 创建者id
*/
private String createId;
/**
* 创建人
*/
private String createName;
public String getCreateId() {
return createId;
}
public void setCreateId(String createId) {
this.createId = createId;
}
public String getCreateName() {
return createName;
}
public void setCreateName(String createName) {
this.createName = createName;
}
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public int getCompanyType() {
return companyType;
}
public void setCompanyType(int companyType) {
this.companyType = companyType;
}
public int getCompanyAttribute() {
return companyAttribute;
}
public void setCompanyAttribute(int companyAttribute) {
this.companyAttribute = companyAttribute;
}
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}
public String getMerchantAddress() {
return merchantAddress;
}
public void setMerchantAddress(String merchantAddress) {
this.merchantAddress = merchantAddress;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getCompanyAddress() {
return companyAddress;
}
public void setCompanyAddress(String companyAddress) {
this.companyAddress = companyAddress;
}
public String getBusinessLicenseCode() {
return businessLicenseCode;
}
public void setBusinessLicenseCode(String businessLicenseCode) {
this.businessLicenseCode = businessLicenseCode;
}
public String getContactName() {
return contactName;
}
public void setContactName(String contactName) {
this.contactName = contactName;
}
public String getContactCode() {
return contactCode;
}
public void setContactCode(String contactCode) {
this.contactCode = contactCode;
}
public String getContactPhone() {
return contactPhone;
}
public void setContactPhone(String contactPhone) {
this.contactPhone = contactPhone;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public String getBankAddress() {
return bankAddress;
}
public void setBankAddress(String bankAddress) {
this.bankAddress = bankAddress;
}
public String getBankCardCode() {
return bankCardCode;
}
public void setBankCardCode(String bankCardCode) {
this.bankCardCode = bankCardCode;
}
public String getBankCode() {
return bankCode;
}
public void setBankCode(String bankCode) {
this.bankCode = bankCode;
}
}
...@@ -10,8 +10,18 @@ import java.util.List; ...@@ -10,8 +10,18 @@ import java.util.List;
public class WebUserReqVo extends UserVo { public class WebUserReqVo extends UserVo {
private String reqId; private String reqId;
private String confirmPassword;
private List<String> roleIds; private List<String> roleIds;
public String getConfirmPassword() {
return confirmPassword;
}
public void setConfirmPassword(String confirmPassword) {
this.confirmPassword = confirmPassword;
}
public String getReqId() { public String getReqId() {
return reqId; return reqId;
} }
......
package com.pangding.web.authority.vo.resvo; package com.pangding.web.authority.vo.resvo;
import com.pangding.web.authority.vo.CompanyBankCardVo; import com.pangding.web.authority.vo.*;
import com.pangding.web.authority.vo.CompanyExtendVo;
import com.pangding.web.authority.vo.CompanyVo;
import com.pangding.web.authority.vo.UserVo;
import java.util.List; import java.util.List;
...@@ -16,10 +13,20 @@ public class CompanyResVo { ...@@ -16,10 +13,20 @@ public class CompanyResVo {
private CompanyVo companyVo; private CompanyVo companyVo;
private Merchant merchant;
private CompanyExtendVo companyExtendVo; private CompanyExtendVo companyExtendVo;
private List<CompanyBankCardVo> bankCardVoList; private List<CompanyBankCardVo> bankCardVoList;
public Merchant getMerchant() {
return merchant;
}
public void setMerchant(Merchant merchant) {
this.merchant = merchant;
}
public List<UserVo> getUserVoList() { public List<UserVo> getUserVoList() {
return userVoList; return userVoList;
} }
......
...@@ -9,17 +9,17 @@ import java.util.List; ...@@ -9,17 +9,17 @@ import java.util.List;
public class LoginCompanyResVo { public class LoginCompanyResVo {
private String id; private String id;
private String status; private int status;
private String companyAttribute; private int companyAttribute;
private List<String> bankCardCodeList; private List<String> bankCardCodeList;
public String getCompanyAttribute() { public int getCompanyAttribute() {
return companyAttribute; return companyAttribute;
} }
public void setCompanyAttribute(String companyAttribute) { public void setCompanyAttribute(int companyAttribute) {
this.companyAttribute = companyAttribute; this.companyAttribute = companyAttribute;
} }
...@@ -31,11 +31,11 @@ public class LoginCompanyResVo { ...@@ -31,11 +31,11 @@ public class LoginCompanyResVo {
this.id = id; this.id = id;
} }
public String getStatus() { public int getStatus() {
return status; return status;
} }
public void setStatus(String status) { public void setStatus(int status) {
this.status = status; this.status = status;
} }
......
...@@ -2,6 +2,7 @@ package com.pangding.web.authority.vo.resvo; ...@@ -2,6 +2,7 @@ package com.pangding.web.authority.vo.resvo;
import com.pangding.web.authority.vo.AuthorityVo; import com.pangding.web.authority.vo.AuthorityVo;
import com.pangding.web.authority.vo.RoleVo; import com.pangding.web.authority.vo.RoleVo;
import com.pangding.web.authority.vo.UserVo;
import java.util.List; import java.util.List;
...@@ -12,6 +13,16 @@ public class WebRoleResVo extends RoleVo { ...@@ -12,6 +13,16 @@ public class WebRoleResVo extends RoleVo {
private List<AuthorityVo> authorityList; private List<AuthorityVo> authorityList;
private int count;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public List<AuthorityVo> getAuthorityList() { public List<AuthorityVo> getAuthorityList() {
return authorityList; return authorityList;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment