删除代码生成往来单位管理

This commit is contained in:
bonus 2024-08-12 10:59:07 +08:00
parent 0a2315d4fa
commit 4ffa82f310
27 changed files with 117 additions and 121 deletions

View File

@ -1,4 +1,4 @@
package com.bonus.base.domain;
package com.bonus.base.api.domain;
import com.bonus.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
@ -55,6 +55,7 @@ public class BmAgreement extends BaseEntity implements Serializable {
@ApiModelProperty(value="")
private String creator;
@ApiModelProperty(value="")
private String remark;
@ -79,4 +80,4 @@ public class BmAgreement extends BaseEntity implements Serializable {
@ApiModelProperty(value="i8系统是否推送")
private String isPush;
}
}

View File

@ -1,4 +1,4 @@
package com.bonus.base.domain;
package com.bonus.base.api.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

View File

@ -1,4 +1,4 @@
package com.bonus.base.domain;
package com.bonus.base.api.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -40,4 +40,4 @@ public class BmCustomerType implements Serializable {
@ApiModelProperty(value="数据所属组织")
private Integer companyId;
}
}

View File

@ -1,4 +1,4 @@
package com.bonus.base.domain;
package com.bonus.base.api.domain;
import com.bonus.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
@ -179,4 +179,4 @@ public class BmProject extends BaseEntity implements Serializable {
private String isMatch;
private static final long serialVersionUID = 1L;
}
}

View File

@ -1,4 +1,4 @@
package com.bonus.base.domain;
package com.bonus.base.api.domain;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;

View File

@ -1,9 +1,8 @@
package com.bonus.base.controller;
import com.bonus.base.domain.BmAgreement;
import com.bonus.base.api.domain.BmAgreement;
import com.bonus.base.service.BmAgreementService;
import com.bonus.base.utils.ResultBean;
import com.bonus.common.core.constant.HttpStatus;
import com.bonus.common.core.web.controller.BaseController;
import com.bonus.common.core.web.page.TableDataInfo;
import org.springframework.web.bind.annotation.*;

View File

@ -1,6 +1,6 @@
package com.bonus.base.controller;
import com.bonus.base.domain.BmCustomer;
import com.bonus.base.api.domain.BmCustomer;
import com.bonus.base.service.IBmCustomerService;
import com.bonus.common.core.web.controller.BaseController;
import com.bonus.common.core.web.domain.AjaxResult;
@ -9,7 +9,6 @@ import com.bonus.common.core.web.page.TableDataInfo;
import com.bonus.common.log.annotation.SysLog;
import com.bonus.common.log.enums.OperaType;
import com.bonus.common.security.annotation.RequiresPermissions;
import com.bonus.common.security.utils.SecurityUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;

View File

@ -1,6 +1,6 @@
package com.bonus.base.controller;
import com.bonus.base.domain.BmCustomerType;
import com.bonus.base.api.domain.BmCustomerType;
import com.bonus.base.service.BmCustomerTypeService;
import com.bonus.base.utils.ResultBean;
import com.bonus.common.core.web.controller.BaseController;

View File

@ -1,5 +1,5 @@
package com.bonus.base.controller;
import com.bonus.base.domain.BmProject;
import com.bonus.base.api.domain.BmProject;
import com.bonus.base.service.BmProjectService;
import com.bonus.base.utils.ResultBean;
import com.bonus.common.core.utils.poi.ExcelUtil;

View File

@ -1,6 +1,6 @@
package com.bonus.base.controller;
import com.bonus.base.domain.BmSupplier;
import com.bonus.base.api.domain.BmSupplier;
import com.bonus.base.service.BmSupplierService;
import com.bonus.base.utils.ResultBean;
import com.bonus.common.core.utils.poi.ExcelUtil;

View File

@ -1,6 +1,6 @@
package com.bonus.base.mapper;
import com.bonus.base.domain.BmAgreement;
import com.bonus.base.api.domain.BmAgreement;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@ -62,4 +62,4 @@ public interface BmAgreementMapper {
*/
int updateByPrimaryKey(BmAgreement record);
}
}

View File

@ -1,6 +1,6 @@
package com.bonus.base.mapper;
import com.bonus.base.domain.BmCustomer;
import com.bonus.base.api.domain.BmCustomer;
import java.util.List;

View File

@ -1,6 +1,6 @@
package com.bonus.base.mapper;
import com.bonus.base.domain.BmCustomerType;
import com.bonus.base.api.domain.BmCustomerType;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@ -63,4 +63,4 @@ public interface BmCustomerTypeMapper {
List<BmCustomerType> selectAll();
int updateById(@Param("updated") BmCustomerType updated, @Param("id") Integer id);
}
}

View File

@ -1,6 +1,6 @@
package com.bonus.base.mapper;
import com.bonus.base.domain.BmProject;
import com.bonus.base.api.domain.BmProject;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@ -64,4 +64,4 @@ public interface BmProjectMapper {
* @return update count
*/
int updateByPrimaryKey(BmProject record);
}
}

View File

@ -1,6 +1,6 @@
package com.bonus.base.mapper;
import com.bonus.base.domain.BmSupplier;
import com.bonus.base.api.domain.BmSupplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

View File

@ -2,9 +2,7 @@ package com.bonus.base.service;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.bonus.base.domain.BmAgreement;
import com.bonus.base.api.domain.BmAgreement;
import com.bonus.base.mapper.BmAgreementMapper;
import javax.annotation.Resource;

View File

@ -5,7 +5,7 @@ import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.bonus.base.domain.BmCustomerType;
import com.bonus.base.api.domain.BmCustomerType;
import com.bonus.base.mapper.BmCustomerTypeMapper;
/**
* @PackagePath: com.bonus.base
@ -24,47 +24,47 @@ public class BmCustomerTypeService{
return bmCustomerTypeMapper.deleteByPrimaryKey(id);
}
public int insert(BmCustomerType record) {
return bmCustomerTypeMapper.insert(record);
}
public int insertOrUpdate(BmCustomerType record) {
return bmCustomerTypeMapper.insertOrUpdate(record);
}
public int insertOrUpdateSelective(BmCustomerType record) {
return bmCustomerTypeMapper.insertOrUpdateSelective(record);
}
public int insertSelective(BmCustomerType record) {
return bmCustomerTypeMapper.insertSelective(record);
}
public BmCustomerType selectByPrimaryKey(Integer id) {
return bmCustomerTypeMapper.selectByPrimaryKey(id);
}
public int updateByPrimaryKeySelective(BmCustomerType record) {
return bmCustomerTypeMapper.updateByPrimaryKeySelective(record);
}
public int updateByPrimaryKey(BmCustomerType record) {
return bmCustomerTypeMapper.updateByPrimaryKey(record);
}
public List<BmCustomerType> selectAll() {
return bmCustomerTypeMapper.selectAll();
}
public int updateById(BmCustomerType updated,Integer id) {
return bmCustomerTypeMapper.updateById(updated,id);
}

View File

@ -5,7 +5,7 @@ import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.bonus.base.domain.BmProject;
import com.bonus.base.api.domain.BmProject;
import java.util.List;
@ -33,7 +33,7 @@ public class BmProjectService{
public int updateIsActive(Integer id) {
return bmProjectMapper.updateIsActive(id);
}
public int insert(BmProject record) {
return bmProjectMapper.insert(record);
}
@ -45,7 +45,7 @@ public class BmProjectService{
public int insertOrUpdateSelective(BmProject record) {
return bmProjectMapper.insertOrUpdateSelective(record);
}
public int insertSelective(BmProject record) {
return bmProjectMapper.insertSelective(record);
}
@ -57,7 +57,7 @@ public class BmProjectService{
public int updateByPrimaryKeySelective(BmProject record) {
return bmProjectMapper.updateByPrimaryKeySelective(record);
}
public int updateByPrimaryKey(BmProject record) {
return bmProjectMapper.updateByPrimaryKey(record);
}

View File

@ -1,6 +1,6 @@
package com.bonus.base.service;
import com.bonus.base.domain.BmSupplier;
import com.bonus.base.api.domain.BmSupplier;
import java.util.List;

View File

@ -1,6 +1,6 @@
package com.bonus.base.service;
import com.bonus.base.domain.BmCustomer;
import com.bonus.base.api.domain.BmCustomer;
import java.util.List;

View File

@ -1,7 +1,6 @@
package com.bonus.base.service.impl;
import com.bonus.base.domain.BmCustomer;
import com.bonus.base.mapper.BmAgreementMapper;
import com.bonus.base.api.domain.BmCustomer;
import com.bonus.base.mapper.BmCustomerMapper;
import com.bonus.base.service.IBmCustomerService;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,6 +1,6 @@
package com.bonus.base.service.impl;
import com.bonus.base.domain.BmSupplier;
import com.bonus.base.api.domain.BmSupplier;
import com.bonus.base.mapper.BmSupplierMapper;
import com.bonus.base.service.BmSupplierService;
import org.springframework.stereotype.Service;

View File

@ -1,7 +1,7 @@
<?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.base.mapper.BmAgreementMapper">
<resultMap id="BaseResultMap" type="com.bonus.base.domain.BmAgreement">
<resultMap id="BaseResultMap" type="com.bonus.base.api.domain.BmAgreement">
<!--@mbg.generated-->
<!--@Table bm_agreement-->
<id column="id" jdbcType="INTEGER" property="id" />
@ -27,12 +27,12 @@
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, sign_date, project, start_time, lease_term, advance_charge,
authorizing_person, authorizing_phone, contract_number, creator, create_time, remark,
authorizing_person, authorizing_phone, contract_number, creator, create_time, remark,
settlement_time, is_balance, url, is_sure, company_id, is_push
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
select
<include refid="Base_Column_List" />
from bm_agreement
where id = #{id,jdbcType=INTEGER}
@ -49,23 +49,23 @@
delete from bm_agreement
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.bonus.base.domain.BmAgreement">
<insert id="insert" parameterType="com.bonus.base.api.domain.BmAgreement">
<!--@mbg.generated-->
insert into bm_agreement (id, code, sign_date, project, start_time,
lease_term, advance_charge, authorizing_person,
authorizing_phone, contract_number, creator,
create_time, remark, settlement_time,
is_balance, url, is_sure,
lease_term, advance_charge, authorizing_person,
authorizing_phone, contract_number, creator,
create_time, remark, settlement_time,
is_balance, url, is_sure,
company_id, is_push)
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{signDate,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{signDate,jdbcType=VARCHAR},
#{project,jdbcType=INTEGER}, #{startTime,jdbcType=VARCHAR},
#{leaseTerm,jdbcType=VARCHAR}, #{advanceCharge,jdbcType=VARCHAR}, #{authorizingPerson,jdbcType=VARCHAR},
#{authorizingPhone,jdbcType=VARCHAR}, #{contractNumber,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
#{createTime,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{settlementTime,jdbcType=VARCHAR},
#{isBalance,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{isSure,jdbcType=VARCHAR},
#{leaseTerm,jdbcType=VARCHAR}, #{advanceCharge,jdbcType=VARCHAR}, #{authorizingPerson,jdbcType=VARCHAR},
#{authorizingPhone,jdbcType=VARCHAR}, #{contractNumber,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
#{createTime,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{settlementTime,jdbcType=VARCHAR},
#{isBalance,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{isSure,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER}, #{isPush,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.bonus.base.domain.BmAgreement">
<insert id="insertSelective" parameterType="com.bonus.base.api.domain.BmAgreement">
<!--@mbg.generated-->
insert into bm_agreement
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -188,7 +188,7 @@
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.domain.BmAgreement">
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.api.domain.BmAgreement">
<!--@mbg.generated-->
update bm_agreement
<set>
@ -249,7 +249,7 @@
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.bonus.base.domain.BmAgreement">
<update id="updateByPrimaryKey" parameterType="com.bonus.base.api.domain.BmAgreement">
<!--@mbg.generated-->
update bm_agreement
set code = #{code,jdbcType=VARCHAR},
@ -272,43 +272,43 @@
is_push = #{isPush,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="insertOrUpdate" parameterType="com.bonus.base.domain.BmAgreement">
<insert id="insertOrUpdate" parameterType="com.bonus.base.api.domain.BmAgreement">
<!--@mbg.generated-->
insert into bm_agreement
(id, code, sign_date, project, start_time, lease_term, advance_charge,
authorizing_person, authorizing_phone, contract_number, creator, create_time, remark,
authorizing_person, authorizing_phone, contract_number, creator, create_time, remark,
settlement_time, is_balance, url, is_sure, company_id, is_push)
values
(#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{signDate,jdbcType=VARCHAR},
(#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{signDate,jdbcType=VARCHAR},
#{project,jdbcType=INTEGER}, #{startTime,jdbcType=VARCHAR},
#{leaseTerm,jdbcType=VARCHAR}, #{advanceCharge,jdbcType=VARCHAR}, #{authorizingPerson,jdbcType=VARCHAR},
#{authorizingPhone,jdbcType=VARCHAR}, #{contractNumber,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
#{createTime,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{settlementTime,jdbcType=VARCHAR},
#{isBalance,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{isSure,jdbcType=VARCHAR},
#{leaseTerm,jdbcType=VARCHAR}, #{advanceCharge,jdbcType=VARCHAR}, #{authorizingPerson,jdbcType=VARCHAR},
#{authorizingPhone,jdbcType=VARCHAR}, #{contractNumber,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
#{createTime,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{settlementTime,jdbcType=VARCHAR},
#{isBalance,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{isSure,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER}, #{isPush,jdbcType=VARCHAR})
on duplicate key update
id = #{id,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR},
sign_date = #{signDate,jdbcType=VARCHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR},
sign_date = #{signDate,jdbcType=VARCHAR},
project = #{project,jdbcType=INTEGER},
start_time = #{startTime,jdbcType=VARCHAR},
lease_term = #{leaseTerm,jdbcType=VARCHAR},
advance_charge = #{advanceCharge,jdbcType=VARCHAR},
authorizing_person = #{authorizingPerson,jdbcType=VARCHAR},
authorizing_phone = #{authorizingPhone,jdbcType=VARCHAR},
contract_number = #{contractNumber,jdbcType=VARCHAR},
creator = #{creator,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
settlement_time = #{settlementTime,jdbcType=VARCHAR},
is_balance = #{isBalance,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
is_sure = #{isSure,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=INTEGER},
start_time = #{startTime,jdbcType=VARCHAR},
lease_term = #{leaseTerm,jdbcType=VARCHAR},
advance_charge = #{advanceCharge,jdbcType=VARCHAR},
authorizing_person = #{authorizingPerson,jdbcType=VARCHAR},
authorizing_phone = #{authorizingPhone,jdbcType=VARCHAR},
contract_number = #{contractNumber,jdbcType=VARCHAR},
creator = #{creator,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
settlement_time = #{settlementTime,jdbcType=VARCHAR},
is_balance = #{isBalance,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
is_sure = #{isSure,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=INTEGER},
is_push = #{isPush,jdbcType=VARCHAR}
</insert>
<insert id="insertOrUpdateSelective" parameterType="com.bonus.base.domain.BmAgreement">
<insert id="insertOrUpdateSelective" parameterType="com.bonus.base.api.domain.BmAgreement">
<!--@mbg.generated-->
insert into bm_agreement
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -430,7 +430,7 @@
#{isPush,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
@ -492,4 +492,4 @@
</trim>
</insert>
</mapper>
</mapper>

View File

@ -1,7 +1,7 @@
<?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.base.mapper.BmCustomerMapper">
<resultMap id="BaseResultMap" type="com.bonus.base.domain.BmCustomer">
<resultMap id="BaseResultMap" type="com.bonus.base.api.domain.BmCustomer">
<!--@mbg.generated-->
<!--@Table bm_customer-->
<id column="id" jdbcType="INTEGER" property="id" />
@ -49,7 +49,7 @@
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertCustomer" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmCustomer" useGeneratedKeys="true">
<insert id="insertCustomer" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.api.domain.BmCustomer" useGeneratedKeys="true">
insert into bm_customer (type_id, company_id, `name`,
material_clerk, manager, phone,
is_active, `time`, legal_representative,
@ -62,7 +62,7 @@
)
</insert>
<update id="updateCustomer" parameterType="com.bonus.base.domain.BmCustomer">
<update id="updateCustomer" parameterType="com.bonus.base.api.domain.BmCustomer">
update bm_customer
set type_id = #{typeId,jdbcType=INTEGER},
company_id = #{companyId,jdbcType=INTEGER},

View File

@ -1,7 +1,7 @@
<?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.base.mapper.BmCustomerTypeMapper">
<resultMap id="BaseResultMap" type="com.bonus.base.domain.BmCustomerType">
<resultMap id="BaseResultMap" type="com.bonus.base.api.domain.BmCustomerType">
<!--@mbg.generated-->
<!--@Table bm_customer_type-->
<id column="ID" jdbcType="INTEGER" property="id" />
@ -17,7 +17,7 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
select
<include refid="Base_Column_List" />
from bm_customer_type
where ID = #{id,jdbcType=INTEGER}
@ -29,14 +29,14 @@
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.domain.BmCustomerType" useGeneratedKeys="true">
<insert id="insert" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.api.domain.BmCustomerType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_customer_type (`NAME`, IS_ACTIVE, COMPANY_ID
)
values (#{name,jdbcType=VARCHAR}, #{isActive,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.domain.BmCustomerType" useGeneratedKeys="true">
<insert id="insertSelective" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.api.domain.BmCustomerType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_customer_type
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -62,7 +62,7 @@
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.domain.BmCustomerType">
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.api.domain.BmCustomerType">
<!--@mbg.generated-->
update bm_customer_type
<set>
@ -78,7 +78,7 @@
</set>
where ID = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.bonus.base.domain.BmCustomerType">
<update id="updateByPrimaryKey" parameterType="com.bonus.base.api.domain.BmCustomerType">
<!--@mbg.generated-->
update bm_customer_type
set `NAME` = #{name,jdbcType=VARCHAR},
@ -115,7 +115,7 @@
where ID = #{id,jdbcType=INTEGER}
</update>
<insert id="insertOrUpdate" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.domain.BmCustomerType" useGeneratedKeys="true">
<insert id="insertOrUpdate" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.api.domain.BmCustomerType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_customer_type
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -135,7 +135,7 @@
#{isActive,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER},
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
ID = #{id,jdbcType=INTEGER},
@ -146,7 +146,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.domain.BmCustomerType" useGeneratedKeys="true">
<insert id="insertOrUpdateSelective" keyColumn="ID" keyProperty="id" parameterType="com.bonus.base.api.domain.BmCustomerType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_customer_type
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -178,7 +178,7 @@
#{companyId,jdbcType=INTEGER},
</if>
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
ID = #{id,jdbcType=INTEGER},
@ -195,4 +195,4 @@
</trim>
</insert>
</mapper>
</mapper>

View File

@ -1,7 +1,7 @@
<?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.base.mapper.BmProjectMapper">
<resultMap id="BaseResultMap" type="com.bonus.base.domain.BmProject">
<resultMap id="BaseResultMap" type="com.bonus.base.api.domain.BmProject">
<!--@mbg.generated-->
<!--@Table bm_project-->
<id column="id" jdbcType="INTEGER" property="id" />
@ -34,14 +34,14 @@
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, project_type, `name`, num, manager, nature, telphone, phone, fax, address, remarks,
id, project_type, `name`, num, manager, nature, telphone, phone, fax, address, remarks,
material_clerk, company_id, `time`,
is_active, lon, lat, company, imp_unit, dept_name, pro_id, dept_id, cvo, stats, htzt, is_match
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
select
<include refid="Base_Column_List" />
from bm_project
where id = #{id,jdbcType=INTEGER}
@ -61,7 +61,7 @@
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.api.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project (project_type, `name`, num,
manager, nature, telphone,
@ -71,17 +71,17 @@
lat, company, imp_unit,
dept_name, pro_id, dept_id,
cvo, stats, htzt)
values (#{projectType,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR},
#{manager,jdbcType=VARCHAR}, #{nature,jdbcType=VARCHAR}, #{telphone,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
values (#{projectType,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR},
#{manager,jdbcType=VARCHAR}, #{nature,jdbcType=VARCHAR}, #{telphone,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
#{remarks,jdbcType=VARCHAR}, #{materialClerk,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER},
#{time,jdbcType=VARCHAR}, '1', #{lon,jdbcType=VARCHAR},
#{lat,jdbcType=VARCHAR}, #{company,jdbcType=VARCHAR}, #{impUnit,jdbcType=VARCHAR},
#{deptName,jdbcType=VARCHAR}, #{proId,jdbcType=VARCHAR}, #{deptId,jdbcType=INTEGER},
#{lat,jdbcType=VARCHAR}, #{company,jdbcType=VARCHAR}, #{impUnit,jdbcType=VARCHAR},
#{deptName,jdbcType=VARCHAR}, #{proId,jdbcType=VARCHAR}, #{deptId,jdbcType=INTEGER},
#{cvo,jdbcType=VARCHAR}, #{stats,jdbcType=VARCHAR}, #{htzt,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.api.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -233,7 +233,7 @@
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.domain.BmProject">
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.api.domain.BmProject">
<!--@mbg.generated-->
update bm_project
<set>
@ -313,7 +313,7 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.bonus.base.domain.BmProject">
<update id="updateByPrimaryKey" parameterType="com.bonus.base.api.domain.BmProject">
<!--@mbg.generated-->
update bm_project
set project_type = #{projectType,jdbcType=INTEGER},
@ -343,7 +343,7 @@
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.api.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -405,7 +405,7 @@
#{stats,jdbcType=VARCHAR},
#{htzt,jdbcType=VARCHAR},
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
@ -436,7 +436,7 @@
htzt = #{htzt,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.api.domain.BmProject" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into bm_project
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -594,7 +594,7 @@
#{htzt,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
@ -678,4 +678,4 @@
update bm_project set is_active = '0' where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
</mapper>

View File

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bonus.base.mapper.BmSupplierMapper">
<resultMap type="com.bonus.base.domain.BmSupplier" id="BmSupplierMap">
<resultMap type="com.bonus.base.api.domain.BmSupplier" id="BmSupplierMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="address" column="address" jdbcType="VARCHAR"/>