Showing
9 changed files
with
887 additions
and
0 deletions
| @@ -1531,3 +1531,57 @@ CREATE TABLE `procurement_domestic_customer_credit` | @@ -1531,3 +1531,57 @@ CREATE TABLE `procurement_domestic_customer_credit` | ||
| 1531 | KEY `idx_pdcc_review_valid_until` (`review_valid_until`), | 1531 | KEY `idx_pdcc_review_valid_until` (`review_valid_until`), |
| 1532 | KEY `idx_pdcc_create_time` (`create_time`) | 1532 | KEY `idx_pdcc_create_time` (`create_time`) |
| 1533 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='采购内贸资信调查表'; | 1533 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='采购内贸资信调查表'; |
| 1534 | + | ||
| 1535 | + | ||
| 1536 | +CREATE TABLE `procurement_foreign_trade_credit` | ||
| 1537 | +( | ||
| 1538 | + `id` varchar(32) NOT NULL COMMENT 'ID', | ||
| 1539 | + `unit_name` varchar(200) NOT NULL COMMENT '单位名称', | ||
| 1540 | + `company_nature` varchar(200) NOT NULL COMMENT '公司性质', | ||
| 1541 | + `legal_representative` varchar(200) NOT NULL COMMENT '法人代表', | ||
| 1542 | + `phone_and_fax` varchar(200) NOT NULL COMMENT '电话及传真', | ||
| 1543 | + `registration_certificate_no` varchar(200) NOT NULL COMMENT '注册证书号', | ||
| 1544 | + `address` varchar(500) NOT NULL COMMENT '地址', | ||
| 1545 | + `domestic_business_principal` varchar(200) NOT NULL COMMENT '国内业务负责人', | ||
| 1546 | + `principal_certificate_no` varchar(200) NOT NULL COMMENT '业务负责人身份证或(护照)证号码', | ||
| 1547 | + `established_time_and_yard_scale` text NOT NULL COMMENT '公司成立时间及自有货场规模', | ||
| 1548 | + `overall_business_varieties_scale` text NOT NULL COMMENT '整体经营品种、规模', | ||
| 1549 | + `export_to_domestic_time` varchar(200) NOT NULL COMMENT '出口到国内时间', | ||
| 1550 | + `export_to_domestic_scale_varieties` text NOT NULL COMMENT '出口到国内规模、品种', | ||
| 1551 | + `cooperating_domestic_companies` text NOT NULL COMMENT '与国内合作企业', | ||
| 1552 | + `cooperation_effect` text NOT NULL COMMENT '合作效果', | ||
| 1553 | + `supplier_inspection` text NOT NULL COMMENT '供应商考察', | ||
| 1554 | + `domestic_sales_office_inspection` text NOT NULL COMMENT '国内销售代表办公地考察', | ||
| 1555 | + `guarantee_letter` varchar(200) NOT NULL COMMENT '有无担保函', | ||
| 1556 | + `contract_dispute` text NOT NULL COMMENT '合同纠纷', | ||
| 1557 | + `insurance_transport_mode` varchar(500) NOT NULL COMMENT '保险、运输方式', | ||
| 1558 | + `detention_demurrage_fee` varchar(500) NOT NULL COMMENT '滞箱滞报费用', | ||
| 1559 | + `operation_variety` varchar(500) NOT NULL COMMENT '操作品种', | ||
| 1560 | + `operation_scale` varchar(500) NOT NULL COMMENT '操作规模', | ||
| 1561 | + `pricing_mode` varchar(500) NOT NULL COMMENT '定价模式', | ||
| 1562 | + `settlement_method` varchar(500) NOT NULL COMMENT '结算方式', | ||
| 1563 | + `weight_difference_agreement` text NOT NULL COMMENT '磅差约定', | ||
| 1564 | + `quality_standard` text NOT NULL COMMENT '质量标准', | ||
| 1565 | + `supplier_category` varchar(20) NOT NULL COMMENT '供应商分类', | ||
| 1566 | + `scheme_operation_time` varchar(200) NOT NULL COMMENT '操作时间', | ||
| 1567 | + `scheme_operation_mode` varchar(200) NOT NULL COMMENT '操作模式', | ||
| 1568 | + `scheme_operation_variety` varchar(200) NOT NULL COMMENT '操作品种', | ||
| 1569 | + `scheme_operation_quantity` varchar(200) NOT NULL COMMENT '操作数量', | ||
| 1570 | + `shipping_requirement` text NOT NULL COMMENT '发货要求', | ||
| 1571 | + `payment_method` varchar(500) NOT NULL COMMENT '付款方式', | ||
| 1572 | + `next_review_time` date NOT NULL COMMENT '下次评审时间', | ||
| 1573 | + `review_department` varchar(200) NOT NULL COMMENT '评审部门', | ||
| 1574 | + `status` varchar(20) DEFAULT NULL COMMENT '审核状态', | ||
| 1575 | + `freeze` bool DEFAULT false COMMENT '是否冻结', | ||
| 1576 | + `create_by_id` varchar(32) DEFAULT NULL COMMENT '创建人ID', | ||
| 1577 | + `create_by` varchar(64) DEFAULT NULL COMMENT '创建人', | ||
| 1578 | + `update_by_id` varchar(32) DEFAULT NULL COMMENT '更新人ID', | ||
| 1579 | + `update_by` varchar(64) DEFAULT NULL COMMENT '更新人', | ||
| 1580 | + `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', | ||
| 1581 | + `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', | ||
| 1582 | + PRIMARY KEY (`id`), | ||
| 1583 | + KEY `idx_pftc_unit_name` (`unit_name`), | ||
| 1584 | + KEY `idx_pftc_supplier_category` (`supplier_category`), | ||
| 1585 | + KEY `idx_pftc_next_review_time` (`next_review_time`), | ||
| 1586 | + KEY `idx_pftc_create_time` (`create_time`) | ||
| 1587 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='采购外贸资信调查表'; |
| 1 | +package com.lframework.xingyun.sc.procurement.controller.credit; | ||
| 2 | + | ||
| 3 | +import com.lframework.starter.web.core.annotations.security.HasPermission; | ||
| 4 | +import com.lframework.starter.web.core.components.resp.InvokeResult; | ||
| 5 | +import com.lframework.starter.web.core.components.resp.InvokeResultBuilder; | ||
| 6 | +import com.lframework.starter.web.core.components.resp.PageResult; | ||
| 7 | +import com.lframework.starter.web.core.controller.DefaultBaseController; | ||
| 8 | +import com.lframework.xingyun.sc.procurement.entity.ProcurementForeignTradeCredit; | ||
| 9 | +import com.lframework.xingyun.sc.procurement.service.credit.ProcurementForeignTradeCreditService; | ||
| 10 | +import com.lframework.xingyun.sc.procurement.vo.credit.CreateProcurementForeignTradeCreditVo; | ||
| 11 | +import com.lframework.xingyun.sc.procurement.vo.credit.QueryProcurementForeignTradeCreditVo; | ||
| 12 | +import io.swagger.annotations.Api; | ||
| 13 | +import io.swagger.annotations.ApiImplicitParam; | ||
| 14 | +import io.swagger.annotations.ApiOperation; | ||
| 15 | +import org.springframework.validation.annotation.Validated; | ||
| 16 | +import org.springframework.web.bind.annotation.*; | ||
| 17 | + | ||
| 18 | +import javax.annotation.Resource; | ||
| 19 | +import javax.validation.Valid; | ||
| 20 | +import javax.validation.constraints.NotBlank; | ||
| 21 | + | ||
| 22 | +@Api(tags = "采购外贸资信调查表") | ||
| 23 | +@Validated | ||
| 24 | +@RestController | ||
| 25 | +@RequestMapping("/procurement/foreignTradeCredit") | ||
| 26 | +public class ProcurementForeignTradeCreditController extends DefaultBaseController { | ||
| 27 | + | ||
| 28 | + @Resource | ||
| 29 | + private ProcurementForeignTradeCreditService procurementForeignTradeCreditService; | ||
| 30 | + | ||
| 31 | + @ApiOperation("新增") | ||
| 32 | + @HasPermission({"procure-manage:foreign-trade:add"}) | ||
| 33 | + @PostMapping | ||
| 34 | + public InvokeResult<Void> create(@Valid @RequestBody CreateProcurementForeignTradeCreditVo vo) { | ||
| 35 | + procurementForeignTradeCreditService.create(vo); | ||
| 36 | + return InvokeResultBuilder.success(); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + @ApiOperation("分页查询") | ||
| 40 | + @HasPermission({"procure-manage:foreign-trade:query"}) | ||
| 41 | + @GetMapping("/query") | ||
| 42 | + public InvokeResult<PageResult<ProcurementForeignTradeCredit>> query( | ||
| 43 | + @Valid QueryProcurementForeignTradeCreditVo vo) { | ||
| 44 | + return InvokeResultBuilder.success( | ||
| 45 | + procurementForeignTradeCreditService.query(getPageIndex(vo), getPageSize(vo), vo)); | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + @ApiOperation("详情") | ||
| 49 | + @HasPermission({"procure-manage:foreign-trade:query"}) | ||
| 50 | + @ApiImplicitParam(value = "id", name = "id", paramType = "query", required = true) | ||
| 51 | + @GetMapping("/get") | ||
| 52 | + public InvokeResult<ProcurementForeignTradeCredit> get( | ||
| 53 | + @NotBlank(message = "id不能为空!") String id) { | ||
| 54 | + return InvokeResultBuilder.success(procurementForeignTradeCreditService.findById(id)); | ||
| 55 | + } | ||
| 56 | +} |
| 1 | +package com.lframework.xingyun.sc.procurement.entity; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.FieldFill; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableField; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 6 | +import com.lframework.starter.web.core.dto.BaseDto; | ||
| 7 | +import com.lframework.starter.web.core.entity.BaseEntity; | ||
| 8 | +import java.time.LocalDate; | ||
| 9 | +import java.time.LocalDateTime; | ||
| 10 | +import lombok.Data; | ||
| 11 | + | ||
| 12 | +@Data | ||
| 13 | +@TableName("procurement_foreign_trade_credit") | ||
| 14 | +public class ProcurementForeignTradeCredit extends BaseEntity implements BaseDto { | ||
| 15 | + | ||
| 16 | + private static final long serialVersionUID = 1L; | ||
| 17 | + | ||
| 18 | + public static final String CACHE_NAME = "ProcurementForeignTradeCredit"; | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * ID | ||
| 22 | + */ | ||
| 23 | + private String id; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 单位名称 | ||
| 27 | + */ | ||
| 28 | + private String unitName; | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 公司性质 | ||
| 32 | + */ | ||
| 33 | + private String companyNature; | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 法人代表 | ||
| 37 | + */ | ||
| 38 | + private String legalRepresentative; | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 电话及传真 | ||
| 42 | + */ | ||
| 43 | + private String phoneAndFax; | ||
| 44 | + | ||
| 45 | + /** | ||
| 46 | + * 注册证书号 | ||
| 47 | + */ | ||
| 48 | + private String registrationCertificateNo; | ||
| 49 | + | ||
| 50 | + /** | ||
| 51 | + * 地址 | ||
| 52 | + */ | ||
| 53 | + private String address; | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 国内业务负责人 | ||
| 57 | + */ | ||
| 58 | + private String domesticBusinessPrincipal; | ||
| 59 | + | ||
| 60 | + /** | ||
| 61 | + * 业务负责人身份证或(护照)证号码 | ||
| 62 | + */ | ||
| 63 | + private String principalCertificateNo; | ||
| 64 | + | ||
| 65 | + /** | ||
| 66 | + * 公司成立时间及自有货场规模 | ||
| 67 | + */ | ||
| 68 | + private String establishedTimeAndYardScale; | ||
| 69 | + | ||
| 70 | + /** | ||
| 71 | + * 整体经营品种、规模 | ||
| 72 | + */ | ||
| 73 | + private String overallBusinessVarietiesScale; | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * 出口到国内时间 | ||
| 77 | + */ | ||
| 78 | + private String exportToDomesticTime; | ||
| 79 | + | ||
| 80 | + /** | ||
| 81 | + * 出口到国内规模、品种 | ||
| 82 | + */ | ||
| 83 | + private String exportToDomesticScaleVarieties; | ||
| 84 | + | ||
| 85 | + /** | ||
| 86 | + * 与国内合作企业 | ||
| 87 | + */ | ||
| 88 | + private String cooperatingDomesticCompanies; | ||
| 89 | + | ||
| 90 | + /** | ||
| 91 | + * 合作效果 | ||
| 92 | + */ | ||
| 93 | + private String cooperationEffect; | ||
| 94 | + | ||
| 95 | + /** | ||
| 96 | + * 供应商考察 | ||
| 97 | + */ | ||
| 98 | + private String supplierInspection; | ||
| 99 | + | ||
| 100 | + /** | ||
| 101 | + * 国内销售代表办公地考察 | ||
| 102 | + */ | ||
| 103 | + private String domesticSalesOfficeInspection; | ||
| 104 | + | ||
| 105 | + /** | ||
| 106 | + * 有无担保函 | ||
| 107 | + */ | ||
| 108 | + private String guaranteeLetter; | ||
| 109 | + | ||
| 110 | + /** | ||
| 111 | + * 合同纠纷 | ||
| 112 | + */ | ||
| 113 | + private String contractDispute; | ||
| 114 | + | ||
| 115 | + /** | ||
| 116 | + * 保险、运输方式 | ||
| 117 | + */ | ||
| 118 | + private String insuranceTransportMode; | ||
| 119 | + | ||
| 120 | + /** | ||
| 121 | + * 滞箱滞报费用 | ||
| 122 | + */ | ||
| 123 | + private String detentionDemurrageFee; | ||
| 124 | + | ||
| 125 | + /** | ||
| 126 | + * 操作品种 | ||
| 127 | + */ | ||
| 128 | + private String operationVariety; | ||
| 129 | + | ||
| 130 | + /** | ||
| 131 | + * 操作规模 | ||
| 132 | + */ | ||
| 133 | + private String operationScale; | ||
| 134 | + | ||
| 135 | + /** | ||
| 136 | + * 定价模式 | ||
| 137 | + */ | ||
| 138 | + private String pricingMode; | ||
| 139 | + | ||
| 140 | + /** | ||
| 141 | + * 结算方式 | ||
| 142 | + */ | ||
| 143 | + private String settlementMethod; | ||
| 144 | + | ||
| 145 | + /** | ||
| 146 | + * 磅差约定 | ||
| 147 | + */ | ||
| 148 | + private String weightDifferenceAgreement; | ||
| 149 | + | ||
| 150 | + /** | ||
| 151 | + * 质量标准 | ||
| 152 | + */ | ||
| 153 | + private String qualityStandard; | ||
| 154 | + | ||
| 155 | + /** | ||
| 156 | + * 供应商分类 | ||
| 157 | + */ | ||
| 158 | + private String supplierCategory; | ||
| 159 | + | ||
| 160 | + /** | ||
| 161 | + * 操作时间 | ||
| 162 | + */ | ||
| 163 | + private String schemeOperationTime; | ||
| 164 | + | ||
| 165 | + /** | ||
| 166 | + * 操作模式 | ||
| 167 | + */ | ||
| 168 | + private String schemeOperationMode; | ||
| 169 | + | ||
| 170 | + /** | ||
| 171 | + * 操作品种 | ||
| 172 | + */ | ||
| 173 | + private String schemeOperationVariety; | ||
| 174 | + | ||
| 175 | + /** | ||
| 176 | + * 操作数量 | ||
| 177 | + */ | ||
| 178 | + private String schemeOperationQuantity; | ||
| 179 | + | ||
| 180 | + /** | ||
| 181 | + * 发货要求 | ||
| 182 | + */ | ||
| 183 | + private String shippingRequirement; | ||
| 184 | + | ||
| 185 | + /** | ||
| 186 | + * 付款方式 | ||
| 187 | + */ | ||
| 188 | + private String paymentMethod; | ||
| 189 | + | ||
| 190 | + /** | ||
| 191 | + * 下次评审时间 | ||
| 192 | + */ | ||
| 193 | + private LocalDate nextReviewTime; | ||
| 194 | + | ||
| 195 | + /** | ||
| 196 | + * 评审部门 | ||
| 197 | + */ | ||
| 198 | + private String reviewDepartment; | ||
| 199 | + | ||
| 200 | + /** | ||
| 201 | + * 审核状态 | ||
| 202 | + */ | ||
| 203 | + private String status; | ||
| 204 | + | ||
| 205 | + /** | ||
| 206 | + * 是否冻结 | ||
| 207 | + */ | ||
| 208 | + private Boolean freeze; | ||
| 209 | + | ||
| 210 | + /** | ||
| 211 | + * 创建人ID | ||
| 212 | + */ | ||
| 213 | + @TableField(fill = FieldFill.INSERT) | ||
| 214 | + private String createById; | ||
| 215 | + | ||
| 216 | + /** | ||
| 217 | + * 创建人 | ||
| 218 | + */ | ||
| 219 | + @TableField(fill = FieldFill.INSERT) | ||
| 220 | + private String createBy; | ||
| 221 | + | ||
| 222 | + /** | ||
| 223 | + * 更新人ID | ||
| 224 | + */ | ||
| 225 | + @TableField(fill = FieldFill.INSERT_UPDATE) | ||
| 226 | + private String updateById; | ||
| 227 | + | ||
| 228 | + /** | ||
| 229 | + * 更新人 | ||
| 230 | + */ | ||
| 231 | + @TableField(fill = FieldFill.INSERT_UPDATE) | ||
| 232 | + private String updateBy; | ||
| 233 | + | ||
| 234 | + /** | ||
| 235 | + * 创建时间 | ||
| 236 | + */ | ||
| 237 | + @TableField(fill = FieldFill.INSERT) | ||
| 238 | + private LocalDateTime createTime; | ||
| 239 | + | ||
| 240 | + /** | ||
| 241 | + * 更新时间 | ||
| 242 | + */ | ||
| 243 | + @TableField(fill = FieldFill.INSERT_UPDATE) | ||
| 244 | + private LocalDateTime updateTime; | ||
| 245 | +} |
| 1 | +package com.lframework.xingyun.sc.procurement.impl.credit; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.PageInfo; | ||
| 4 | +import com.lframework.starter.common.utils.Assert; | ||
| 5 | +import com.lframework.starter.web.core.annotations.oplog.OpLog; | ||
| 6 | +import com.lframework.starter.web.core.components.resp.PageResult; | ||
| 7 | +import com.lframework.starter.web.core.impl.BaseMpServiceImpl; | ||
| 8 | +import com.lframework.starter.web.core.utils.IdUtil; | ||
| 9 | +import com.lframework.starter.web.core.utils.OpLogUtil; | ||
| 10 | +import com.lframework.starter.web.core.utils.PageHelperUtil; | ||
| 11 | +import com.lframework.starter.web.core.utils.PageResultUtil; | ||
| 12 | +import com.lframework.starter.web.inner.components.oplog.OtherOpLogType; | ||
| 13 | +import com.lframework.starter.web.inner.service.system.SysUserService; | ||
| 14 | +import com.lframework.xingyun.sc.procurement.entity.ProcurementForeignTradeCredit; | ||
| 15 | +import com.lframework.xingyun.sc.procurement.mappers.credit.ProcurementForeignTradeCreditMapper; | ||
| 16 | +import com.lframework.xingyun.sc.procurement.service.credit.ProcurementForeignTradeCreditService; | ||
| 17 | +import com.lframework.xingyun.sc.procurement.vo.credit.CreateProcurementForeignTradeCreditVo; | ||
| 18 | +import com.lframework.xingyun.sc.procurement.vo.credit.QueryProcurementForeignTradeCreditVo; | ||
| 19 | +import org.springframework.stereotype.Service; | ||
| 20 | +import org.springframework.transaction.annotation.Transactional; | ||
| 21 | + | ||
| 22 | +import javax.annotation.Resource; | ||
| 23 | +import java.util.List; | ||
| 24 | + | ||
| 25 | +@Service | ||
| 26 | +public class ProcurementForeignTradeCreditServiceImpl | ||
| 27 | + extends BaseMpServiceImpl<ProcurementForeignTradeCreditMapper, ProcurementForeignTradeCredit> | ||
| 28 | + implements ProcurementForeignTradeCreditService { | ||
| 29 | + | ||
| 30 | + @Resource | ||
| 31 | + private SysUserService sysUserService; | ||
| 32 | + | ||
| 33 | + @Override | ||
| 34 | + public PageResult<ProcurementForeignTradeCredit> query(Integer pageIndex, Integer pageSize, | ||
| 35 | + QueryProcurementForeignTradeCreditVo vo) { | ||
| 36 | + Assert.greaterThanZero(pageIndex); | ||
| 37 | + Assert.greaterThanZero(pageSize); | ||
| 38 | + | ||
| 39 | + PageHelperUtil.startPage(pageIndex, pageSize); | ||
| 40 | + List<ProcurementForeignTradeCredit> datas = this.query(vo); | ||
| 41 | + return PageResultUtil.convert(new PageInfo<>(datas)); | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + @Override | ||
| 45 | + public List<ProcurementForeignTradeCredit> query(QueryProcurementForeignTradeCreditVo vo) { | ||
| 46 | + return getBaseMapper().query(vo); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @Override | ||
| 50 | + public ProcurementForeignTradeCredit findById(String id) { | ||
| 51 | + return getBaseMapper().findById(id); | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + @OpLog(type = OtherOpLogType.class, name = "新增采购外贸资信调查表,ID:{}", params = {"#id"}) | ||
| 55 | + @Transactional(rollbackFor = Exception.class) | ||
| 56 | + @Override | ||
| 57 | + public String create(CreateProcurementForeignTradeCreditVo vo) { | ||
| 58 | + | ||
| 59 | + ProcurementForeignTradeCredit data = new ProcurementForeignTradeCredit(); | ||
| 60 | + data.setId(IdUtil.getId()); | ||
| 61 | + data.setUnitName(vo.getUnitName()); | ||
| 62 | + data.setCompanyNature(vo.getCompanyNature()); | ||
| 63 | + data.setLegalRepresentative(vo.getLegalRepresentative()); | ||
| 64 | + data.setPhoneAndFax(vo.getPhoneAndFax()); | ||
| 65 | + data.setRegistrationCertificateNo(vo.getRegistrationCertificateNo()); | ||
| 66 | + data.setAddress(vo.getAddress()); | ||
| 67 | + data.setDomesticBusinessPrincipal(vo.getDomesticBusinessPrincipal()); | ||
| 68 | + data.setPrincipalCertificateNo(vo.getPrincipalCertificateNo()); | ||
| 69 | + data.setEstablishedTimeAndYardScale(vo.getEstablishedTimeAndYardScale()); | ||
| 70 | + data.setOverallBusinessVarietiesScale(vo.getOverallBusinessVarietiesScale()); | ||
| 71 | + data.setExportToDomesticTime(vo.getExportToDomesticTime()); | ||
| 72 | + data.setExportToDomesticScaleVarieties(vo.getExportToDomesticScaleVarieties()); | ||
| 73 | + data.setCooperatingDomesticCompanies(vo.getCooperatingDomesticCompanies()); | ||
| 74 | + data.setCooperationEffect(vo.getCooperationEffect()); | ||
| 75 | + data.setSupplierInspection(vo.getSupplierInspection()); | ||
| 76 | + data.setDomesticSalesOfficeInspection(vo.getDomesticSalesOfficeInspection()); | ||
| 77 | + data.setGuaranteeLetter(vo.getGuaranteeLetter()); | ||
| 78 | + data.setContractDispute(vo.getContractDispute()); | ||
| 79 | + data.setInsuranceTransportMode(vo.getInsuranceTransportMode()); | ||
| 80 | + data.setDetentionDemurrageFee(vo.getDetentionDemurrageFee()); | ||
| 81 | + data.setOperationVariety(vo.getOperationVariety()); | ||
| 82 | + data.setOperationScale(vo.getOperationScale()); | ||
| 83 | + data.setPricingMode(vo.getPricingMode()); | ||
| 84 | + data.setSettlementMethod(vo.getSettlementMethod()); | ||
| 85 | + data.setWeightDifferenceAgreement(vo.getWeightDifferenceAgreement()); | ||
| 86 | + data.setQualityStandard(vo.getQualityStandard()); | ||
| 87 | + data.setSupplierCategory(vo.getSupplierCategory()); | ||
| 88 | + data.setSchemeOperationTime(vo.getSchemeOperationTime()); | ||
| 89 | + data.setSchemeOperationMode(vo.getSchemeOperationMode()); | ||
| 90 | + data.setSchemeOperationVariety(vo.getSchemeOperationVariety()); | ||
| 91 | + data.setSchemeOperationQuantity(vo.getSchemeOperationQuantity()); | ||
| 92 | + data.setShippingRequirement(vo.getShippingRequirement()); | ||
| 93 | + data.setPaymentMethod(vo.getPaymentMethod()); | ||
| 94 | + data.setNextReviewTime(vo.getNextReviewTime()); | ||
| 95 | + data.setReviewDepartment(vo.getReviewDepartment()); | ||
| 96 | +// data.setStatus("AUDIT"); | ||
| 97 | + data.setFreeze(Boolean.FALSE); | ||
| 98 | + | ||
| 99 | + getBaseMapper().insert(data); | ||
| 100 | + | ||
| 101 | + OpLogUtil.setVariable("id", data.getId()); | ||
| 102 | + OpLogUtil.setExtra(vo); | ||
| 103 | + return data.getId(); | ||
| 104 | + } | ||
| 105 | +} |
| 1 | +package com.lframework.xingyun.sc.procurement.mappers.credit; | ||
| 2 | + | ||
| 3 | +import com.lframework.starter.web.core.mapper.BaseMapper; | ||
| 4 | +import com.lframework.xingyun.sc.procurement.entity.ProcurementForeignTradeCredit; | ||
| 5 | +import com.lframework.xingyun.sc.procurement.vo.credit.QueryProcurementForeignTradeCreditVo; | ||
| 6 | +import org.apache.ibatis.annotations.Param; | ||
| 7 | + | ||
| 8 | +import java.util.List; | ||
| 9 | + | ||
| 10 | +public interface ProcurementForeignTradeCreditMapper extends BaseMapper<ProcurementForeignTradeCredit> { | ||
| 11 | + | ||
| 12 | + List<ProcurementForeignTradeCredit> query(@Param("vo") QueryProcurementForeignTradeCreditVo vo); | ||
| 13 | + | ||
| 14 | + ProcurementForeignTradeCredit findById(@Param("id") String id); | ||
| 15 | +} |
| 1 | +package com.lframework.xingyun.sc.procurement.service.credit; | ||
| 2 | + | ||
| 3 | +import com.lframework.starter.web.core.components.resp.PageResult; | ||
| 4 | +import com.lframework.starter.web.core.service.BaseMpService; | ||
| 5 | +import com.lframework.xingyun.sc.procurement.entity.ProcurementForeignTradeCredit; | ||
| 6 | +import com.lframework.xingyun.sc.procurement.vo.credit.CreateProcurementForeignTradeCreditVo; | ||
| 7 | +import com.lframework.xingyun.sc.procurement.vo.credit.QueryProcurementForeignTradeCreditVo; | ||
| 8 | + | ||
| 9 | +import java.util.List; | ||
| 10 | + | ||
| 11 | +public interface ProcurementForeignTradeCreditService extends BaseMpService<ProcurementForeignTradeCredit> { | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 分页查询采购外贸资信调查表 | ||
| 15 | + * | ||
| 16 | + * @param pageIndex 页码 | ||
| 17 | + * @param pageSize 页大小 | ||
| 18 | + * @param vo 查询条件 | ||
| 19 | + * @return 分页结果 | ||
| 20 | + */ | ||
| 21 | + PageResult<ProcurementForeignTradeCredit> query(Integer pageIndex, Integer pageSize, | ||
| 22 | + QueryProcurementForeignTradeCreditVo vo); | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * 查询采购外贸资信调查表列表 | ||
| 26 | + * | ||
| 27 | + * @param vo 查询条件 | ||
| 28 | + * @return 数据列表 | ||
| 29 | + */ | ||
| 30 | + List<ProcurementForeignTradeCredit> query(QueryProcurementForeignTradeCreditVo vo); | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * 根据ID查询采购外贸资信调查表 | ||
| 34 | + * | ||
| 35 | + * @param id ID | ||
| 36 | + * @return 详情 | ||
| 37 | + */ | ||
| 38 | + ProcurementForeignTradeCredit findById(String id); | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 新增采购外贸资信调查表 | ||
| 42 | + * | ||
| 43 | + * @param vo 新增参数 | ||
| 44 | + * @return ID | ||
| 45 | + */ | ||
| 46 | + String create(CreateProcurementForeignTradeCreditVo vo); | ||
| 47 | +} |
| 1 | +package com.lframework.xingyun.sc.procurement.vo.credit; | ||
| 2 | + | ||
| 3 | +import com.lframework.starter.web.core.vo.BaseVo; | ||
| 4 | +import io.swagger.annotations.ApiModelProperty; | ||
| 5 | +import java.io.Serializable; | ||
| 6 | +import java.time.LocalDate; | ||
| 7 | +import javax.validation.constraints.NotNull; | ||
| 8 | +import lombok.Data; | ||
| 9 | +import org.hibernate.validator.constraints.Length; | ||
| 10 | +import org.hibernate.validator.constraints.NotBlank; | ||
| 11 | + | ||
| 12 | +@Data | ||
| 13 | +public class CreateProcurementForeignTradeCreditVo implements BaseVo, Serializable { | ||
| 14 | + | ||
| 15 | + private static final long serialVersionUID = 1L; | ||
| 16 | + | ||
| 17 | + @ApiModelProperty(value = "单位名称", required = true) | ||
| 18 | + @NotBlank(message = "单位名称不能为空!") | ||
| 19 | + @Length(max = 200, message = "单位名称最多允许200个字符!") | ||
| 20 | + private String unitName; | ||
| 21 | + | ||
| 22 | + @ApiModelProperty(value = "公司性质", required = true) | ||
| 23 | + @NotBlank(message = "公司性质不能为空!") | ||
| 24 | + @Length(max = 200, message = "公司性质最多允许200个字符!") | ||
| 25 | + private String companyNature; | ||
| 26 | + | ||
| 27 | + @ApiModelProperty(value = "法人代表", required = true) | ||
| 28 | + @NotBlank(message = "法人代表不能为空!") | ||
| 29 | + @Length(max = 200, message = "法人代表最多允许200个字符!") | ||
| 30 | + private String legalRepresentative; | ||
| 31 | + | ||
| 32 | + @ApiModelProperty(value = "电话及传真", required = true) | ||
| 33 | + @NotBlank(message = "电话及传真不能为空!") | ||
| 34 | + @Length(max = 200, message = "电话及传真最多允许200个字符!") | ||
| 35 | + private String phoneAndFax; | ||
| 36 | + | ||
| 37 | + @ApiModelProperty(value = "注册证书号", required = true) | ||
| 38 | + @NotBlank(message = "注册证书号不能为空!") | ||
| 39 | + @Length(max = 200, message = "注册证书号最多允许200个字符!") | ||
| 40 | + private String registrationCertificateNo; | ||
| 41 | + | ||
| 42 | + @ApiModelProperty(value = "地址", required = true) | ||
| 43 | + @NotBlank(message = "地址不能为空!") | ||
| 44 | + @Length(max = 500, message = "地址最多允许500个字符!") | ||
| 45 | + private String address; | ||
| 46 | + | ||
| 47 | + @ApiModelProperty(value = "国内业务负责人", required = true) | ||
| 48 | + @NotBlank(message = "国内业务负责人不能为空!") | ||
| 49 | + @Length(max = 200, message = "国内业务负责人最多允许200个字符!") | ||
| 50 | + private String domesticBusinessPrincipal; | ||
| 51 | + | ||
| 52 | + @ApiModelProperty(value = "业务负责人身份证或(护照)证号码", required = true) | ||
| 53 | + @NotBlank(message = "业务负责人身份证或(护照)证号码不能为空!") | ||
| 54 | + @Length(max = 200, message = "业务负责人身份证或(护照)证号码最多允许200个字符!") | ||
| 55 | + private String principalCertificateNo; | ||
| 56 | + | ||
| 57 | + @ApiModelProperty(value = "公司成立时间及自有货场规模", required = true) | ||
| 58 | + @NotBlank(message = "公司成立时间及自有货场规模不能为空!") | ||
| 59 | + @Length(max = 65535, message = "公司成立时间及自有货场规模内容过长!") | ||
| 60 | + private String establishedTimeAndYardScale; | ||
| 61 | + | ||
| 62 | + @ApiModelProperty(value = "整体经营品种、规模", required = true) | ||
| 63 | + @NotBlank(message = "整体经营品种、规模不能为空!") | ||
| 64 | + @Length(max = 65535, message = "整体经营品种、规模内容过长!") | ||
| 65 | + private String overallBusinessVarietiesScale; | ||
| 66 | + | ||
| 67 | + @ApiModelProperty(value = "出口到国内时间", required = true) | ||
| 68 | + @NotBlank(message = "出口到国内时间不能为空!") | ||
| 69 | + @Length(max = 200, message = "出口到国内时间最多允许200个字符!") | ||
| 70 | + private String exportToDomesticTime; | ||
| 71 | + | ||
| 72 | + @ApiModelProperty(value = "出口到国内规模、品种", required = true) | ||
| 73 | + @NotBlank(message = "出口到国内规模、品种不能为空!") | ||
| 74 | + @Length(max = 65535, message = "出口到国内规模、品种内容过长!") | ||
| 75 | + private String exportToDomesticScaleVarieties; | ||
| 76 | + | ||
| 77 | + @ApiModelProperty(value = "与国内合作企业", required = true) | ||
| 78 | + @NotBlank(message = "与国内合作企业不能为空!") | ||
| 79 | + @Length(max = 65535, message = "与国内合作企业内容过长!") | ||
| 80 | + private String cooperatingDomesticCompanies; | ||
| 81 | + | ||
| 82 | + @ApiModelProperty(value = "合作效果", required = true) | ||
| 83 | + @NotBlank(message = "合作效果不能为空!") | ||
| 84 | + @Length(max = 65535, message = "合作效果内容过长!") | ||
| 85 | + private String cooperationEffect; | ||
| 86 | + | ||
| 87 | + @ApiModelProperty(value = "供应商考察", required = true) | ||
| 88 | + @NotBlank(message = "供应商考察不能为空!") | ||
| 89 | + @Length(max = 65535, message = "供应商考察内容过长!") | ||
| 90 | + private String supplierInspection; | ||
| 91 | + | ||
| 92 | + @ApiModelProperty(value = "国内销售代表办公地考察", required = true) | ||
| 93 | + @NotBlank(message = "国内销售代表办公地考察不能为空!") | ||
| 94 | + @Length(max = 65535, message = "国内销售代表办公地考察内容过长!") | ||
| 95 | + private String domesticSalesOfficeInspection; | ||
| 96 | + | ||
| 97 | + @ApiModelProperty(value = "有无担保函", required = true) | ||
| 98 | + @NotBlank(message = "有无担保函不能为空!") | ||
| 99 | + @Length(max = 200, message = "有无担保函最多允许200个字符!") | ||
| 100 | + private String guaranteeLetter; | ||
| 101 | + | ||
| 102 | + @ApiModelProperty(value = "合同纠纷", required = true) | ||
| 103 | + @NotBlank(message = "合同纠纷不能为空!") | ||
| 104 | + @Length(max = 65535, message = "合同纠纷内容过长!") | ||
| 105 | + private String contractDispute; | ||
| 106 | + | ||
| 107 | + @ApiModelProperty(value = "保险、运输方式", required = true) | ||
| 108 | + @NotBlank(message = "保险、运输方式不能为空!") | ||
| 109 | + @Length(max = 500, message = "保险、运输方式最多允许500个字符!") | ||
| 110 | + private String insuranceTransportMode; | ||
| 111 | + | ||
| 112 | + @ApiModelProperty(value = "滞箱滞报费用", required = true) | ||
| 113 | + @NotBlank(message = "滞箱滞报费用不能为空!") | ||
| 114 | + @Length(max = 500, message = "滞箱滞报费用最多允许500个字符!") | ||
| 115 | + private String detentionDemurrageFee; | ||
| 116 | + | ||
| 117 | + @ApiModelProperty(value = "操作品种", required = true) | ||
| 118 | + @NotBlank(message = "操作品种不能为空!") | ||
| 119 | + @Length(max = 200, message = "操作品种最多允许200个字符!") | ||
| 120 | + private String operationVariety; | ||
| 121 | + | ||
| 122 | + @ApiModelProperty(value = "操作规模", required = true) | ||
| 123 | + @NotBlank(message = "操作规模不能为空!") | ||
| 124 | + @Length(max = 200, message = "操作规模最多允许200个字符!") | ||
| 125 | + private String operationScale; | ||
| 126 | + | ||
| 127 | + @ApiModelProperty(value = "定价模式", required = true) | ||
| 128 | + @NotBlank(message = "定价模式不能为空!") | ||
| 129 | + @Length(max = 500, message = "定价模式最多允许500个字符!") | ||
| 130 | + private String pricingMode; | ||
| 131 | + | ||
| 132 | + @ApiModelProperty(value = "结算方式", required = true) | ||
| 133 | + @NotBlank(message = "结算方式不能为空!") | ||
| 134 | + @Length(max = 500, message = "结算方式最多允许500个字符!") | ||
| 135 | + private String settlementMethod; | ||
| 136 | + | ||
| 137 | + @ApiModelProperty(value = "磅差约定", required = true) | ||
| 138 | + @NotBlank(message = "磅差约定不能为空!") | ||
| 139 | + @Length(max = 65535, message = "磅差约定内容过长!") | ||
| 140 | + private String weightDifferenceAgreement; | ||
| 141 | + | ||
| 142 | + @ApiModelProperty(value = "质量标准", required = true) | ||
| 143 | + @NotBlank(message = "质量标准不能为空!") | ||
| 144 | + @Length(max = 65535, message = "质量标准内容过长!") | ||
| 145 | + private String qualityStandard; | ||
| 146 | + | ||
| 147 | + @ApiModelProperty(value = "供应商分类", required = true) | ||
| 148 | + @NotBlank(message = "供应商分类不能为空!") | ||
| 149 | + @Length(max = 20, message = "供应商分类最多允许20个字符!") | ||
| 150 | + private String supplierCategory; | ||
| 151 | + | ||
| 152 | + @ApiModelProperty(value = "操作时间", required = true) | ||
| 153 | + @NotBlank(message = "操作时间不能为空!") | ||
| 154 | + @Length(max = 200, message = "操作时间最多允许200个字符!") | ||
| 155 | + private String schemeOperationTime; | ||
| 156 | + | ||
| 157 | + @ApiModelProperty(value = "操作模式", required = true) | ||
| 158 | + @NotBlank(message = "操作模式不能为空!") | ||
| 159 | + @Length(max = 200, message = "操作模式最多允许200个字符!") | ||
| 160 | + private String schemeOperationMode; | ||
| 161 | + | ||
| 162 | + @ApiModelProperty(value = "操作方案-操作品种", required = true) | ||
| 163 | + @NotBlank(message = "操作方案-操作品种不能为空!") | ||
| 164 | + @Length(max = 200, message = "操作方案-操作品种最多允许200个字符!") | ||
| 165 | + private String schemeOperationVariety; | ||
| 166 | + | ||
| 167 | + @ApiModelProperty(value = "操作数量", required = true) | ||
| 168 | + @NotBlank(message = "操作数量不能为空!") | ||
| 169 | + @Length(max = 200, message = "操作数量最多允许200个字符!") | ||
| 170 | + private String schemeOperationQuantity; | ||
| 171 | + | ||
| 172 | + @ApiModelProperty(value = "发货要求", required = true) | ||
| 173 | + @NotBlank(message = "发货要求不能为空!") | ||
| 174 | + @Length(max = 65535, message = "发货要求内容过长!") | ||
| 175 | + private String shippingRequirement; | ||
| 176 | + | ||
| 177 | + @ApiModelProperty(value = "付款方式", required = true) | ||
| 178 | + @NotBlank(message = "付款方式不能为空!") | ||
| 179 | + @Length(max = 500, message = "付款方式最多允许500个字符!") | ||
| 180 | + private String paymentMethod; | ||
| 181 | + | ||
| 182 | + @ApiModelProperty(value = "下次评审时间", required = true) | ||
| 183 | + @NotNull(message = "下次评审时间不能为空!") | ||
| 184 | + private LocalDate nextReviewTime; | ||
| 185 | + | ||
| 186 | + @ApiModelProperty(value = "评审部门", required = true) | ||
| 187 | + @NotBlank(message = "评审部门不能为空!") | ||
| 188 | + @Length(max = 200, message = "评审部门最多允许200个字符!") | ||
| 189 | + private String reviewDepartment; | ||
| 190 | +} |
| 1 | +package com.lframework.xingyun.sc.procurement.vo.credit; | ||
| 2 | + | ||
| 3 | +import com.lframework.starter.web.core.vo.BaseVo; | ||
| 4 | +import com.lframework.starter.web.core.vo.PageVo; | ||
| 5 | +import io.swagger.annotations.ApiModelProperty; | ||
| 6 | +import java.io.Serializable; | ||
| 7 | +import java.time.LocalDate; | ||
| 8 | +import lombok.Data; | ||
| 9 | + | ||
| 10 | +@Data | ||
| 11 | +public class QueryProcurementForeignTradeCreditVo extends PageVo implements BaseVo, Serializable { | ||
| 12 | + | ||
| 13 | + private static final long serialVersionUID = 1L; | ||
| 14 | + | ||
| 15 | + @ApiModelProperty("单位名称") | ||
| 16 | + private String unitName; | ||
| 17 | + | ||
| 18 | + @ApiModelProperty("公司性质") | ||
| 19 | + private String companyNature; | ||
| 20 | + | ||
| 21 | + @ApiModelProperty("供应商分类") | ||
| 22 | + private String supplierCategory; | ||
| 23 | + | ||
| 24 | + @ApiModelProperty("下次评审时间开始") | ||
| 25 | + private LocalDate nextReviewTimeStart; | ||
| 26 | + | ||
| 27 | + @ApiModelProperty("下次评审时间结束") | ||
| 28 | + private LocalDate nextReviewTimeEnd; | ||
| 29 | + | ||
| 30 | + @ApiModelProperty("创建日期开始") | ||
| 31 | + private LocalDate createDateStart; | ||
| 32 | + | ||
| 33 | + @ApiModelProperty("创建日期结束") | ||
| 34 | + private LocalDate createDateEnd; | ||
| 35 | + | ||
| 36 | + @ApiModelProperty("审核状态") | ||
| 37 | + private String status; | ||
| 38 | +} |
xingyun-sc/src/main/resources/mappers/procurement/credit/ProcurementForeignTradeCreditMapper.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 3 | +<mapper namespace="com.lframework.xingyun.sc.procurement.mappers.credit.ProcurementForeignTradeCreditMapper"> | ||
| 4 | + | ||
| 5 | + <resultMap id="ProcurementForeignTradeCredit" | ||
| 6 | + type="com.lframework.xingyun.sc.procurement.entity.ProcurementForeignTradeCredit"> | ||
| 7 | + <id column="id" property="id"/> | ||
| 8 | + <result column="unit_name" property="unitName"/> | ||
| 9 | + <result column="company_nature" property="companyNature"/> | ||
| 10 | + <result column="legal_representative" property="legalRepresentative"/> | ||
| 11 | + <result column="phone_and_fax" property="phoneAndFax"/> | ||
| 12 | + <result column="registration_certificate_no" property="registrationCertificateNo"/> | ||
| 13 | + <result column="address" property="address"/> | ||
| 14 | + <result column="domestic_business_principal" property="domesticBusinessPrincipal"/> | ||
| 15 | + <result column="principal_certificate_no" property="principalCertificateNo"/> | ||
| 16 | + <result column="established_time_and_yard_scale" property="establishedTimeAndYardScale"/> | ||
| 17 | + <result column="overall_business_varieties_scale" property="overallBusinessVarietiesScale"/> | ||
| 18 | + <result column="export_to_domestic_time" property="exportToDomesticTime"/> | ||
| 19 | + <result column="export_to_domestic_scale_varieties" property="exportToDomesticScaleVarieties"/> | ||
| 20 | + <result column="cooperating_domestic_companies" property="cooperatingDomesticCompanies"/> | ||
| 21 | + <result column="cooperation_effect" property="cooperationEffect"/> | ||
| 22 | + <result column="supplier_inspection" property="supplierInspection"/> | ||
| 23 | + <result column="domestic_sales_office_inspection" property="domesticSalesOfficeInspection"/> | ||
| 24 | + <result column="guarantee_letter" property="guaranteeLetter"/> | ||
| 25 | + <result column="contract_dispute" property="contractDispute"/> | ||
| 26 | + <result column="insurance_transport_mode" property="insuranceTransportMode"/> | ||
| 27 | + <result column="detention_demurrage_fee" property="detentionDemurrageFee"/> | ||
| 28 | + <result column="operation_variety" property="operationVariety"/> | ||
| 29 | + <result column="operation_scale" property="operationScale"/> | ||
| 30 | + <result column="pricing_mode" property="pricingMode"/> | ||
| 31 | + <result column="settlement_method" property="settlementMethod"/> | ||
| 32 | + <result column="weight_difference_agreement" property="weightDifferenceAgreement"/> | ||
| 33 | + <result column="quality_standard" property="qualityStandard"/> | ||
| 34 | + <result column="supplier_category" property="supplierCategory"/> | ||
| 35 | + <result column="scheme_operation_time" property="schemeOperationTime"/> | ||
| 36 | + <result column="scheme_operation_mode" property="schemeOperationMode"/> | ||
| 37 | + <result column="scheme_operation_variety" property="schemeOperationVariety"/> | ||
| 38 | + <result column="scheme_operation_quantity" property="schemeOperationQuantity"/> | ||
| 39 | + <result column="shipping_requirement" property="shippingRequirement"/> | ||
| 40 | + <result column="payment_method" property="paymentMethod"/> | ||
| 41 | + <result column="next_review_time" property="nextReviewTime"/> | ||
| 42 | + <result column="review_department" property="reviewDepartment"/> | ||
| 43 | + <result column="status" property="status"/> | ||
| 44 | + <result column="freeze" property="freeze"/> | ||
| 45 | + <result column="create_by_id" property="createById"/> | ||
| 46 | + <result column="create_by" property="createBy"/> | ||
| 47 | + <result column="update_by_id" property="updateById"/> | ||
| 48 | + <result column="update_by" property="updateBy"/> | ||
| 49 | + <result column="create_time" property="createTime"/> | ||
| 50 | + <result column="update_time" property="updateTime"/> | ||
| 51 | + </resultMap> | ||
| 52 | + | ||
| 53 | + <sql id="ProcurementForeignTradeCreditSql"> | ||
| 54 | + SELECT | ||
| 55 | + tb.id, | ||
| 56 | + tb.unit_name, | ||
| 57 | + tb.company_nature, | ||
| 58 | + tb.legal_representative, | ||
| 59 | + tb.phone_and_fax, | ||
| 60 | + tb.registration_certificate_no, | ||
| 61 | + tb.address, | ||
| 62 | + tb.domestic_business_principal, | ||
| 63 | + tb.principal_certificate_no, | ||
| 64 | + tb.established_time_and_yard_scale, | ||
| 65 | + tb.overall_business_varieties_scale, | ||
| 66 | + tb.export_to_domestic_time, | ||
| 67 | + tb.export_to_domestic_scale_varieties, | ||
| 68 | + tb.cooperating_domestic_companies, | ||
| 69 | + tb.cooperation_effect, | ||
| 70 | + tb.supplier_inspection, | ||
| 71 | + tb.domestic_sales_office_inspection, | ||
| 72 | + tb.guarantee_letter, | ||
| 73 | + tb.contract_dispute, | ||
| 74 | + tb.insurance_transport_mode, | ||
| 75 | + tb.detention_demurrage_fee, | ||
| 76 | + tb.operation_variety, | ||
| 77 | + tb.operation_scale, | ||
| 78 | + tb.pricing_mode, | ||
| 79 | + tb.settlement_method, | ||
| 80 | + tb.weight_difference_agreement, | ||
| 81 | + tb.quality_standard, | ||
| 82 | + tb.supplier_category, | ||
| 83 | + tb.scheme_operation_time, | ||
| 84 | + tb.scheme_operation_mode, | ||
| 85 | + tb.scheme_operation_variety, | ||
| 86 | + tb.scheme_operation_quantity, | ||
| 87 | + tb.shipping_requirement, | ||
| 88 | + tb.payment_method, | ||
| 89 | + tb.next_review_time, | ||
| 90 | + tb.review_department, | ||
| 91 | + tb.status, | ||
| 92 | + tb.freeze, | ||
| 93 | + tb.create_by_id, | ||
| 94 | + tb.create_by, | ||
| 95 | + tb.update_by_id, | ||
| 96 | + tb.update_by, | ||
| 97 | + tb.create_time, | ||
| 98 | + tb.update_time | ||
| 99 | + FROM procurement_foreign_trade_credit tb | ||
| 100 | + </sql> | ||
| 101 | + | ||
| 102 | + <select id="query" resultMap="ProcurementForeignTradeCredit"> | ||
| 103 | + <include refid="ProcurementForeignTradeCreditSql"/> | ||
| 104 | + <where> | ||
| 105 | + <if test="vo.unitName != null and vo.unitName != ''"> | ||
| 106 | + AND tb.unit_name LIKE CONCAT('%', #{vo.unitName}, '%') | ||
| 107 | + </if> | ||
| 108 | + <if test="vo.companyNature != null and vo.companyNature != ''"> | ||
| 109 | + AND tb.company_nature LIKE CONCAT('%', #{vo.companyNature}, '%') | ||
| 110 | + </if> | ||
| 111 | + <if test="vo.supplierCategory != null and vo.supplierCategory != ''"> | ||
| 112 | + AND tb.supplier_category = #{supplierCategory} | ||
| 113 | + </if> | ||
| 114 | + <if test="vo.status != null and vo.status != ''"> | ||
| 115 | + AND tb.status = #{vo.status} | ||
| 116 | + </if> | ||
| 117 | + <if test="vo.nextReviewTimeStart != null"> | ||
| 118 | + AND DATE(tb.next_review_time) <![CDATA[ >= ]]> #{vo.nextReviewTimeStart} | ||
| 119 | + </if> | ||
| 120 | + <if test="vo.nextReviewTimeEnd != null"> | ||
| 121 | + AND DATE(tb.next_review_time) <![CDATA[ <= ]]> #{vo.nextReviewTimeEnd} | ||
| 122 | + </if> | ||
| 123 | + <if test="vo.createDateStart != null"> | ||
| 124 | + AND DATE(tb.create_time) <![CDATA[ >= ]]> #{vo.createDateStart} | ||
| 125 | + </if> | ||
| 126 | + <if test="vo.createDateEnd != null"> | ||
| 127 | + AND DATE(tb.create_time) <![CDATA[ <= ]]> #{vo.createDateEnd} | ||
| 128 | + </if> | ||
| 129 | + </where> | ||
| 130 | + ORDER BY tb.create_time DESC | ||
| 131 | + </select> | ||
| 132 | + | ||
| 133 | + <select id="findById" resultMap="ProcurementForeignTradeCredit"> | ||
| 134 | + <include refid="ProcurementForeignTradeCreditSql"/> | ||
| 135 | + WHERE tb.id = #{id} | ||
| 136 | + </select> | ||
| 137 | +</mapper> |