Parcourir la source

2023年10月11日18:14:43

纪新园 il y a 2 ans
Parent
commit
864a38ffe7

+ 124 - 123
blade-service-api/blade-los-api/src/main/java/org/springblade/los/basic/corps/entity/BCorpsAttn.java

@@ -17,12 +17,12 @@
 package org.springblade.los.basic.corps.entity;
 
 import com.baomidou.mybatisplus.annotation.TableName;
-import java.util.Date;
-import java.io.Serializable;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
 
 /**
  * 客户联系人实体类
@@ -38,125 +38,126 @@ public class BCorpsAttn implements Serializable {
 	private static final long serialVersionUID = 1L;
 
 	/**
-	* 主键
-	*/
-		@ApiModelProperty(value = "主键")
-		private Long id;
-	/**
-	* 分公司 Id
-	*/
-		@ApiModelProperty(value = "分公司 Id")
-		private String branchId;
-	/**
-	* 创建人 Id
-	*/
-		@ApiModelProperty(value = "创建人 Id")
-		private Long createUser;
-	/**
-	* 创建人
-	*/
-		@ApiModelProperty(value = "创建人")
-		private String createUserName;
-	/**
-	* 创建部门 Id
-	*/
-		@ApiModelProperty(value = "创建部门 Id")
-		private String createDept;
-	/**
-	* 创建部门
-	*/
-		@ApiModelProperty(value = "创建部门")
-		private String createDeptName;
-	/**
-	* 创建时间
-	*/
-		@ApiModelProperty(value = "创建时间")
-		private Date createTime;
-	/**
-	* 修改人 Id
-	*/
-		@ApiModelProperty(value = "修改人 Id")
-		private Long updateUser;
-	/**
-	* 修改人
-	*/
-		@ApiModelProperty(value = "修改人")
-		private String updateUserName;
-	/**
-	* 修改时间
-	*/
-		@ApiModelProperty(value = "修改时间")
-		private Date updateTime;
-	/**
-	* 主表id
-	*/
-		@ApiModelProperty(value = "主表id")
-		private Long pid;
-	/**
-	* 编号
-	*/
-		@ApiModelProperty(value = "编号")
-		private String code;
-	/**
-	* 名称
-	*/
-		@ApiModelProperty(value = "名称")
-		private String cname;
-	/**
-	* 联系方式
-	*/
-		@ApiModelProperty(value = "联系方式")
-		private String attn;
-	/**
-	* 电话
-	*/
-		@ApiModelProperty(value = "电话")
-		private String tel;
-	/**
-	* 岗位
-	*/
-		@ApiModelProperty(value = "岗位")
-		private String position;
-	/**
-	* 公司地址
-	*/
-		@ApiModelProperty(value = "公司地址")
-		private String addr;
-	/**
-	* 用户ID
-	*/
-		@ApiModelProperty(value = "用户ID")
-		private Long userId;
-	/**
-	* 性别
-	*/
-		@ApiModelProperty(value = "性别")
-		private String sex;
-	/**
-	* 邮箱地址
-	*/
-		@ApiModelProperty(value = "邮箱地址")
-		private String email;
-	/**
-	* 版本
-	*/
-		@ApiModelProperty(value = "版本")
-		private String version;
-	/**
-	* 状态(0 正常 1停用)
-	*/
-		@ApiModelProperty(value = "状态(0 正常 1停用)")
-		private Integer status;
-	/**
-	* 是否已删除(0 否 1是)
-	*/
-		@ApiModelProperty(value = "是否已删除(0 否 1是)")
-		private Integer isDeleted;
-	/**
-	* 备注
-	*/
-		@ApiModelProperty(value = "备注")
-		private String remarks;/**
+	 * 主键
+	 */
+	@ApiModelProperty(value = "主键")
+	private Long id;
+	/**
+	 * 分公司 Id
+	 */
+	@ApiModelProperty(value = "分公司 Id")
+	private String branchId;
+	/**
+	 * 创建人 Id
+	 */
+	@ApiModelProperty(value = "创建人 Id")
+	private Long createUser;
+	/**
+	 * 创建人
+	 */
+	@ApiModelProperty(value = "创建人")
+	private String createUserName;
+	/**
+	 * 创建部门 Id
+	 */
+	@ApiModelProperty(value = "创建部门 Id")
+	private String createDept;
+	/**
+	 * 创建部门
+	 */
+	@ApiModelProperty(value = "创建部门")
+	private String createDeptName;
+	/**
+	 * 创建时间
+	 */
+	@ApiModelProperty(value = "创建时间")
+	private Date createTime;
+	/**
+	 * 修改人 Id
+	 */
+	@ApiModelProperty(value = "修改人 Id")
+	private Long updateUser;
+	/**
+	 * 修改人
+	 */
+	@ApiModelProperty(value = "修改人")
+	private String updateUserName;
+	/**
+	 * 修改时间
+	 */
+	@ApiModelProperty(value = "修改时间")
+	private Date updateTime;
+	/**
+	 * 主表id
+	 */
+	@ApiModelProperty(value = "主表id")
+	private Long pid;
+	/**
+	 * 编号
+	 */
+	@ApiModelProperty(value = "编号")
+	private String code;
+	/**
+	 * 名称
+	 */
+	@ApiModelProperty(value = "名称")
+	private String cname;
+	/**
+	 * 联系方式
+	 */
+	@ApiModelProperty(value = "联系方式")
+	private String attn;
+	/**
+	 * 电话
+	 */
+	@ApiModelProperty(value = "电话")
+	private String tel;
+	/**
+	 * 岗位
+	 */
+	@ApiModelProperty(value = "岗位")
+	private String position;
+	/**
+	 * 公司地址
+	 */
+	@ApiModelProperty(value = "公司地址")
+	private String addr;
+	/**
+	 * 用户ID
+	 */
+	@ApiModelProperty(value = "用户ID")
+	private Long userId;
+	/**
+	 * 性别
+	 */
+	@ApiModelProperty(value = "性别")
+	private String sex;
+	/**
+	 * 邮箱地址
+	 */
+	@ApiModelProperty(value = "邮箱地址")
+	private String email;
+	/**
+	 * 版本
+	 */
+	@ApiModelProperty(value = "版本")
+	private String version;
+	/**
+	 * 状态(0 正常 1停用)
+	 */
+	@ApiModelProperty(value = "状态(0 正常 1停用)")
+	private Integer status;
+	/**
+	 * 是否已删除(0 否 1是)
+	 */
+	@ApiModelProperty(value = "是否已删除(0 否 1是)")
+	private Integer isDeleted;
+	/**
+	 * 备注
+	 */
+	@ApiModelProperty(value = "备注")
+	private String remarks;
+	/**
 	 * 租户
 	 */
 	@ApiModelProperty(value = "租户")

+ 130 - 123
blade-service-api/blade-los-api/src/main/java/org/springblade/los/basic/corps/entity/BCorpsBank.java

@@ -17,12 +17,12 @@
 package org.springblade.los.basic.corps.entity;
 
 import com.baomidou.mybatisplus.annotation.TableName;
-import java.util.Date;
-import java.io.Serializable;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
 
 /**
  * 客户银行实体类
@@ -38,125 +38,132 @@ public class BCorpsBank implements Serializable {
 	private static final long serialVersionUID = 1L;
 
 	/**
-	* 主键
-	*/
-		@ApiModelProperty(value = "主键")
-		private Long id;
-	/**
-	* 分公司 Id
-	*/
-		@ApiModelProperty(value = "分公司 Id")
-		private String branchId;
-	/**
-	* 创建人 Id
-	*/
-		@ApiModelProperty(value = "创建人 Id")
-		private Long createUser;
-	/**
-	* 创建人
-	*/
-		@ApiModelProperty(value = "创建人")
-		private String createUserName;
-	/**
-	* 创建部门 Id
-	*/
-		@ApiModelProperty(value = "创建部门 Id")
-		private String createDept;
-	/**
-	* 创建部门
-	*/
-		@ApiModelProperty(value = "创建部门")
-		private String createDeptName;
-	/**
-	* 创建时间
-	*/
-		@ApiModelProperty(value = "创建时间")
-		private Date createTime;
-	/**
-	* 修改人 Id
-	*/
-		@ApiModelProperty(value = "修改人 Id")
-		private Long updateUser;
-	/**
-	* 修改人
-	*/
-		@ApiModelProperty(value = "修改人")
-		private String updateUserName;
-	/**
-	* 修改时间
-	*/
-		@ApiModelProperty(value = "修改时间")
-		private Date updateTime;
-	/**
-	* 主表id
-	*/
-		@ApiModelProperty(value = "主表id")
-		private Long pid;
-	/**
-	* 统一社会信用代码,即是税号
-	*/
-		@ApiModelProperty(value = "统一社会信用代码,即是税号")
-		private String uscc;
-	/**
-	* 账户名称
-	*/
-		@ApiModelProperty(value = "账户名称")
-		private String accountName;
-	/**
-	* 账户银行
-	*/
-		@ApiModelProperty(value = "账户银行")
-		private String accountBank;
-	/**
-	* 银行账号
-	*/
-		@ApiModelProperty(value = "银行账号")
-		private String accountNo;
-	/**
-	* 币别
-	*/
-		@ApiModelProperty(value = "币别")
-		private String curNo;
-	/**
-	* 科目编码
-	*/
-		@ApiModelProperty(value = "科目编码")
-		private String subjectNumber;
-	/**
-	* 地址
-	*/
-		@ApiModelProperty(value = "地址")
-		private String address;
-	/**
-	* Swift Code
-	*/
-		@ApiModelProperty(value = "Swift Code")
-		private String swiftCode;
-	/**
-	* CNAPS
-	*/
-		@ApiModelProperty(value = "CNAPS")
-		private String cnapsCode;
-	/**
-	* 版本
-	*/
-		@ApiModelProperty(value = "版本")
-		private String version;
-	/**
-	* 状态(0 正常 1停用)
-	*/
-		@ApiModelProperty(value = "状态(0 正常 1停用)")
-		private Integer status;
-	/**
-	* 是否已删除(0 否 1是)
-	*/
-		@ApiModelProperty(value = "是否已删除(0 否 1是)")
-		private Integer isDeleted;
-	/**
-	* 备注
-	*/
-		@ApiModelProperty(value = "备注")
-		private String remarks;/**
+	 * 主键
+	 */
+	@ApiModelProperty(value = "主键")
+	private Long id;
+	/**
+	 * 分公司 Id
+	 */
+	@ApiModelProperty(value = "分公司 Id")
+	private String branchId;
+	/**
+	 * 创建人 Id
+	 */
+	@ApiModelProperty(value = "创建人 Id")
+	private Long createUser;
+	/**
+	 * 创建人
+	 */
+	@ApiModelProperty(value = "创建人")
+	private String createUserName;
+	/**
+	 * 创建部门 Id
+	 */
+	@ApiModelProperty(value = "创建部门 Id")
+	private String createDept;
+	/**
+	 * 创建部门
+	 */
+	@ApiModelProperty(value = "创建部门")
+	private String createDeptName;
+	/**
+	 * 创建时间
+	 */
+	@ApiModelProperty(value = "创建时间")
+	private Date createTime;
+	/**
+	 * 修改人 Id
+	 */
+	@ApiModelProperty(value = "修改人 Id")
+	private Long updateUser;
+	/**
+	 * 修改人
+	 */
+	@ApiModelProperty(value = "修改人")
+	private String updateUserName;
+	/**
+	 * 修改时间
+	 */
+	@ApiModelProperty(value = "修改时间")
+	private Date updateTime;
+	/**
+	 * 主表id
+	 */
+	@ApiModelProperty(value = "主表id")
+	private Long pid;
+	/**
+	 * 统一社会信用代码,即是税号
+	 */
+	@ApiModelProperty(value = "统一社会信用代码,即是税号")
+	private String uscc;
+	/**
+	 * 账户名称
+	 */
+	@ApiModelProperty(value = "账户名称")
+	private String accountName;
+	/**
+	 * 账户银行
+	 */
+	@ApiModelProperty(value = "账户银行")
+	private String accountBank;
+	/**
+	 * 银行账号
+	 */
+	@ApiModelProperty(value = "银行账号")
+	private String accountNo;
+	/**
+	 * 币别
+	 */
+	@ApiModelProperty(value = "币别")
+	private String curNo;
+
+	/**
+	 * 币别
+	 */
+	@ApiModelProperty(value = "币别")
+	private String curId;
+	/**
+	 * 科目编码
+	 */
+	@ApiModelProperty(value = "科目编码")
+	private String subjectNumber;
+	/**
+	 * 地址
+	 */
+	@ApiModelProperty(value = "地址")
+	private String address;
+	/**
+	 * Swift Code
+	 */
+	@ApiModelProperty(value = "Swift Code")
+	private String swiftCode;
+	/**
+	 * CNAPS
+	 */
+	@ApiModelProperty(value = "CNAPS")
+	private String cnapsCode;
+	/**
+	 * 版本
+	 */
+	@ApiModelProperty(value = "版本")
+	private String version;
+	/**
+	 * 状态(0 正常 1停用)
+	 */
+	@ApiModelProperty(value = "状态(0 正常 1停用)")
+	private Integer status;
+	/**
+	 * 是否已删除(0 否 1是)
+	 */
+	@ApiModelProperty(value = "是否已删除(0 否 1是)")
+	private Integer isDeleted;
+	/**
+	 * 备注
+	 */
+	@ApiModelProperty(value = "备注")
+	private String remarks;
+	/**
 	 * 租户
 	 */
 	@ApiModelProperty(value = "租户")

+ 3 - 3
blade-service-api/blade-los-api/src/main/java/org/springblade/los/basic/fees/entity/BFees.java

@@ -121,7 +121,7 @@ public class BFees implements Serializable {
 	 * 财务核算要素名称
 	 */
 	@ApiModelProperty(value = "财务核算要素名称")
-	private Long accElementName;
+	private String accElementName;
 	/**
 	 * 科目 Id
 	 */
@@ -131,12 +131,12 @@ public class BFees implements Serializable {
 	 * 科目编号
 	 */
 	@ApiModelProperty(value = "科目编号")
-	private Long accNo;
+	private String accNo;
 	/**
 	 * 科目全称
 	 */
 	@ApiModelProperty(value = "科目全称")
-	private Long accFullName;
+	private String accFullName;
 	/**
 	 * 版本
 	 */

+ 2 - 2
blade-service-api/blade-los-api/src/main/java/org/springblade/los/basic/fees/entity/FeesTemplateItems.java

@@ -114,9 +114,9 @@ public class FeesTemplateItems implements Serializable {
 	@ApiModelProperty(value = "费用 Id")
 	private Long feeId;
 	/**
-	 * 费用中文名称
+	 * 费用编码
 	 */
-	@ApiModelProperty(value = "费用中文名称")
+	@ApiModelProperty(value = "费用编码")
 	private String feeCode;
 	/**
 	 * 费用中文名称

+ 2 - 1
blade-service/blade-box-tube/src/main/java/org/springblade/box/tube/controller/TradingBoxItemController.java

@@ -441,7 +441,8 @@ public class TradingBoxItemController extends BladeController {
 					tradingBoxItemService.updateById(tradingBoxItem);
 					if (ObjectUtils.isNotNull(tradingBoxItem.getCode())) {
 						//更新箱档案信息
-						Archives archivesR = archivesService.getOne(new LambdaQueryWrapper<Archives>().eq(Archives::getIsDeleted, 0).eq(Archives::getTenantId, AuthUtil.getTenantId()).eq(Archives::getCode, tradingBoxItem.getCode()));
+						Archives archivesR = archivesService.getOne(new LambdaQueryWrapper<Archives>().eq(Archives::getIsDeleted, 0)
+							.eq(Archives::getTenantId, AuthUtil.getTenantId()).eq(Archives::getCode, tradingBoxItem.getCode()));
 						Archives archives = new Archives();
 						if (ObjectUtils.isNotNull(archivesR)) {
 							BeanUtil.copy(archivesR, archives);

+ 1 - 0
blade-service/blade-los/src/main/java/org/springblade/los/basic/corps/mapper/CorpsBankMapper.xml

@@ -20,6 +20,7 @@
         <result column="account_bank" property="accountBank"/>
         <result column="account_no" property="accountNo"/>
         <result column="cur_no" property="curNo"/>
+        <result column="cur_id" property="curId"/>
         <result column="subject_number" property="subjectNumber"/>
         <result column="address" property="address"/>
         <result column="swift_code" property="swiftCode"/>

+ 11 - 1
blade-service/blade-los/src/main/java/org/springblade/los/basic/corps/service/impl/BCorpsServiceImpl.java

@@ -38,6 +38,7 @@ import org.springframework.stereotype.Service;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
+import java.util.stream.Collectors;
 
 /**
  * 物流-基础资料-往来单位 服务实现类
@@ -63,6 +64,8 @@ public class BCorpsServiceImpl extends ServiceImpl<CorpsMapper, BCorps> implemen
 
 	private final IBCorpsTypesService bCorpsTypesService;
 
+	private final IBCorpsTypeDefineService bCorpsTypeDefineService;
+
 	private final IUserClient userClient;
 
 	private final ICorpsInvoiceHeaderService corpsInvoiceHeaderService;
@@ -113,11 +116,18 @@ public class BCorpsServiceImpl extends ServiceImpl<CorpsMapper, BCorps> implemen
 		this.saveOrUpdate(bCorps);
 		//客户类别对应
 		if (ObjectUtils.isNotNull(bCorps.getCorpType())) {
+			List<BCorpsTypeDefine> bCorpsTypeDefineList = bCorpsTypeDefineService.list(new LambdaQueryWrapper<BCorpsTypeDefine>()
+				.eq(BCorpsTypeDefine::getIsDeleted, 0)
+				.eq(BCorpsTypeDefine::getTenantId, AuthUtil.getTenantId())
+				.apply(ObjectUtils.isNotNull(bCorps.getCorpType()), "find_in_set(id,'" + bCorps.getCorpType() + "')"));
+			if (bCorpsTypeDefineList.size() > 0) {
+				bCorps.setCorpTypeName(bCorpsTypeDefineList.stream().map(BCorpsTypeDefine::getCnName).collect(Collectors.joining()));
+			}
 			String[] ids = bCorps.getCorpType().split(",");
 			List<BCorpsTypes> bCorpsTypesList = new ArrayList<>();
 			for (String id : ids) {
 				BCorpsTypes bCorpsTypes = new BCorpsTypes();
-				bCorpsTypes.setCorpId(bCorps.getCorpId());
+				bCorpsTypes.setCorpId(bCorps.getId());
 				bCorpsTypes.setCorpTypeId(Long.parseLong(id));
 				bCorpsTypes.setCreateTime(new Date());
 				bCorpsTypes.setCreateUser(AuthUtil.getUserId());

+ 19 - 0
blade-service/blade-los/src/main/java/org/springblade/los/basic/countrys/controller/BCountrysController.java

@@ -190,5 +190,24 @@ public class BCountrysController extends BladeController {
 		return bCountrysService.importBCountrys(excelList);
 	}
 
+	/**
+	 * 基础资料-国家或地区
+	 */
+	@GetMapping("/listAll")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入bCountrys")
+	public R<List<BCountrys>> listAll(BCountrys bCountrys) {
+		LambdaQueryWrapper<BCountrys> lambdaQueryWrapper = new LambdaQueryWrapper<>();
+		lambdaQueryWrapper.eq(BCountrys::getTenantId, AuthUtil.getTenantId())
+			.eq(BCountrys::getIsDeleted, 0)
+			.like(ObjectUtils.isNotNull(bCountrys.getCode()), BCountrys::getCode, bCountrys.getCode())
+			.like(ObjectUtils.isNotNull(bCountrys.getUnCode()), BCountrys::getUnCode, bCountrys.getUnCode())
+			.like(ObjectUtils.isNotNull(bCountrys.getCnName()), BCountrys::getCnName, bCountrys.getCnName())
+			.like(ObjectUtils.isNotNull(bCountrys.getEnName()), BCountrys::getEnName, bCountrys.getEnName())
+			.orderByDesc(BCountrys::getCreateTime);
+		List<BCountrys> pages = bCountrysService.list(lambdaQueryWrapper);
+		return R.data(pages);
+	}
+
 
 }