zltp-company服务
This commit is contained in:
parent
850ffe3957
commit
817a6839fe
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-modules</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.bonus</groupId>
|
||||
<artifactId>zlpt-company</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-common-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-common-log</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.zlpt</groupId>
|
||||
<artifactId>zlpt-common-swagger</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.bonus.zlpt.company;
|
||||
|
||||
import com.bonus.zlpt.common.security.annotation.EnableCustomConfig;
|
||||
import com.bonus.zlpt.common.security.annotation.EnableRyFeignClients;
|
||||
import com.bonus.zlpt.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* Description: 企业模块启动类
|
||||
*
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 12:20
|
||||
* @Version 1.0
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication
|
||||
public class ZlptCompanyApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ZlptCompanyApplication.class, args);
|
||||
System.out.println("company---企业模块启动成功!!");
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.bonus.zlpt.company.controller;
|
||||
import com.bonus.zlpt.company.domain.BmCoBank;
|
||||
import com.bonus.zlpt.company.service.impl.BmCoBankServiceImpl;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* bm_co_bank企业开户行信息(bm_co_bank)表控制层
|
||||
*
|
||||
* @author syruan
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/company_bank")
|
||||
public class BmCoBankController {
|
||||
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private BmCoBankServiceImpl bmCoBankServiceImpl;
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("selectOne")
|
||||
public BmCoBank selectOne(Integer id) {
|
||||
return bmCoBankServiceImpl.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("insert")
|
||||
public int insert(@RequestBody BmCoBank bmCoBank){
|
||||
return bmCoBankServiceImpl.insert(bmCoBank);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
package com.bonus.zlpt.company.controller;
|
||||
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.common.log.enums.BusinessType;
|
||||
import com.bonus.zlpt.common.security.annotation.RequiresPermissions;
|
||||
import com.bonus.zlpt.company.domain.BmCompanyInfo;
|
||||
import com.bonus.zlpt.company.mapper.BmCompanyInfoDao;
|
||||
import com.bonus.zlpt.company.service.BmCompanyInfoService;
|
||||
import com.bonus.zlpt.common.log.annotation.Log;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息表(bm_company_info)表控制层
|
||||
* @author 阮世耀
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/company_info")
|
||||
public class BmCompanyInfoController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private BmCompanyInfoService bmCompanyInfoService;
|
||||
|
||||
@Resource
|
||||
private BmCompanyInfoDao bmCompanyInfoDao;
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("selectById")
|
||||
public BmCompanyInfo selectById(Integer id) { return bmCompanyInfoService.selectByPrimaryKey(id); }
|
||||
|
||||
|
||||
/**
|
||||
* 获取公司列表
|
||||
*/
|
||||
@RequiresPermissions("system:company:list")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(BmCompanyInfo obj) {
|
||||
List<BmCompanyInfo> list = bmCompanyInfoDao.selectCompanyList(obj);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增 -- 录入企业信息
|
||||
*/
|
||||
@RequiresPermissions("system:company:add")
|
||||
@Log(title = "企业管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping("addCompanyInfo")
|
||||
public AjaxResult add(@RequestBody BmCompanyInfo obj) {
|
||||
return toAjax(bmCompanyInfoService.insertSelective(obj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改 -- 企业信息变更
|
||||
*/
|
||||
@RequiresPermissions("system:company:edit")
|
||||
@Log(title = "企业管理", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("updateCompanyInfo")
|
||||
public AjaxResult edit(@RequestBody BmCompanyInfo obj) {
|
||||
Integer deptId = obj.getCompanyId();
|
||||
return toAjax(bmCompanyInfoService.updateByPrimaryKeySelective(obj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除 -- 企业注销
|
||||
*/
|
||||
@RequiresPermissions("system:company:remove")
|
||||
@Log(title = "企业管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{deptId}")
|
||||
public AjaxResult remove(@PathVariable Integer deptId) {
|
||||
return toAjax(bmCompanyInfoService.deleteByPrimaryKey(deptId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
package com.bonus.zlpt.company.controller;
|
||||
import com.bonus.zlpt.common.core.web.controller.BaseController;
|
||||
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.zlpt.common.log.annotation.Log;
|
||||
import com.bonus.zlpt.common.log.enums.BusinessType;
|
||||
import com.bonus.zlpt.common.security.annotation.RequiresPermissions;
|
||||
import com.bonus.zlpt.company.domain.MaUserCollect;
|
||||
import com.bonus.zlpt.company.mapper.MaUserCollectMapper;
|
||||
import com.bonus.zlpt.company.service.MaUserCollectService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 我的收藏
|
||||
* (ma_user_collect)表控制层
|
||||
* @author 阮世耀
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/user_collect")
|
||||
public class MaUserCollectController extends BaseController {
|
||||
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private MaUserCollectService maUserCollectService;
|
||||
|
||||
@Resource
|
||||
private MaUserCollectMapper maUserCollectMapper;
|
||||
|
||||
/**
|
||||
* 新增 -- 收藏设备
|
||||
*/
|
||||
@RequiresPermissions("system:collect:add")
|
||||
@Log(title = "收藏设备", businessType = BusinessType.INSERT)
|
||||
@PostMapping("saveCollectedEquipment")
|
||||
public AjaxResult saveCollectedEquipment(@RequestBody MaUserCollect obj) {
|
||||
try {
|
||||
return toAjax(maUserCollectService.insertSelective(obj));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取收藏列表
|
||||
*/
|
||||
@RequiresPermissions("system:collect:list")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MaUserCollect obj) {
|
||||
try {
|
||||
List<MaUserCollect> list = maUserCollectMapper.selectAll(obj);
|
||||
return success(getDataTable(list));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询 -- 根据设备id获取信息
|
||||
*/
|
||||
@RequiresPermissions("system:collect:list")
|
||||
@Log(title = "根据设备id查询信息", businessType = BusinessType.OTHER)
|
||||
@GetMapping("selectByMaId")
|
||||
public AjaxResult selectByMaId(Integer maId) {
|
||||
try {
|
||||
return success(maUserCollectService.selectByMaId(maId));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过主键查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 单条数据
|
||||
*/
|
||||
@GetMapping("selectOne")
|
||||
public MaUserCollect selectOne(Integer id) {
|
||||
return maUserCollectService.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.bonus.zlpt.company.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 12:53
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* bm_co_bank企业开户行信息
|
||||
*/
|
||||
@Data
|
||||
public class BmCoBank implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 9028660704843374531L;
|
||||
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 开户行
|
||||
*/
|
||||
private String bankName;
|
||||
|
||||
/**
|
||||
* 账户名称
|
||||
*/
|
||||
private String accountName;
|
||||
|
||||
/**
|
||||
* 银行账号
|
||||
*/
|
||||
private String bankAccount;
|
||||
|
||||
/**
|
||||
* 开户行所在地
|
||||
*/
|
||||
private String bankAddress;
|
||||
|
||||
/**
|
||||
* 开户许可证核准号
|
||||
*/
|
||||
private String permitNumber;
|
||||
|
||||
/**
|
||||
* 开户许可证
|
||||
*/
|
||||
private String permitUrl;
|
||||
|
||||
/**
|
||||
* 企业id
|
||||
*/
|
||||
private Integer coId;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,151 @@
|
|||
package com.bonus.zlpt.company.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/1 19:40
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* 企业信息表
|
||||
*/
|
||||
@Data
|
||||
public class BmCompanyInfo implements Serializable {
|
||||
/**
|
||||
* 企业id
|
||||
*/
|
||||
private Integer companyId;
|
||||
|
||||
/**
|
||||
* 企业名称
|
||||
*/
|
||||
private String companyName;
|
||||
|
||||
/**
|
||||
* 企业类型(社会企业,南网集团企业,南网控股企业)
|
||||
*/
|
||||
private String companyType;
|
||||
|
||||
/**
|
||||
* 企业所属(广东电网、广西电网、贵州电网、云南电网、海南电网、储能公司、深圳供电局、超高压公司)
|
||||
*/
|
||||
private String companyLtd;
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
*/
|
||||
private String creditCode;
|
||||
|
||||
/**
|
||||
* 注册地址
|
||||
*/
|
||||
private String registerAddress;
|
||||
|
||||
/**
|
||||
* 经营地址
|
||||
*/
|
||||
private String operateAddress;
|
||||
|
||||
/**
|
||||
* 证件类型
|
||||
*/
|
||||
private String certificatetype;
|
||||
|
||||
/**
|
||||
* 法人证件号码
|
||||
*/
|
||||
private String idNumber;
|
||||
|
||||
/**
|
||||
* 营业执照
|
||||
*/
|
||||
private String businessLicense;
|
||||
|
||||
/**
|
||||
* 法人姓名
|
||||
*/
|
||||
private String legalPerson;
|
||||
|
||||
/**
|
||||
* 邀请码
|
||||
*/
|
||||
private String invitationCode;
|
||||
|
||||
/**
|
||||
* 邀请企业名称
|
||||
*/
|
||||
private String invitationCoName;
|
||||
|
||||
/**
|
||||
* 经营范围
|
||||
*/
|
||||
private String businessScope;
|
||||
|
||||
/**
|
||||
* 被授权人姓名
|
||||
*/
|
||||
private String authPerson;
|
||||
|
||||
/**
|
||||
* 被授权人身份证
|
||||
*/
|
||||
private String authIdNumber;
|
||||
|
||||
/**
|
||||
* 被授权人手机号
|
||||
*/
|
||||
private String authPhone;
|
||||
|
||||
/**
|
||||
* 法人授权书
|
||||
*/
|
||||
private String authDocument;
|
||||
|
||||
/**
|
||||
* 被授权人身份证头像面
|
||||
*/
|
||||
private String idFaceUrl;
|
||||
|
||||
/**
|
||||
* 被授权人身份证国徽面
|
||||
*/
|
||||
private String idNationUrl;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
private Integer auditor;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
private String auditTime;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
*/
|
||||
private String auditRemark;
|
||||
|
||||
/**
|
||||
* 状态(0待审核,1通过,2驳回)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
private String updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package com.bonus.zlpt.company.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Description: 我的收藏表
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 13:41
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class MaUserCollect implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -8259045797259132976L;
|
||||
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
private Integer maId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String maName;
|
||||
|
||||
/**
|
||||
* 收藏时间
|
||||
*/
|
||||
private String time;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.bonus.zlpt.company.mapper;
|
||||
|
||||
import com.bonus.zlpt.company.domain.BmCoBank;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 12:53
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Mapper
|
||||
public interface BmCoBankMapper {
|
||||
/**
|
||||
* delete by primary key
|
||||
* @param id primaryKey
|
||||
* @return deleteCount
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* insert record to table
|
||||
* @param record the record
|
||||
* @return insert count
|
||||
*/
|
||||
int insert(BmCoBank record);
|
||||
|
||||
/**
|
||||
* insert record to table selective
|
||||
* @param record the record
|
||||
* @return insert count
|
||||
*/
|
||||
int insertSelective(BmCoBank record);
|
||||
|
||||
/**
|
||||
* select by primary key
|
||||
* @param id primary key
|
||||
* @return object by primary key
|
||||
*/
|
||||
BmCoBank selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* update record selective
|
||||
* @param record the updated record
|
||||
* @return update count
|
||||
*/
|
||||
int updateByPrimaryKeySelective(BmCoBank record);
|
||||
|
||||
/**
|
||||
* update record
|
||||
* @param record the updated record
|
||||
* @return update count
|
||||
*/
|
||||
int updateByPrimaryKey(BmCoBank record);
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.bonus.zlpt.company.mapper;
|
||||
|
||||
import com.bonus.zlpt.company.domain.BmCompanyInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/1 19:40
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Mapper
|
||||
public interface BmCompanyInfoDao {
|
||||
int deleteByPrimaryKey(Integer companyId);
|
||||
|
||||
int insert(BmCompanyInfo record);
|
||||
|
||||
int insertSelective(BmCompanyInfo record);
|
||||
|
||||
BmCompanyInfo selectByPrimaryKey(Integer companyId);
|
||||
|
||||
List<BmCompanyInfo> selectCompanyList(BmCompanyInfo record);
|
||||
|
||||
int updateByPrimaryKeySelective(BmCompanyInfo record);
|
||||
|
||||
int updateByPrimaryKey(BmCompanyInfo record);
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package com.bonus.zlpt.company.mapper;
|
||||
|
||||
import com.bonus.zlpt.company.domain.MaUserCollect;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 13:41
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Mapper
|
||||
public interface MaUserCollectMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(MaUserCollect record);
|
||||
|
||||
int insertSelective(MaUserCollect record);
|
||||
|
||||
MaUserCollect selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* 根据设备id查询设备信息
|
||||
* @param maId 设备id
|
||||
* @return 设备信息
|
||||
*/
|
||||
MaUserCollect selectByMaId(Integer maId);
|
||||
|
||||
List<MaUserCollect> selectAll(MaUserCollect record);
|
||||
|
||||
int updateByPrimaryKeySelective(MaUserCollect record);
|
||||
|
||||
int updateByPrimaryKey(MaUserCollect record);
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.bonus.zlpt.company.service;
|
||||
|
||||
import com.bonus.zlpt.company.domain.BmCoBank;
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 12:53
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
public interface BmCoBankService{
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(BmCoBank record);
|
||||
|
||||
int insertSelective(BmCoBank record);
|
||||
|
||||
BmCoBank selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(BmCoBank record);
|
||||
|
||||
int updateByPrimaryKey(BmCoBank record);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.bonus.zlpt.company.service;
|
||||
|
||||
import com.bonus.zlpt.company.domain.BmCompanyInfo;
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/1 19:40
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
public interface BmCompanyInfoService{
|
||||
|
||||
int deleteByPrimaryKey(Integer companyId);
|
||||
|
||||
int insert(BmCompanyInfo record);
|
||||
|
||||
int insertSelective(BmCompanyInfo record);
|
||||
|
||||
BmCompanyInfo selectByPrimaryKey(Integer companyId);
|
||||
|
||||
int updateByPrimaryKeySelective(BmCompanyInfo record);
|
||||
|
||||
int updateByPrimaryKey(BmCompanyInfo record);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.bonus.zlpt.company.service;
|
||||
|
||||
import com.bonus.zlpt.company.domain.MaUserCollect;
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 13:41
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
public interface MaUserCollectService{
|
||||
|
||||
MaUserCollect selectByMaId(Integer maId);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(MaUserCollect record);
|
||||
|
||||
int insertSelective(MaUserCollect record);
|
||||
|
||||
MaUserCollect selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(MaUserCollect record);
|
||||
|
||||
int updateByPrimaryKey(MaUserCollect record);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.bonus.zlpt.company.service.impl;
|
||||
|
||||
import com.bonus.zlpt.company.service.BmCoBankService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import com.bonus.zlpt.company.mapper.BmCoBankMapper;
|
||||
import com.bonus.zlpt.company.domain.BmCoBank;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 12:53
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Service
|
||||
public class BmCoBankServiceImpl implements BmCoBankService {
|
||||
|
||||
@Resource
|
||||
private BmCoBankMapper bmCoBankMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return bmCoBankMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(BmCoBank record) {
|
||||
return bmCoBankMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(BmCoBank record) {
|
||||
return bmCoBankMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BmCoBank selectByPrimaryKey(Integer id) {
|
||||
return bmCoBankMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(BmCoBank record) {
|
||||
return bmCoBankMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(BmCoBank record) {
|
||||
return bmCoBankMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.bonus.zlpt.company.service.impl;
|
||||
|
||||
import com.bonus.zlpt.company.service.BmCompanyInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import com.bonus.zlpt.company.domain.BmCompanyInfo;
|
||||
import com.bonus.zlpt.company.mapper.BmCompanyInfoDao;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/1 19:40
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Service
|
||||
public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {
|
||||
|
||||
@Resource
|
||||
private BmCompanyInfoDao bmCompanyInfoMapper;
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer companyId) {
|
||||
return bmCompanyInfoMapper.deleteByPrimaryKey(companyId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(BmCompanyInfo record) {
|
||||
return bmCompanyInfoMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(BmCompanyInfo record) {
|
||||
return bmCompanyInfoMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BmCompanyInfo selectByPrimaryKey(Integer companyId) {
|
||||
return bmCompanyInfoMapper.selectByPrimaryKey(companyId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(BmCompanyInfo record) {
|
||||
return bmCompanyInfoMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(BmCompanyInfo record) {
|
||||
return bmCompanyInfoMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.bonus.zlpt.company.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import com.bonus.zlpt.company.mapper.MaUserCollectMapper;
|
||||
import com.bonus.zlpt.company.domain.MaUserCollect;
|
||||
import com.bonus.zlpt.company.service.MaUserCollectService;
|
||||
/**
|
||||
* Description:
|
||||
* @Author 阮世耀
|
||||
* @Create 2023/12/2 13:41
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Service
|
||||
public class MaUserCollectServiceImpl implements MaUserCollectService{
|
||||
|
||||
@Resource
|
||||
private MaUserCollectMapper maUserCollectMapper;
|
||||
|
||||
/**
|
||||
* @param maId 设备id
|
||||
* @return 设备信息
|
||||
*/
|
||||
@Override
|
||||
public MaUserCollect selectByMaId(Integer maId) {
|
||||
return maUserCollectMapper.selectByMaId(maId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(Integer id) {
|
||||
return maUserCollectMapper.deleteByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(MaUserCollect record) {
|
||||
return maUserCollectMapper.insert(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(MaUserCollect record) {
|
||||
return maUserCollectMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaUserCollect selectByPrimaryKey(Integer id) {
|
||||
return maUserCollectMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(MaUserCollect record) {
|
||||
return maUserCollectMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(MaUserCollect record) {
|
||||
return maUserCollectMapper.updateByPrimaryKey(record);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
_ _
|
||||
(_) | |
|
||||
_ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___
|
||||
| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \
|
||||
| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | |
|
||||
|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_|
|
||||
__/ | __/ |
|
||||
|___/ |___/
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9201
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: zlpt-company
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: zlpt_cloud_dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: zlpt_cloud_dev
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: zlpt_cloud_dev
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="logs/sgzb-system" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/info.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>INFO</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.bonus.zlpt" level="info" />
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn" />
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info" />
|
||||
<appender-ref ref="file_error" />
|
||||
</root>
|
||||
</configuration>
|
||||
|
|
@ -0,0 +1,139 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.company.mapper.BmCoBankMapper">
|
||||
<resultMap id="BaseResultMap" type="com.bonus.zlpt.company.domain.BmCoBank">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table bm_co_bank-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="bank_name" jdbcType="VARCHAR" property="bankName" />
|
||||
<result column="account_name" jdbcType="VARCHAR" property="accountName" />
|
||||
<result column="bank_account" jdbcType="VARCHAR" property="bankAccount" />
|
||||
<result column="bank_address" jdbcType="VARCHAR" property="bankAddress" />
|
||||
<result column="permit_number" jdbcType="VARCHAR" property="permitNumber" />
|
||||
<result column="permit_url" jdbcType="VARCHAR" property="permitUrl" />
|
||||
<result column="co_id" jdbcType="INTEGER" property="coId" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, bank_name, account_name, bank_account, bank_address, permit_number, permit_url, co_id
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from bm_co_bank
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete from bm_co_bank
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bonus.zlpt.company.domain.BmCoBank" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into bm_co_bank (bank_name, account_name, bank_account,
|
||||
bank_address, permit_number, permit_url,
|
||||
co_id)
|
||||
values (#{bankName,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{bankAccount,jdbcType=VARCHAR},
|
||||
#{bankAddress,jdbcType=VARCHAR}, #{permitNumber,jdbcType=VARCHAR}, #{permitUrl,jdbcType=VARCHAR},
|
||||
#{coId,jdbcType=INTEGER})
|
||||
</insert>
|
||||
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.zlpt.company.domain.BmCoBank" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into bm_co_bank
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="bankName != null and bankName != ''">
|
||||
bank_name,
|
||||
</if>
|
||||
<if test="accountName != null and accountName != ''">
|
||||
account_name,
|
||||
</if>
|
||||
<if test="bankAccount != null and bankAccount != ''">
|
||||
bank_account,
|
||||
</if>
|
||||
<if test="bankAddress != null and bankAddress != ''">
|
||||
bank_address,
|
||||
</if>
|
||||
<if test="permitNumber != null and permitNumber != ''">
|
||||
permit_number,
|
||||
</if>
|
||||
<if test="permitUrl != null and permitUrl != ''">
|
||||
permit_url,
|
||||
</if>
|
||||
<if test="coId != null">
|
||||
co_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="bankName != null and bankName != ''">
|
||||
#{bankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountName != null and accountName != ''">
|
||||
#{accountName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankAccount != null and bankAccount != ''">
|
||||
#{bankAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankAddress != null and bankAddress != ''">
|
||||
#{bankAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="permitNumber != null and permitNumber != ''">
|
||||
#{permitNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="permitUrl != null and permitUrl != ''">
|
||||
#{permitUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="coId != null">
|
||||
#{coId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.zlpt.company.domain.BmCoBank">
|
||||
<!--@mbg.generated-->
|
||||
update bm_co_bank
|
||||
<set>
|
||||
<if test="bankName != null and bankName != ''">
|
||||
bank_name = #{bankName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountName != null and accountName != ''">
|
||||
account_name = #{accountName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankAccount != null and bankAccount != ''">
|
||||
bank_account = #{bankAccount,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bankAddress != null and bankAddress != ''">
|
||||
bank_address = #{bankAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="permitNumber != null and permitNumber != ''">
|
||||
permit_number = #{permitNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="permitUrl != null and permitUrl != ''">
|
||||
permit_url = #{permitUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="coId != null">
|
||||
co_id = #{coId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<update id="updateByPrimaryKey" parameterType="com.bonus.zlpt.company.domain.BmCoBank">
|
||||
<!--@mbg.generated-->
|
||||
update bm_co_bank
|
||||
set bank_name = #{bankName,jdbcType=VARCHAR},
|
||||
account_name = #{accountName,jdbcType=VARCHAR},
|
||||
bank_account = #{bankAccount,jdbcType=VARCHAR},
|
||||
bank_address = #{bankAddress,jdbcType=VARCHAR},
|
||||
permit_number = #{permitNumber,jdbcType=VARCHAR},
|
||||
permit_url = #{permitUrl,jdbcType=VARCHAR},
|
||||
co_id = #{coId,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,374 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.company.mapper.BmCompanyInfoDao">
|
||||
<resultMap id="BaseResultMap" type="com.bonus.zlpt.company.domain.BmCompanyInfo">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table bm_company_info-->
|
||||
<id column="company_id" jdbcType="INTEGER" property="companyId" />
|
||||
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
|
||||
<result column="company_type" jdbcType="VARCHAR" property="companyType" />
|
||||
<result column="company_ltd" jdbcType="VARCHAR" property="companyLtd" />
|
||||
<result column="credit_code" jdbcType="VARCHAR" property="creditCode" />
|
||||
<result column="register_address" jdbcType="VARCHAR" property="registerAddress" />
|
||||
<result column="operate_address" jdbcType="VARCHAR" property="operateAddress" />
|
||||
<result column="certificateType" jdbcType="VARCHAR" property="certificatetype" />
|
||||
<result column="id_number" jdbcType="VARCHAR" property="idNumber" />
|
||||
<result column="business_license" jdbcType="VARCHAR" property="businessLicense" />
|
||||
<result column="legal_person" jdbcType="VARCHAR" property="legalPerson" />
|
||||
<result column="invitation_code" jdbcType="VARCHAR" property="invitationCode" />
|
||||
<result column="invitation_co_name" jdbcType="VARCHAR" property="invitationCoName" />
|
||||
<result column="business_scope" jdbcType="VARCHAR" property="businessScope" />
|
||||
<result column="auth_person" jdbcType="VARCHAR" property="authPerson" />
|
||||
<result column="auth_id_number" jdbcType="VARCHAR" property="authIdNumber" />
|
||||
<result column="auth_phone" jdbcType="VARCHAR" property="authPhone" />
|
||||
<result column="auth_document" jdbcType="VARCHAR" property="authDocument" />
|
||||
<result column="id_face_url" jdbcType="VARCHAR" property="idFaceUrl" />
|
||||
<result column="id_nation_url" jdbcType="VARCHAR" property="idNationUrl" />
|
||||
<result column="create_time" jdbcType="VARCHAR" property="createTime" />
|
||||
<result column="creator" jdbcType="VARCHAR" property="creator" />
|
||||
<result column="auditor" jdbcType="INTEGER" property="auditor" />
|
||||
<result column="audit_time" jdbcType="VARCHAR" property="auditTime" />
|
||||
<result column="audit_remark" jdbcType="VARCHAR" property="auditRemark" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="update_time" jdbcType="VARCHAR" property="updateTime" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
company_id, company_name, company_type, company_ltd, credit_code, register_address,
|
||||
operate_address, certificateType, id_number, business_license, legal_person, invitation_code,
|
||||
invitation_co_name, business_scope, auth_person, auth_id_number, auth_phone, auth_document,
|
||||
id_face_url, id_nation_url, create_time, creator, auditor, audit_time, audit_remark,
|
||||
`status`, update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from bm_company_info
|
||||
where company_id = #{companyId,jdbcType=INTEGER}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
update bm_company_info set status = '2'
|
||||
where company_id = #{companyId,jdbcType=INTEGER}
|
||||
</delete>
|
||||
|
||||
<insert id="insert" keyColumn="company_id" keyProperty="companyId" parameterType="com.bonus.zlpt.company.domain.BmCompanyInfo" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into bm_company_info (company_name, company_type, company_ltd,
|
||||
credit_code, register_address, operate_address,
|
||||
certificateType, id_number, business_license,
|
||||
legal_person, invitation_code, invitation_co_name,
|
||||
business_scope, auth_person, auth_id_number,
|
||||
auth_phone, auth_document, id_face_url,
|
||||
id_nation_url, create_time, creator,
|
||||
auditor, audit_time, audit_remark,
|
||||
`status`, update_time)
|
||||
values (#{companyName,jdbcType=VARCHAR}, #{companyType,jdbcType=VARCHAR}, #{companyLtd,jdbcType=VARCHAR},
|
||||
#{creditCode,jdbcType=VARCHAR}, #{registerAddress,jdbcType=VARCHAR}, #{operateAddress,jdbcType=VARCHAR},
|
||||
#{certificatetype,jdbcType=VARCHAR}, #{idNumber,jdbcType=VARCHAR}, #{businessLicense,jdbcType=VARCHAR},
|
||||
#{legalPerson,jdbcType=VARCHAR}, #{invitationCode,jdbcType=VARCHAR}, #{invitationCoName,jdbcType=VARCHAR},
|
||||
#{businessScope,jdbcType=VARCHAR}, #{authPerson,jdbcType=VARCHAR}, #{authIdNumber,jdbcType=VARCHAR},
|
||||
#{authPhone,jdbcType=VARCHAR}, #{authDocument,jdbcType=VARCHAR}, #{idFaceUrl,jdbcType=VARCHAR},
|
||||
#{idNationUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
|
||||
#{auditor,jdbcType=INTEGER}, #{auditTime,jdbcType=VARCHAR}, #{auditRemark,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<insert id="insertSelective" keyColumn="company_id" keyProperty="companyId" parameterType="com.bonus.zlpt.company.domain.BmCompanyInfo" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into bm_company_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="companyName != null and companyName != ''">
|
||||
company_name,
|
||||
</if>
|
||||
<if test="companyType != null and companyType != ''">
|
||||
company_type,
|
||||
</if>
|
||||
<if test="companyLtd != null and companyLtd != ''">
|
||||
company_ltd,
|
||||
</if>
|
||||
<if test="creditCode != null and creditCode != ''">
|
||||
credit_code,
|
||||
</if>
|
||||
<if test="registerAddress != null and registerAddress != ''">
|
||||
register_address,
|
||||
</if>
|
||||
<if test="operateAddress != null and operateAddress != ''">
|
||||
operate_address,
|
||||
</if>
|
||||
<if test="certificatetype != null and certificatetype != ''">
|
||||
certificateType,
|
||||
</if>
|
||||
<if test="idNumber != null and idNumber != ''">
|
||||
id_number,
|
||||
</if>
|
||||
<if test="businessLicense != null and businessLicense != ''">
|
||||
business_license,
|
||||
</if>
|
||||
<if test="legalPerson != null and legalPerson != ''">
|
||||
legal_person,
|
||||
</if>
|
||||
<if test="invitationCode != null and invitationCode != ''">
|
||||
invitation_code,
|
||||
</if>
|
||||
<if test="invitationCoName != null and invitationCoName != ''">
|
||||
invitation_co_name,
|
||||
</if>
|
||||
<if test="businessScope != null and businessScope != ''">
|
||||
business_scope,
|
||||
</if>
|
||||
<if test="authPerson != null and authPerson != ''">
|
||||
auth_person,
|
||||
</if>
|
||||
<if test="authIdNumber != null and authIdNumber != ''">
|
||||
auth_id_number,
|
||||
</if>
|
||||
<if test="authPhone != null and authPhone != ''">
|
||||
auth_phone,
|
||||
</if>
|
||||
<if test="authDocument != null and authDocument != ''">
|
||||
auth_document,
|
||||
</if>
|
||||
<if test="idFaceUrl != null and idFaceUrl != ''">
|
||||
id_face_url,
|
||||
</if>
|
||||
<if test="idNationUrl != null and idNationUrl != ''">
|
||||
id_nation_url,
|
||||
</if>
|
||||
<if test="createTime != null and createTime != ''">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="creator != null and creator != ''">
|
||||
creator,
|
||||
</if>
|
||||
<if test="auditor != null">
|
||||
auditor,
|
||||
</if>
|
||||
<if test="auditTime != null and auditTime != ''">
|
||||
audit_time,
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
audit_remark,
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="updateTime != null and updateTime != ''">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="companyName != null and companyName != ''">
|
||||
#{companyName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyType != null and companyType != ''">
|
||||
#{companyType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyLtd != null and companyLtd != ''">
|
||||
#{companyLtd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creditCode != null and creditCode != ''">
|
||||
#{creditCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registerAddress != null and registerAddress != ''">
|
||||
#{registerAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="operateAddress != null and operateAddress != ''">
|
||||
#{operateAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="certificatetype != null and certificatetype != ''">
|
||||
#{certificatetype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="idNumber != null and idNumber != ''">
|
||||
#{idNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessLicense != null and businessLicense != ''">
|
||||
#{businessLicense,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="legalPerson != null and legalPerson != ''">
|
||||
#{legalPerson,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invitationCode != null and invitationCode != ''">
|
||||
#{invitationCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invitationCoName != null and invitationCoName != ''">
|
||||
#{invitationCoName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessScope != null and businessScope != ''">
|
||||
#{businessScope,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authPerson != null and authPerson != ''">
|
||||
#{authPerson,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authIdNumber != null and authIdNumber != ''">
|
||||
#{authIdNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authPhone != null and authPhone != ''">
|
||||
#{authPhone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authDocument != null and authDocument != ''">
|
||||
#{authDocument,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="idFaceUrl != null and idFaceUrl != ''">
|
||||
#{idFaceUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="idNationUrl != null and idNationUrl != ''">
|
||||
#{idNationUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null and createTime != ''">
|
||||
#{createTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creator != null and creator != ''">
|
||||
#{creator,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="auditor != null">
|
||||
#{auditor,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="auditTime != null and auditTime != ''">
|
||||
#{auditTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
#{auditRemark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null and updateTime != ''">
|
||||
#{updateTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.zlpt.company.domain.BmCompanyInfo">
|
||||
<!--@mbg.generated-->
|
||||
update bm_company_info
|
||||
<set>
|
||||
<if test="companyName != null and companyName != ''">
|
||||
company_name = #{companyName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyType != null and companyType != ''">
|
||||
company_type = #{companyType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyLtd != null and companyLtd != ''">
|
||||
company_ltd = #{companyLtd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creditCode != null and creditCode != ''">
|
||||
credit_code = #{creditCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registerAddress != null and registerAddress != ''">
|
||||
register_address = #{registerAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="operateAddress != null and operateAddress != ''">
|
||||
operate_address = #{operateAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="certificatetype != null and certificatetype != ''">
|
||||
certificateType = #{certificatetype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="idNumber != null and idNumber != ''">
|
||||
id_number = #{idNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessLicense != null and businessLicense != ''">
|
||||
business_license = #{businessLicense,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="legalPerson != null and legalPerson != ''">
|
||||
legal_person = #{legalPerson,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invitationCode != null and invitationCode != ''">
|
||||
invitation_code = #{invitationCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invitationCoName != null and invitationCoName != ''">
|
||||
invitation_co_name = #{invitationCoName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessScope != null and businessScope != ''">
|
||||
business_scope = #{businessScope,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authPerson != null and authPerson != ''">
|
||||
auth_person = #{authPerson,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authIdNumber != null and authIdNumber != ''">
|
||||
auth_id_number = #{authIdNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authPhone != null and authPhone != ''">
|
||||
auth_phone = #{authPhone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="authDocument != null and authDocument != ''">
|
||||
auth_document = #{authDocument,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="idFaceUrl != null and idFaceUrl != ''">
|
||||
id_face_url = #{idFaceUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="idNationUrl != null and idNationUrl != ''">
|
||||
id_nation_url = #{idNationUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null and createTime != ''">
|
||||
create_time = #{createTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creator != null and creator != ''">
|
||||
creator = #{creator,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="auditor != null">
|
||||
auditor = #{auditor,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="auditTime != null and auditTime != ''">
|
||||
audit_time = #{auditTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
audit_remark = #{auditRemark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
`status` = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null and updateTime != ''">
|
||||
update_time = #{updateTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where company_id = #{companyId,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<update id="updateByPrimaryKey" parameterType="com.bonus.zlpt.company.domain.BmCompanyInfo">
|
||||
<!--@mbg.generated-->
|
||||
update bm_company_info
|
||||
set company_name = #{companyName,jdbcType=VARCHAR},
|
||||
company_type = #{companyType,jdbcType=VARCHAR},
|
||||
company_ltd = #{companyLtd,jdbcType=VARCHAR},
|
||||
credit_code = #{creditCode,jdbcType=VARCHAR},
|
||||
register_address = #{registerAddress,jdbcType=VARCHAR},
|
||||
operate_address = #{operateAddress,jdbcType=VARCHAR},
|
||||
certificateType = #{certificatetype,jdbcType=VARCHAR},
|
||||
id_number = #{idNumber,jdbcType=VARCHAR},
|
||||
business_license = #{businessLicense,jdbcType=VARCHAR},
|
||||
legal_person = #{legalPerson,jdbcType=VARCHAR},
|
||||
invitation_code = #{invitationCode,jdbcType=VARCHAR},
|
||||
invitation_co_name = #{invitationCoName,jdbcType=VARCHAR},
|
||||
business_scope = #{businessScope,jdbcType=VARCHAR},
|
||||
auth_person = #{authPerson,jdbcType=VARCHAR},
|
||||
auth_id_number = #{authIdNumber,jdbcType=VARCHAR},
|
||||
auth_phone = #{authPhone,jdbcType=VARCHAR},
|
||||
auth_document = #{authDocument,jdbcType=VARCHAR},
|
||||
id_face_url = #{idFaceUrl,jdbcType=VARCHAR},
|
||||
id_nation_url = #{idNationUrl,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=VARCHAR},
|
||||
creator = #{creator,jdbcType=VARCHAR},
|
||||
auditor = #{auditor,jdbcType=INTEGER},
|
||||
audit_time = #{auditTime,jdbcType=VARCHAR},
|
||||
audit_remark = #{auditRemark,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=VARCHAR}
|
||||
where company_id = #{companyId,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectCompanyList" resultMap="BaseResultMap">
|
||||
select * from bm_company_info
|
||||
<where>
|
||||
status = '1'
|
||||
<if test="companyName!= null and companyName!= ''">
|
||||
and company_name like concat('%', #{companyName}, '%')
|
||||
</if>
|
||||
<if test="companyType!= null and companyType!= ''">
|
||||
and company_type like concat('%', #{companyType}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.zlpt.company.mapper.MaUserCollectMapper">
|
||||
<resultMap id="BaseResultMap" type="com.bonus.zlpt.company.domain.MaUserCollect">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table ma_user_collect-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
||||
<result column="ma_id" jdbcType="INTEGER" property="maId" />
|
||||
<result column="time" jdbcType="VARCHAR" property="time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, user_id, ma_id, `time`
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from ma_user_collect
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete from ma_user_collect
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bonus.zlpt.company.domain.MaUserCollect" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into ma_user_collect (user_id, ma_id, `time`)
|
||||
values (#{userId,jdbcType=INTEGER}, #{maId,jdbcType=INTEGER}, #{time,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.zlpt.company.domain.MaUserCollect" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into ma_user_collect
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="maId != null">
|
||||
ma_id,
|
||||
</if>
|
||||
<if test="time != null and time != ''">
|
||||
`time`,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="maId != null">
|
||||
#{maId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="time != null and time != ''">
|
||||
#{time,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.zlpt.company.domain.MaUserCollect">
|
||||
<!--@mbg.generated-->
|
||||
update ma_user_collect
|
||||
<set>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="maId != null">
|
||||
ma_id = #{maId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="time != null and time != ''">
|
||||
`time` = #{time,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<update id="updateByPrimaryKey" parameterType="com.bonus.zlpt.company.domain.MaUserCollect">
|
||||
<!--@mbg.generated-->
|
||||
update ma_user_collect
|
||||
set user_id = #{userId,jdbcType=INTEGER},
|
||||
ma_id = #{maId,jdbcType=INTEGER},
|
||||
`time` = #{time,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectByMaId" resultType="com.bonus.zlpt.company.domain.MaUserCollect">
|
||||
select
|
||||
ma_user_collect.id, ma_user_collect.user_id, ma_user_collect.ma_id, ma_user_collect.`time`,mdi.model_name as maName,
|
||||
su.user_name as userName
|
||||
from ma_user_collect
|
||||
left join ma_zlpt.ma_dev_info mdi on ma_user_collect.ma_id = mdi.ma_id
|
||||
left join sys_user su on ma_user_collect.user_id = su.user_id
|
||||
where ma_user_collect.ma_id = #{maId,jdbcType=INTEGER}
|
||||
</select>
|
||||
|
||||
<select id="selectAll" resultType="com.bonus.zlpt.company.domain.MaUserCollect">
|
||||
select
|
||||
ma_user_collect.id, ma_user_collect.user_id, ma_user_collect.ma_id, ma_user_collect.`time`,mdi.model_name as maName,
|
||||
su.user_name as userName
|
||||
from ma_user_collect
|
||||
left join ma_zlpt.ma_dev_info mdi on ma_user_collect.ma_id = mdi.ma_id
|
||||
left join sys_user su on ma_user_collect.user_id = su.user_id
|
||||
<where>
|
||||
<if test="userId != null and userId != ''">
|
||||
and ma_user_collect.user_id = #{userId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="maId != null and maId != ''">
|
||||
and ma_user_collect.ma_id = #{maId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue