Merge remote-tracking branch 'origin/master'

master
@t2652009480 1 year ago
commit 7a4cf5b359

@ -20,139 +20,30 @@ public class Constant {
public static final String BASIC = "Basic"; public static final String BASIC = "Basic";
/** public static final String KUNMING = "昆明闻泰通讯有限公司";
* public static final String YINBANG = "银邦科技有限公司";
*/ public static final String XINFENG = "信丰世嘉科技有限公司";
public static final String PERSONAL = "个人"; //个人 public static final String SHENZHEN = "深圳拓朴商业保理有限公司";
public static final String BUSINESS = "企业"; //企业
public static final String BUSINESSBANK = "商业银行"; //商业银行
public static final String CENTRALBANK = "中央银行"; //中央银行
/**
* @author xcj
* @Date 2023/9/26
*
*/
public static final BigDecimal DIGITALCURRENCYWEIGHTONE = new BigDecimal(0.1);
public static final BigDecimal DIGITALCURRENCYWEIGHTTWO = new BigDecimal(0.05);
/*
* @author xcj
* @Date 2023/9/27
*/
public static final String ADDREDPACKET = "新增红包";
public static final String GETREDPACKET = "领取红包";
public static final String AVERAGEREDPACKET = "等额红包";
public static final String RANDOMREDPACKET = "随机金额红包";
public static final String BUYPRODUCT = "购买商品";
public static final String SELLPRODUCT = "销售商品";
// public static final BigDecimal totalDigitalCurrencyExchangeAmountWeight = new BigDecimal(0.1); //中央银行数字货币投放次数权重
// public static final BigDecimal centralBankDigitalCurrencyDenominationQuantityWeight = new BigDecimal(0.05); //中央银行数字货币面额演练数量权重
// private static final BigDecimal commercialBankRedEnvelopeCountWeight = new BigDecimal(0.1); //商业银行发放红包数量权重
// private static final BigDecimal commercialBankDigitalCurrencyExchangeAmountWeight = new BigDecimal(0.05);//商业银行自有资金兑换数字货币金额权重
// private static final BigDecimal commercialBankDigitalCurrencyExchangeCountWeight = new BigDecimal(0.05);//商业银行自有资金兑换数字货币次数权重
// private static final BigDecimal enterpriseUserConsumerRedEnvelopeCountWeight = new BigDecimal(0.05);//企业用户发放消费红包数量权重
// private static final BigDecimal enterpriseUserListedProductQuantityWeight = new BigDecimal(0.05); //企业用户上架商品数量权重
// private static final BigDecimal enterpriseUserWalletOpenCountWeight = new BigDecimal(0.05);//企业用户开通钱包数量权重
// private static final BigDecimal enterpriseUserDigitalCurrencyExchangeCountWeight = new BigDecimal(0.05);//企业用户兑换数字货币次数权重
// private static final BigDecimal enterpriseUserDigitalCurrencyExchangeAmountWeight = new BigDecimal(0.05);//企业用户兑换数字货币金额权重
// private static final BigDecimal individualUserConsumerRedEnvelopeCountWeight = new BigDecimal(0.05); //个人用户领取消费红包数量权重
// private static final BigDecimal individualUserProductPurchaseQuantityWeight = new BigDecimal(0.05);//个人用户购买商品数量权重
// private static final BigDecimal individualUserWalletOpenCountWeight = new BigDecimal(0.05);//个人用户开通钱包数量权重
// private static final BigDecimal individualUserDigitalCurrencyExchangeCountWeight = new BigDecimal(0.1); //个人用户兑换数字货币次数权重
// private static final BigDecimal individualUserDigitalCurrencyExchangeAmountWeight = new BigDecimal(0.05);//个人用户兑换数字货币金额权重
// private static final BigDecimal trainingReportScoreWeight = new BigDecimal(0.1);
/**
* module
*
*/
public static final String HXHS_TCHMODULE = "哈希函数";
public static final String QKL_TCHMODULE = "区块链";
public static final String SJC_TCHMODULE = "数据层";
public static final String WLC_TCHMODULE = "网络层";
public static final String GSC_TCHMODULE = "共识层";
public static final String JLC_TCHMODULE = "激励层";
public static final String HYC_TCHMODULE = "合约层";
public static final String ZSGY_TCHMODULE = "知识概要";
public static final String ZYXX_TCHMODULE = "资源学习";
public static final String XXCP_TCHMODULE = "学习测评";
public static final String SYSX_TCHMODULE = "实验实训";
public static final String SYBG_TCHMODULE = "实验报告";
public static final String QKLGN_TCHMODULE_TOTAL = "区块链概念";
public static final String QKLJS_TCHMODULE_TOTAL = "区块链技术";
public static final String SZHB_TCHMODULE_TOTAL = "数字货币";
public static final String CHUANGSHIQUKUAIDATA = "Jk3I59fWbCBMeCChqOdHTD1JF4GrG0+d9IRzp/1rG4bKa+XSh2AdDVhBrNWygc716U5sRkETy2gaZqXoJw/lgL5TwO6iYWF/GjeGqfAP/k6po6cQUgmP8Mr0KPTKb8qY6qrvyH7ZxrJ22ypxc4lTVN7pVNumlapbkEVCsSInVws=";
/**
*
*/
public static final String ENTERPRISEPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALbzIq37GUHFg1wr8aY/b3kh0oj6wEjEkF10VNgeTjWRwRgFiP0nQHm4NDnupRY3en75wf+n5Au2pruRTKknnocCAwEAAQ==";
/**
*
*/
public static final String ENTERPRISEPRIVATEKEY = "MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAtvMirfsZQcWDXCvxpj9veSHSiPrASMSQXXRU2B5ONZHBGAWI/SdAebg0Oe6lFjd6fvnB/6fkC7amu5FMqSeehwIDAQABAkBPvk7Bcw+hQYxuYqEkC8Z1EC8KkfG6RiN++LP6t8rzQeX9VZ2B6+SsefC0LeK1y3su7PfC1t1S4W4GG24RngnxAiEA4xCeTIRh6V6qWgmGR5f+dG6gnqldVw/Y8PAJxfXgllsCIQDOQ2Dm1n9qbH4YlFNMF6ChUBCGL7blcCoOROTHsvjIRQIgVXzSPHiy7Evp0xA28Al3kZp8+n9FVxvuT3fwFgnmTnUCIEQCcWwLo72KglVGauS3Ea6+wIQOLYcfYa6MxsaV23PlAiEAt/XkPawKWYU6nbNuN+NM4N5/m6lHdqH6o049sVqNONg=";
/**
*
*/
public static final String NODEADDRESS = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa";
public static final String KUNMINGPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALWDjwfr8566NZKJAs5VnLa47u9FviizvKckHH5cQNd63TT1awkID5oGk/M39Qc19pj3EhO3yuN8kA4UBxtNHskCAwEAAQ==";
/** public static final String KUNMINGPRIVATEKEY = "MIIBVgIBADANBgkqhkiG9w0BAQEFAASCAUAwggE8AgEAAkEAtYOPB+vznro1kokCzlWctrju70W+KLO8pyQcflxA13rdNPVrCQgPmgaT8zf1BzX2mPcSE7fK43yQDhQHG00eyQIDAQABAkEAhf96DrIMZkg3FldZH/Opvmal1TPaXvfZNFZ/RnVaVPeY7sZATBhfitn3WqzdpdDtoksctbyPKrXjzAV0iafqxQIhAPWH4t0PJwnlP10Y+Ig1WCAcvFVc2Fu8ElshpVqYngWnAiEAvUDj49N9+yS6weO2eRuioXcGLEx9NjD7NomzMu+sJg8CIQCjDI8iH8rb7moKp+d7hHk2Mf77bQGcwaMq84f8RrdBpwIgIQqdPv+DtT86Y/OPviE3CZ2wNDe+fKGcmm78HF5/3b0CIQDwZK0KIZskQi0FN8muojQaklzhBt6teC4CW4tfVJyBrQ==";
*
*/
public static final String PERSONPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOZ0Xn7mAdMyhe1YZtFqMA2PuMFas0IIdhA4Hn8u3M0RMAWhgkZVCCyHyX3u6DmMOtfinyGHkMIMp/3s6z2p+aECAwEAAQ==";
/**
*
*/
public static final String PERSONPRIVATEKEY = "MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEA5nRefuYB0zKF7Vhm0WowDY+4wVqzQgh2EDgefy7czREwBaGCRlUILIfJfe7oOYw61+KfIYeQwgyn/ezrPan5oQIDAQABAkAC29y0PEw3f3/z0s3ruSKBeI/1LhfdMNeuGdQfBcjNbmwgGbf/doPiR2U/2eYIUOg6Z+EdWr02ENwGkJfIkvIFAiEA9z1WyuM/IVZ9dgtGIGeivldfvfsUDh/Sq5g1hWExnnMCIQDunsa/1Olk2qz0Rodwh55fbyiotmYbadcVdFI18khOmwIhAJM1HXFN3u/NnIPlcIqoyhiE04e9cBJ81iW/SdaxqSaLAiEArI7TiWwNr+pXQnsyfJUGWVtIWuE0a8SZTqGExhBEa9sCIDJE/SbHPCEFV20Vr8oWgNUNS4tN4vGwhVrrc3W3VnZw";
/** public static final String YINBANGPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALiSEU13ypBqC5PdjttNIfXtaK/gpFJkREdysX/qzY9+OQCt7Xu1F/NUqRBzAVlPu8eBQr2JFdo5rpZkPsp1CaUCAwEAAQ==";
*
*/
public static final String PERSIONADDRESS = "1J7mdg5rbQyUHENYdx39WVWK7fsLpEoXZy";
public static final String YINBANGPRIVATEKEY = "MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAuJIRTXfKkGoLk92O200h9e1or+CkUmRER3Kxf+rNj345AK3te7UX81SpEHMBWU+7x4FCvYkV2jmulmQ+ynUJpQIDAQABAkA95LWqrcYe4YDaaAzU26vMxX06pXFVM8x1zS9avwmJ2W17j/MOTO4ZZkvSvEqXsqfXNEBuI9u1x0mEwsA1luItAiEA/lOpzSiOwboFc979DVz23f3Cv4qOjTMjYO6gs7V3C28CIQC5yOvGC7Kgj57YpSoVEVW8/8HlE8fOX5mdJ/PxffTCKwIgIt8h1ymKeXGiMcMPe3eVudaDj3PWG/I5FZ9ilYF6My0CIDN+ikNBeMhiJoAb/3cJb/9L0H1jJy1/d/+EVGwqIk4zAiEA8hEbKehnmUv09i/tci3j8eEHv2fjn3PFx8pC3jQDVk0=";
/**
*
*/
public static final String GOODSPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIO/GGtTEOmgb9l+j1gnS/YNM2DVBoWXazoX9ynUcCYiiaMurTRoziMDSCM/MJ/fawbTNMPx4lOV5Wc/6bdtnj0CAwEAAQ==";
/**
*
*/
public static final String GOODSPRIVATEKEY = "MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAg78Ya1MQ6aBv2X6PWCdL9g0zYNUGhZdrOhf3KdRwJiKJoy6tNGjOIwNIIz8wn99rBtM0w/HiU5XlZz/pt22ePQIDAQABAkBA2FDrmmILq9UBpyJk0Eq6G7s7IP7pyCKV4G/eHdrpWYUEpcN1KNocFuXykb36EGmDZfgQluxObric3adM9aoBAiEA2myTyEkzIrUusAEcgXXhuo1AKJtJFI7B9QqYSActHYECIQCaaTlpitI//QY8PFPebQ6nCknO2MXoKXu4FMw7ePXWvQIge6ldQdevi8boV91JNkJ3Ohcea97+0RTB2unUrXLiqAECIDky426iWxITE706h8LsWTItkHvMNzuyKj9djO4297JtAiBh6x1gboaBMaWeqFDl0AURiL0OLu34Qh4R7OD0cwv6lw==";
/**
*
*/
public static final String GOODSADDRESS = "1fTzePeLpEGefHEDOPTfTLGSLmv7DivfPa";
public static final String XINFENGPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIXJ3AcYZEyMxaNmIZxH1bQZ6vOVBpnLxg2Ks1OUqeUikWt+lgU077OqfHlfs8yF8hIgojztaTQL3QQtiHfTzLMCAwEAAQ==";
/**
*
*/
public static final String TXAPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANP/5uOCjgHEJkuS+HnDSq5aCdvWGw7dmj+QsNkp/Zg4Yk2/4PqIsxTfOUy6q/2b3Sbn/cP2nH1w1W4bUqqjjN0CAwEAAQ=="; public static final String XINFENGPRIVATEKEY = "MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAhcncBxhkTIzFo2YhnEfVtBnq85UGmcvGDYqzU5Sp5SKRa36WBTTvs6p8eV+zzIXyEiCiPO1pNAvdBC2Id9PMswIDAQABAkB8K9/1DeR5T+ZXQ4FKZTmpEK0KKnSX5ZMKGoNZvY75xII9QRoGbyM7SXGmeZ/9TWv1NcHH57hcTwrZjfI4XRdBAiEA1w7Wbw69MkyDx4Aa5iH9yGTDRMgseQnuRE1xd+MWIYMCIQCfQjy7UFx6JUxyZFmo7bBVgRTpcJKBoFurnezPqhCxEQIgIwKSXCANItwb8+Vh+6b69p2YwGDKBKZeOJZW64p3dtsCIHlBS1AqzV5Ki7wE36cY4csYLr3V8hYz69fss+MgzvihAiEAxtF7691ObYOh4DMMLCEBYzGCTTbWDCxRyFltD/nrvrE=";
/**
*
*/
public static final String TXAPRIVATEKEY = "MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEA0//m44KOAcQmS5L4ecNKrloJ29YbDt2aP5Cw2Sn9mDhiTb/g+oizFN85TLqr/ZvdJuf9w/acfXDVbhtSqqOM3QIDAQABAkBOJKyZvfzUP9YR01nNoCO+AqhRpSkSILMDrTTSx3yXh7znlzAgLggo+ATc39NuSTnLNZzgcgKvIBYMlFjFer6NAiEA+W3OOoT9N6huoMFw/g77R9ms2T5pf0TR+jTTCWZaTLMCIQDZlaqLibsqo9n3j51lK2rScZjHpV2a2eod5+FGvF6oLwIgZ1uGCp/TIf4soXanMM/adoKP6pG/O5qz/B9pl8qO/psCIA/BwOn9/WnnF7/PzKwo6sF2rIO4vACcy1GDG1NODOTNAiEA2L7ejkpXnFRQyCZsoNwI1UXzaL1bBzyYwrZSqoYLpCg=";
public static final String SHENZHENPUBLICKEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMfZpjt7MVadQky2TL+RHD+eJhjmWNtqCvKWZByVEajltTgLiQFIn8ESNcL9ZkB5aAidxYP7QjHHFWGMgRprkp0CAwEAAQ==";
public static final String SHENZHENPRIVATEKEY = "MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAx9mmO3sxVp1CTLZMv5EcP54mGOZY22oK8pZkHJURqOW1OAuJAUifwRI1wv1mQHloCJ3Fg/tCMccVYYyBGmuSnQIDAQABAkBm5loBJl0xC6end/XsbPruhq93AqOd1evtHCJP1TFSlIrWPy95H/fqZVxH65uMcXZpuMlmSkj1G8FgY401BvwBAiEA5aspno8vXg7HNXffqDqv2I+G/liOg81ei7bnjBcNGJECIQDew07gL7Se9mkNyakQvuvj/kD/A3YYleXB5ZmQrze/TQIgd0Tl/jO5k4z1Iu03tvOTMlGG9zsh94yFVuULZhLqeCECIGETm/v2zi+4Em//wb2adhIVax221HBCYq3s8M8sjI7BAiEAg5QCIjWpOWFavCmeR6/hoD/dWpKbP55twOKxZyadTEQ=";
/**
*
*/
public static final String TAXNODEADDRESS = "5ubz98RvsSFGPKWlMaTSCkMXaT10WqO47G";
} }

@ -22,6 +22,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.util.List; import java.util.List;
@ -55,22 +56,33 @@ public class StuSupplyBusinessController {
public ResultEntity addNodes(@Valid @RequestBody StuAddNodesDto stuAddNodesDto) throws NoSuchAlgorithmException { public ResultEntity addNodes(@Valid @RequestBody StuAddNodesDto stuAddNodesDto) throws NoSuchAlgorithmException {
stuBusinessSupplyService.addNodes(stuAddNodesDto); stuBusinessSupplyService.addNodes(stuAddNodesDto);
return new ResultEntity<>(HttpStatus.OK); return new ResultEntity<>(HttpStatus.OK,"注册成功!");
} }
@PostMapping("/uploadBussinessImg") @PostMapping("/uploadBussinessImg")
@ApiOperation(value = "上传营业执照") @ApiOperation(value = "上传营业执照")
@AnonymousAccess @AnonymousAccess
public ResultEntity<String> uploadBussinessImg(@RequestPart MultipartFile file, public ResultEntity<String> uploadBussinessImg(@RequestParam("file")@RequestPart MultipartFile file,
@ApiParam("用户ID") String userId, @ApiParam("用户ID") String userId,
@ApiParam("用户名")String userName){ @ApiParam("用户名")String userName){
String path = stuBusinessSupplyService.uploadBussinessImg(file,userId,userName); String path = stuBusinessSupplyService.uploadBussinessImg(file,userId,userName);
return new ResultEntity<>(HttpStatus.OK); return new ResultEntity<>(HttpStatus.OK,"上传成功",path);
} }
// @GetMapping("/getSecretInfo")
// @ApiOperation(value = "密码箱公私密钥")
// @AnonymousAccess
// public ResultEntity<List<stuJoinNode>> getNodesInfo(@ApiParam("用户ID") String userId){
//
// List<stuJoinNode> nodeList = stuBusinessSupplyService.getNodesInfo(userId);
//
//
// return new ResultEntity<>(HttpStatus.OK,"获取成功",nodeList);
// }

@ -0,0 +1,53 @@
package com.sztzjy.block_finance.entity;
public class StuDebtInvestigationInfo {
private Integer id;
private String debtInvestigationMatters;
private String url;
private Integer onAnalysis;
private String analyzeReferenceMaterials;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDebtInvestigationMatters() {
return debtInvestigationMatters;
}
public void setDebtInvestigationMatters(String debtInvestigationMatters) {
this.debtInvestigationMatters = debtInvestigationMatters == null ? null : debtInvestigationMatters.trim();
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
public Integer getOnAnalysis() {
return onAnalysis;
}
public void setOnAnalysis(Integer onAnalysis) {
this.onAnalysis = onAnalysis;
}
public String getAnalyzeReferenceMaterials() {
return analyzeReferenceMaterials;
}
public void setAnalyzeReferenceMaterials(String analyzeReferenceMaterials) {
this.analyzeReferenceMaterials = analyzeReferenceMaterials == null ? null : analyzeReferenceMaterials.trim();
}
}

@ -0,0 +1,529 @@
package com.sztzjy.block_finance.entity;
import java.util.ArrayList;
import java.util.List;
public class StuDebtInvestigationInfoExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StuDebtInvestigationInfoExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersIsNull() {
addCriterion("debt_investigation_matters is null");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersIsNotNull() {
addCriterion("debt_investigation_matters is not null");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersEqualTo(String value) {
addCriterion("debt_investigation_matters =", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersNotEqualTo(String value) {
addCriterion("debt_investigation_matters <>", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersGreaterThan(String value) {
addCriterion("debt_investigation_matters >", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersGreaterThanOrEqualTo(String value) {
addCriterion("debt_investigation_matters >=", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersLessThan(String value) {
addCriterion("debt_investigation_matters <", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersLessThanOrEqualTo(String value) {
addCriterion("debt_investigation_matters <=", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersLike(String value) {
addCriterion("debt_investigation_matters like", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersNotLike(String value) {
addCriterion("debt_investigation_matters not like", value, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersIn(List<String> values) {
addCriterion("debt_investigation_matters in", values, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersNotIn(List<String> values) {
addCriterion("debt_investigation_matters not in", values, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersBetween(String value1, String value2) {
addCriterion("debt_investigation_matters between", value1, value2, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andDebtInvestigationMattersNotBetween(String value1, String value2) {
addCriterion("debt_investigation_matters not between", value1, value2, "debtInvestigationMatters");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andOnAnalysisIsNull() {
addCriterion("on_analysis is null");
return (Criteria) this;
}
public Criteria andOnAnalysisIsNotNull() {
addCriterion("on_analysis is not null");
return (Criteria) this;
}
public Criteria andOnAnalysisEqualTo(Integer value) {
addCriterion("on_analysis =", value, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisNotEqualTo(Integer value) {
addCriterion("on_analysis <>", value, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisGreaterThan(Integer value) {
addCriterion("on_analysis >", value, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisGreaterThanOrEqualTo(Integer value) {
addCriterion("on_analysis >=", value, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisLessThan(Integer value) {
addCriterion("on_analysis <", value, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisLessThanOrEqualTo(Integer value) {
addCriterion("on_analysis <=", value, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisIn(List<Integer> values) {
addCriterion("on_analysis in", values, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisNotIn(List<Integer> values) {
addCriterion("on_analysis not in", values, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisBetween(Integer value1, Integer value2) {
addCriterion("on_analysis between", value1, value2, "onAnalysis");
return (Criteria) this;
}
public Criteria andOnAnalysisNotBetween(Integer value1, Integer value2) {
addCriterion("on_analysis not between", value1, value2, "onAnalysis");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsIsNull() {
addCriterion("analyze_reference_materials is null");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsIsNotNull() {
addCriterion("analyze_reference_materials is not null");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsEqualTo(String value) {
addCriterion("analyze_reference_materials =", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsNotEqualTo(String value) {
addCriterion("analyze_reference_materials <>", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsGreaterThan(String value) {
addCriterion("analyze_reference_materials >", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsGreaterThanOrEqualTo(String value) {
addCriterion("analyze_reference_materials >=", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsLessThan(String value) {
addCriterion("analyze_reference_materials <", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsLessThanOrEqualTo(String value) {
addCriterion("analyze_reference_materials <=", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsLike(String value) {
addCriterion("analyze_reference_materials like", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsNotLike(String value) {
addCriterion("analyze_reference_materials not like", value, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsIn(List<String> values) {
addCriterion("analyze_reference_materials in", values, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsNotIn(List<String> values) {
addCriterion("analyze_reference_materials not in", values, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsBetween(String value1, String value2) {
addCriterion("analyze_reference_materials between", value1, value2, "analyzeReferenceMaterials");
return (Criteria) this;
}
public Criteria andAnalyzeReferenceMaterialsNotBetween(String value1, String value2) {
addCriterion("analyze_reference_materials not between", value1, value2, "analyzeReferenceMaterials");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -5,7 +5,7 @@ import java.util.Date;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* *
* @author * @author xxx
* stu_join_node * stu_join_node
*/ */
public class stuJoinNode { public class stuJoinNode {

@ -0,0 +1,30 @@
package com.sztzjy.block_finance.mappers;
import com.sztzjy.block_finance.entity.StuDebtInvestigationInfo;
import com.sztzjy.block_finance.entity.StuDebtInvestigationInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StuDebtInvestigationInfoMapper {
long countByExample(StuDebtInvestigationInfoExample example);
int deleteByExample(StuDebtInvestigationInfoExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuDebtInvestigationInfo record);
int insertSelective(StuDebtInvestigationInfo record);
List<StuDebtInvestigationInfo> selectByExample(StuDebtInvestigationInfoExample example);
StuDebtInvestigationInfo selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuDebtInvestigationInfo record, @Param("example") StuDebtInvestigationInfoExample example);
int updateByExample(@Param("record") StuDebtInvestigationInfo record, @Param("example") StuDebtInvestigationInfoExample example);
int updateByPrimaryKeySelective(StuDebtInvestigationInfo record);
int updateByPrimaryKey(StuDebtInvestigationInfo record);
}

@ -3,10 +3,8 @@ package com.sztzjy.block_finance.mappers;
import com.sztzjy.block_finance.entity.stuJoinNode; import com.sztzjy.block_finance.entity.stuJoinNode;
import com.sztzjy.block_finance.entity.stuJoinNodeExample; import com.sztzjy.block_finance.entity.stuJoinNodeExample;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
@Mapper
public interface stuJoinNodeMapper { public interface stuJoinNodeMapper {
long countByExample(stuJoinNodeExample example); long countByExample(stuJoinNodeExample example);

@ -5,6 +5,7 @@ package com.sztzjy.block_finance.service.impl;/**
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import com.sztzjy.block_finance.config.Constant;
import com.sztzjy.block_finance.config.exception.handler.InvoceTException; import com.sztzjy.block_finance.config.exception.handler.InvoceTException;
import com.sztzjy.block_finance.config.exception.handler.NoContentException; import com.sztzjy.block_finance.config.exception.handler.NoContentException;
import com.sztzjy.block_finance.entity.dto.StuAddNodesDto; import com.sztzjy.block_finance.entity.dto.StuAddNodesDto;
@ -23,8 +24,10 @@ import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.validation.constraints.NotNull;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.util.*; import java.util.*;
@ -161,9 +164,35 @@ public class StuBusinessSupplyServiceImpl implements StuBusinessSupplyService {
{ {
throw new InvoceTException(HttpStatus.BAD_REQUEST,"请勿重复注册!"); throw new InvoceTException(HttpStatus.BAD_REQUEST,"请勿重复注册!");
} }
RsaUtil.RsaKeyPair rsaKeyPair = RsaUtil.generateKeyPair();
stuJoinNodes.get(0).setPublicKey( rsaKeyPair.getPublicKey());
stuJoinNodes.get(0).setPrivateKey( rsaKeyPair.getPrivateKey()); if (Constant.KUNMING.equals(stuAddNodesDto.getRegName())){
stuJoinNodes.get(0).setPublicKey( Constant.KUNMINGPUBLICKEY);
stuJoinNodes.get(0).setPrivateKey( Constant.KUNMINGPRIVATEKEY);
}
if (Constant.XINFENG.equals(stuAddNodesDto.getRegName())){
stuJoinNodes.get(0).setPublicKey( Constant.XINFENGPUBLICKEY);
stuJoinNodes.get(0).setPrivateKey( Constant.XINFENGPRIVATEKEY);
}
if (Constant.YINBANG.equals(stuAddNodesDto.getRegName())){
stuJoinNodes.get(0).setPublicKey( Constant.YINBANGPUBLICKEY);
stuJoinNodes.get(0).setPrivateKey( Constant.YINBANGPRIVATEKEY);
}
if (Constant.SHENZHEN.equals(stuAddNodesDto.getRegName())){
stuJoinNodes.get(0).setPublicKey( Constant.SHENZHENPUBLICKEY);
stuJoinNodes.get(0).setPrivateKey( Constant.SHENZHENPRIVATEKEY);
}
stuJoinNodes.get(0).setImgPath(stuAddNodesDto.getImgAddress());
stuJoinNodes.get(0).setUpdateTime(new Date()); stuJoinNodes.get(0).setUpdateTime(new Date());
stuJoinNodeMapper.updateByPrimaryKeySelective(stuJoinNodes.get(0)); stuJoinNodeMapper.updateByPrimaryKeySelective(stuJoinNodes.get(0));
@ -180,26 +209,44 @@ public class StuBusinessSupplyServiceImpl implements StuBusinessSupplyService {
String userName) { String userName) {
if (file.isEmpty()) if (file.isEmpty())
{ {
throw new InvoceTException(HttpStatus.BAD_REQUEST,"上传文件为空!"); throw new InvoceTException(HttpStatus.BAD_REQUEST,"上传文件不能为空!");
} }
LocalFileUtil localFileUtil = new LocalFileUtil(path); // 获取文件名
String upload = localFileUtil.upload(file); String originalFilename = file.getOriginalFilename();
// 判断文件扩展名是否为图片格式
if (StringUtils.hasLength(originalFilename)
&& (originalFilename.toLowerCase().endsWith(".jpg")
|| originalFilename.toLowerCase().endsWith(".jpeg")
|| originalFilename.toLowerCase().endsWith(".png")))
{
LocalFileUtil localFileUtil = new LocalFileUtil(path);
String upload = localFileUtil.upload(file);
stuJoinNodeExample example = new stuJoinNodeExample();
example.createCriteria().andUserIdEqualTo(userId).andUserNameEqualTo(userName);
List<stuJoinNode> stuJoinNodes = stuJoinNodeMapper.selectByExample(example);
if (!CollectionUtils.isEmpty(stuJoinNodes)){
stuJoinNode stuJoinNode = stuJoinNodes.get(0);
stuJoinNode.setImgPath(upload);
stuJoinNodeMapper.updateByPrimaryKeySelective(stuJoinNode);
return upload;
}else {
throw new InvoceTException(HttpStatus.BAD_REQUEST,"上传失败!");
}
stuJoinNodeExample example = new stuJoinNodeExample();
example.createCriteria().andUserIdEqualTo(userId).andUserNameEqualTo(userName);
List<stuJoinNode> stuJoinNodes = stuJoinNodeMapper.selectByExample(example);
if (!CollectionUtils.isEmpty(stuJoinNodes)){
stuJoinNode stuJoinNode = stuJoinNodes.get(0);
stuJoinNode.setImgPath(upload);
stuJoinNodeMapper.updateByPrimaryKeySelective(stuJoinNode);
return upload;
}else { }else {
throw new InvoceTException(HttpStatus.BAD_REQUEST,"异常!"); throw new InvoceTException(HttpStatus.BAD_REQUEST,"请上传正确的图片!");
} }
} }
} }

@ -17,8 +17,8 @@ public class GeneratorUtil {
List<String> warnings = new ArrayList<>(); List<String> warnings = new ArrayList<>();
boolean overwrite = true; boolean overwrite = true;
// 获取 generatorConfig 文件路径 // 获取 generatorConfig.xml 文件路径
URL resourceUrl = GeneratorUtil.class.getResource("/generatorConfig"); URL resourceUrl = GeneratorUtil.class.getResource("/generatorConfig.xml");
String configFilePath = resourceUrl.getFile(); String configFilePath = resourceUrl.getFile();
File configFileObj = new File(configFilePath); File configFileObj = new File(configFilePath);

@ -1,250 +0,0 @@
package com.sztzjy.block_finance.util;
import org.mybatis.generator.api.CommentGenerator;
import org.mybatis.generator.api.IntrospectedColumn;
import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.api.dom.java.*;
import org.mybatis.generator.api.dom.xml.XmlElement;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.PropertyRegistry;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCallback;
import org.mybatis.generator.internal.util.StringUtility;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import static org.mybatis.generator.internal.util.StringUtility.isTrue;
/*
* @author xcj
* @Date 2023/11/14
*/
public class MyCommentGenerator implements CommentGenerator {
public static void main(String[] args) {
List<String> warnings = new ArrayList<>();
boolean overwrite = true;
// 给出generatorConfig.xml文件的位置绝对地址或者类路径下
//File configFile = new File("E:\\xxxxxxxxx\\generatorConfig");
File configFile = new File(MyCommentGenerator.class.getClassLoader().getResource("generatorConfig").getFile());
ConfigurationParser cp = new ConfigurationParser(warnings);
try {
Configuration config = cp.parseConfiguration(configFile);
DefaultShellCallback callback = new DefaultShellCallback(overwrite);
MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings);
myBatisGenerator.generate(null);
} catch (Exception e) {
e.printStackTrace();
}
}
private Properties properties;
private boolean suppressDate;
private boolean suppressAllComments;
/**
* If suppressAllComments is true, this option is ignored.
*/
private boolean addRemarkComments;
private SimpleDateFormat dateFormat;
public MyCommentGenerator() {
super();
properties = new Properties();
suppressDate = false;
suppressAllComments = false;
addRemarkComments = false;
}
/**
*
*
* @param properties
*/
@Override
public void addConfigurationProperties(Properties properties) {
this.properties.putAll(properties);
suppressDate = isTrue(properties
.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_DATE));
suppressAllComments = isTrue(properties
.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_ALL_COMMENTS));
addRemarkComments = isTrue(properties
.getProperty(PropertyRegistry.COMMENT_GENERATOR_ADD_REMARK_COMMENTS));
String dateFormatString = properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_DATE_FORMAT);
if (StringUtility.stringHasValue(dateFormatString)) {
dateFormat = new SimpleDateFormat(dateFormatString);
}
}
/**
*
*
* @param topLevelClass
* @param introspectedTable
*/
@Override
public void addModelClassComment(TopLevelClass topLevelClass,
IntrospectedTable introspectedTable) {
if (suppressAllComments || !addRemarkComments) {
return;
}
topLevelClass.addJavaDocLine("import io.swagger.annotations.ApiModelProperty;");
topLevelClass.addJavaDocLine("/**"); //$NON-NLS-1$
String remarks = introspectedTable.getRemarks();
if (addRemarkComments && StringUtility.stringHasValue(remarks)) {
String[] remarkLines = remarks.split(System.getProperty("line.separator")); //$NON-NLS-1$
for (String remarkLine : remarkLines) {
topLevelClass.addJavaDocLine(" * " + remarkLine); //$NON-NLS-1$
}
}
topLevelClass.addJavaDocLine(" *");
topLevelClass.addJavaDocLine(" * @author ");
topLevelClass.addJavaDocLine(" * " + introspectedTable.getFullyQualifiedTable().toString());
topLevelClass.addJavaDocLine(" */");
// topLevelClass.addJavaDocLine("@Data");
}
// /**
// * 实体类的属性注释,数据库中自定义注释
// *
// * @param field
// * @param introspectedTable
// * @param introspectedColumn
// */
// @Override
// public void addFieldComment(Field field,
// IntrospectedTable introspectedTable,
// IntrospectedColumn introspectedColumn) {
// if (suppressAllComments) {
// return;
// }
// field.addJavaDocLine("/**"); //$NON-NLS-1$
// String remarks = introspectedColumn.getRemarks();
// if (addRemarkComments && StringUtility.stringHasValue(remarks)) {
// String[] remarkLines = remarks.split(System.getProperty("line.separator")); //$NON-NLS-1$
// for (String remarkLine : remarkLines) {
// field.addJavaDocLine(" * " + remarkLine); //$NON-NLS-1$
// }
// }
// field.addJavaDocLine(" */"); //$NON-NLS-1$
// }
/**
*
*
* @param field
* @param introspectedTable
* @param introspectedColumn
*/
@Override
public void addFieldComment(Field field,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn) {
if (suppressAllComments) {
return;
}
// field.addJavaDocLine("/**"); //$NON-NLS-1$
String remarks = introspectedColumn.getRemarks();
if (addRemarkComments && StringUtility.stringHasValue(remarks)) {
String[] remarkLines = remarks.split(System.getProperty("line.separator")); //$NON-NLS-1$
for (String remarkLine : remarkLines) {
field.addJavaDocLine("@ApiModelProperty(\"" + remarkLine + "\")");
}
}
// field.addJavaDocLine(" */"); //$NON-NLS-1$
}
@Override
public void addFieldComment(Field field, IntrospectedTable introspectedTable) {
if (suppressAllComments) {
return;
}
StringBuilder sb = new StringBuilder();
// field.addJavaDocLine("/**"); //$NON-NLS-1$
sb.append(introspectedTable.getFullyQualifiedTable());
// field.addJavaDocLine(" */"); //$NON-NLS-1$
}
@Override
public void addGeneralMethodComment(Method method, IntrospectedTable introspectedTable) {
}
@Override
public void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable) {
}
@Override
public void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable, boolean markAsDoNotDelete) {
}
@Override
public void addEnumComment(InnerEnum innerEnum, IntrospectedTable introspectedTable) {
}
// 不需要get方法的注释
@Override
public void addGetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {
}
// 不需要set方法的注释
@Override
public void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {
}
@Override
public void addGeneralMethodAnnotation(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn, Set<FullyQualifiedJavaType> imports) {
}
@Override
public void addGeneralMethodAnnotation(Method method, IntrospectedTable introspectedTable, Set<FullyQualifiedJavaType> imports) {
}
@Override
public void addFieldAnnotation(Field field, IntrospectedTable introspectedTable, Set<FullyQualifiedJavaType> imports) {
}
@Override
public void addFieldAnnotation(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn, Set<FullyQualifiedJavaType> imports) {
}
@Override
public void addClassAnnotation(InnerClass innerClass, IntrospectedTable introspectedTable, Set<FullyQualifiedJavaType> imports) {
}
@Override
public void addComment(XmlElement xmlElement) {
}
@Override
public void addRootComment(XmlElement rootElement) {
}
@Override
public void addJavaFileComment(CompilationUnit compilationUnit) {
}
}

@ -1,78 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<context id="DB2Tables" targetRuntime="MyBatis3">
<commentGenerator type="com.sztzjy.block_finance.util.MyCommentGenerator">
<!-- 是否去除自动生成的注释 true false:否 -->
<property name="suppressAllComments" value="false"/>
<property name="suppressDate" value="false"/>
<!-- 是否添加数据表中字段的注释 true false:否 -->
<property name="addRemarkComments" value="true"/>
</commentGenerator>
<!-- 配置数据库连接信息 -->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://118.31.7.2:3306/tz_finance_supply" userId="root" password="sztzjy2017">
<!-- <property name="nullCatalogMeansCurrent" value="true"/>-->
<property name="useInformationSchema" value="true"/>
</jdbcConnection>
<!-- 配置实体类的位置 -->
<javaModelGenerator targetPackage="com.sztzjy.block_finance.entity" targetProject="BlockFinanceCentral/src/main/java">
<!-- 生成的Java模型是否支持序列化 -->
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- 配置Mapper XML文件的位置-->
<sqlMapGenerator targetPackage="mappers" targetProject="BlockFinanceCentral/src/main/resources">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<!-- 配置Mapper接口的位置 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.block_finance.mappers" targetProject="BlockFinanceCentral/src/main/java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!-- 需要生成的表 -->
<!-- <table tableName="stu_redemption_red_packet_record" domainObjectName="StuRedemptionRedPacketRecord" />-->
<!-- <table tableName="stu_learning_assessment" domainObjectName="StuLearningAssessment" />-->
<!-- <table tableName="stu_learning_assessment" domainObjectName="StuLearningAssessment" />-->
<table tableName="stu_join_node" domainObjectName="stuJoinNode" />
<!-- <table tableName="stu_business_bank_asset_info" domainObjectName="StuBusinessBankAssetInfo" />-->
<!-- <table tableName="stu_business_bank_red_packet_info" domainObjectName="StuBusinessBankRedPacketInfo" />-->
<!-- <table tableName="stu_business_product" domainObjectName="StuBusinessProduct" />-->
<!-- <table tableName="stu_business_user_info" domainObjectName="StuBusinessUserInfo" />-->
<!-- <table tableName="stu_central_bank_asset_info" domainObjectName="StuCentralBankAssetInfo" />-->
<!-- <table tableName="stu_central_bank_control_bits" domainObjectName="StuCentralBankControlBits" />-->
<!-- <table tableName="stu_cryptocurrency" domainObjectName="StuCryptocurrency" />-->
<!-- <table tableName="stu_cryptocurrency_transaction_record" domainObjectName="StuCryptocurrencyTransactionRecord" />-->
<!-- <table tableName="stu_digital_currency_exchange_detail" domainObjectName="StuDigitalCurrencyExchangeDetail" />-->
<!-- <table tableName="stu_digital_wallet_activation_record" domainObjectName="StuDigitalWalletActivationRecord" />-->
<!-- <table tableName="stu_evaluation" domainObjectName="StuEvaluation" />-->
<!-- <table tableName="stu_knowledge_notes" domainObjectName="StuKnowledgeNotes" />-->
<!-- <table tableName="stu_concept_navigation" domainObjectName="StuConceptNavigation" />-->
<!-- <table tableName="stu_hash_encryption_task" domainObjectName="StuHashEncryptionTask" />-->
<!-- <table tableName="stu_blockchain_technology_consensus" domainObjectName="StuBlockchainTechnologyConsensus" />-->
<!-- <table tableName="admin_excel_error_message" domainObjectName="AdminExcelErrorMessage" />-->
<!-- <table tableName="stu_role" domainObjectName="StuRole" />-->
<!-- <table tableName="stu_role_route" domainObjectName="StuRoleRoute" />-->
<!-- <table tableName="stu_meta" domainObjectName="StuMeta" />-->
<!-- <table tableName="stu_hash_training_signature" domainObjectName="StuHashTrainingSignature" />-->
<!-- <table tableName="stu_knowledge_summary" domainObjectName="StuKnowledgeSummary" />-->
<!-- <table tableName="stu_personal_red_packet_record" domainObjectName="StuPersonalRedPacketRecord" />-->
<!-- <table tableName="stu_personal_user_info" domainObjectName="StuPersonalUserInfo" />-->
<!-- <table tableName="stu_practical_training" domainObjectName="StuPracticalTraining" />-->
<!-- <table tableName="stu_practical_training_task" domainObjectName="StuPracticalTrainingTask" />-->
<!-- <table tableName="stu_product_transaction_record" domainObjectName="StuProductTransactionRecord" />-->
<!-- <table tableName="stu_redemption_red_packet_record" domainObjectName="StuRedemptionRedPacketRecord" />-->
<!-- <table tableName="stu_resources" domainObjectName="StuResources" />-->
<!-- <table tableName="stu_score_details" domainObjectName="StuScoreDetails" />-->
<!-- <table tableName="stu_user" domainObjectName="StuUser" />-->
<!-- <table tableName="stu_wallet_level" domainObjectName="StuWalletLevel" />-->
</context>
</generatorConfiguration>

@ -3,45 +3,71 @@
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration> <generatorConfiguration>
<context id="DB2Tables" targetRuntime="MyBatis3"> <context id="DB2Tables" targetRuntime="MyBatis3">
<!-- <commentGenerator>--> <commentGenerator>
<!-- <property name="suppressAllComments" value="true"/>-->
<!-- </commentGenerator>-->
<!-- type值为自定义的MyCommentGenerator-->
<commentGenerator type="com.sztzjy.block_finance.util.MyCommentGenerator">
<!-- 是否去除自动生成的注释 true false:否 --> <!-- 是否去除自动生成的注释 true false:否 -->
<property name="suppressAllComments" value="false"/> <property name="suppressAllComments" value="true"/>
<property name="suppressDate" value="false"/> <!-- 抑制警告 -->
<!-- 是否添加数据表中字段的注释 true false:否 --> <property name="suppressTypeWarnings" value="true" />
<property name="suppressDate" value="true"/>
<!-- 注释是否包含数据库表字段的注释信息 true false:否 -->
<property name="addRemarkComments" value="true"/> <property name="addRemarkComments" value="true"/>
</commentGenerator> </commentGenerator>
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://118.31.7.2:3306/tz_finance_supply" userId="root" password="sztzjy2017" >
<!-- 配置数据库连接信息 -->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://118.31.7.2:3306/tz_finance_supply" userId="root"
password="sztzjy2017">
<property name="nullCatalogMeansCurrent" value="true"/> <property name="nullCatalogMeansCurrent" value="true"/>
<property name="useInformationSchema" value="true"/> <!--useInformationSchema 实体类上添加数据表的注释 -->
</jdbcConnection> </jdbcConnection>
<!-- 配置实体类的位置 --> <!-- 配置实体类的位置 -->
<javaModelGenerator targetPackage="com.sztzjy.block_finance.entity" targetProject="src/main/java"> <javaModelGenerator targetPackage="com.sztzjy.block_finance.entity" targetProject="BlockFinanceCentral/src/main/java">
<!-- 生成的Java模型是否支持序列化 --> <!-- 生成的Java模型是否支持序列化 -->
<property name="enableSubPackages" value="true"/> <property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true"/> <property name="trimStrings" value="true" />
</javaModelGenerator> </javaModelGenerator>
<!-- 配置Mapper XML文件的位置--> <!-- 配置Mapper XML文件的位置-->
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources"> <sqlMapGenerator targetPackage="mappers" targetProject="BlockFinanceCentral/src/main/resources">
<property name="enableSubPackages" value="true"/> <property name="enableSubPackages" value="true" />
</sqlMapGenerator> </sqlMapGenerator>
<!-- 配置Mapper接口的位置 --> <!-- 配置Mapper接口的位置 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.block_finance.mapper" <javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.block_finance.mappers" targetProject="BlockFinanceCentral/src/main/java">
targetProject="src/main/java"> <property name="enableSubPackages" value="true" />
<property name="enableSubPackages" value="true"/>
</javaClientGenerator> </javaClientGenerator>
<!-- 需要生成的表 --> <!-- 需要生成的表 -->
<!-- <table tableName="stu_redemption_red_packet_record" domainObjectName="StuRedemptionRedPacketRecord" />-->
<!-- <table tableName="stu_learning_assessment" domainObjectName="StuLearningAssessment" />-->
<!-- <table tableName="stu_business_asset_info" domainObjectName="StuBusinessAssetInfo" />-->
<!-- <table tableName="stu_business_bank_asset_info" domainObjectName="StuBusinessBankAssetInfo" />-->
<!-- <table tableName="stu_business_bank_red_packet_info" domainObjectName="StuBusinessBankRedPacketInfo" />-->
<!-- <table tableName="stu_business_product" domainObjectName="StuBusinessProduct" />-->
<!-- <table tableName="stu_business_user_info" domainObjectName="StuBusinessUserInfo" />-->
<!-- <table tableName="stu_central_bank_asset_info" domainObjectName="StuCentralBankAssetInfo" />-->
<!-- <table tableName="stu_central_bank_control_bits" domainObjectName="StuCentralBankControlBits" />-->
<!-- <table tableName="stu_cryptocurrency" domainObjectName="StuCryptocurrency" />-->
<!-- <table tableName="stu_cryptocurrency_transaction_record" domainObjectName="StuCryptocurrencyTransactionRecord" />-->
<!-- <table tableName="stu_digital_currency_exchange_detail" domainObjectName="StuDigitalCurrencyExchangeDetail" />-->
<!-- <table tableName="stu_digital_wallet_activation_record" domainObjectName="StuDigitalWalletActivationRecord" />-->
<!-- <table tableName="stu_evaluation" domainObjectName="StuEvaluation" />-->
<!-- <table tableName="stu_knowledge_notes" domainObjectName="StuKnowledgeNotes" />-->
<!-- <table tableName="stu_concept_navigation" domainObjectName="StuConceptNavigation" />-->
<table tableName="stu_debt_investigation_info" domainObjectName="StuDebtInvestigationInfo"/>
<table tableName="stu_join_node" domainObjectName="StuJoinNode" /> <!-- <table tableName="stu_hash_training_signature" domainObjectName="StuHashTrainingSignature" />-->
<!-- <table tableName="stu_knowledge_summary" domainObjectName="StuKnowledgeSummary" />-->
<!-- <table tableName="stu_personal_red_packet_record" domainObjectName="StuPersonalRedPacketRecord" />-->
<!-- <table tableName="stu_personal_user_info" domainObjectName="StuPersonalUserInfo" />-->
<!-- <table tableName="stu_practical_training" domainObjectName="StuPracticalTraining" />-->
<!-- <table tableName="stu_practical_training_task" domainObjectName="StuPracticalTrainingTask" />-->
<!-- <table tableName="stu_product_transaction_record" domainObjectName="StuProductTransactionRecord" />-->
<!-- <table tableName="stu_redemption_red_packet_record" domainObjectName="StuRedemptionRedPacketRecord" />-->
<!-- <table tableName="stu_resources" domainObjectName="StuResources" />-->
<!-- <table tableName="stu_score_details" domainObjectName="StuScoreDetails" />-->
<!-- <table tableName="stu_user" domainObjectName="StuUser" />-->
<!-- <table tableName="stu_wallet_level" domainObjectName="StuWalletLevel" />-->
</context> </context>

@ -0,0 +1,211 @@
<?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.sztzjy.block_finance.mappers.StuDebtInvestigationInfoMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.block_finance.entity.StuDebtInvestigationInfo">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="debt_investigation_matters" jdbcType="VARCHAR" property="debtInvestigationMatters" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="on_analysis" jdbcType="INTEGER" property="onAnalysis" />
<result column="analyze_reference_materials" jdbcType="VARCHAR" property="analyzeReferenceMaterials" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, debt_investigation_matters, url, on_analysis, analyze_reference_materials
</sql>
<select id="selectByExample" parameterType="com.sztzjy.block_finance.entity.StuDebtInvestigationInfoExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_debt_investigation_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from stu_debt_investigation_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_debt_investigation_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.block_finance.entity.StuDebtInvestigationInfoExample">
delete from stu_debt_investigation_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.block_finance.entity.StuDebtInvestigationInfo">
insert into stu_debt_investigation_info (id, debt_investigation_matters, url,
on_analysis, analyze_reference_materials)
values (#{id,jdbcType=INTEGER}, #{debtInvestigationMatters,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
#{onAnalysis,jdbcType=INTEGER}, #{analyzeReferenceMaterials,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.block_finance.entity.StuDebtInvestigationInfo">
insert into stu_debt_investigation_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="debtInvestigationMatters != null">
debt_investigation_matters,
</if>
<if test="url != null">
url,
</if>
<if test="onAnalysis != null">
on_analysis,
</if>
<if test="analyzeReferenceMaterials != null">
analyze_reference_materials,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="debtInvestigationMatters != null">
#{debtInvestigationMatters,jdbcType=VARCHAR},
</if>
<if test="url != null">
#{url,jdbcType=VARCHAR},
</if>
<if test="onAnalysis != null">
#{onAnalysis,jdbcType=INTEGER},
</if>
<if test="analyzeReferenceMaterials != null">
#{analyzeReferenceMaterials,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.block_finance.entity.StuDebtInvestigationInfoExample" resultType="java.lang.Long">
select count(*) from stu_debt_investigation_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_debt_investigation_info
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.debtInvestigationMatters != null">
debt_investigation_matters = #{record.debtInvestigationMatters,jdbcType=VARCHAR},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.onAnalysis != null">
on_analysis = #{record.onAnalysis,jdbcType=INTEGER},
</if>
<if test="record.analyzeReferenceMaterials != null">
analyze_reference_materials = #{record.analyzeReferenceMaterials,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_debt_investigation_info
set id = #{record.id,jdbcType=INTEGER},
debt_investigation_matters = #{record.debtInvestigationMatters,jdbcType=VARCHAR},
url = #{record.url,jdbcType=VARCHAR},
on_analysis = #{record.onAnalysis,jdbcType=INTEGER},
analyze_reference_materials = #{record.analyzeReferenceMaterials,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.block_finance.entity.StuDebtInvestigationInfo">
update stu_debt_investigation_info
<set>
<if test="debtInvestigationMatters != null">
debt_investigation_matters = #{debtInvestigationMatters,jdbcType=VARCHAR},
</if>
<if test="url != null">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="onAnalysis != null">
on_analysis = #{onAnalysis,jdbcType=INTEGER},
</if>
<if test="analyzeReferenceMaterials != null">
analyze_reference_materials = #{analyzeReferenceMaterials,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.block_finance.entity.StuDebtInvestigationInfo">
update stu_debt_investigation_info
set debt_investigation_matters = #{debtInvestigationMatters,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
on_analysis = #{onAnalysis,jdbcType=INTEGER},
analyze_reference_materials = #{analyzeReferenceMaterials,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
Loading…
Cancel
Save