普通项目管理功能开发
This commit is contained in:
+50
@@ -0,0 +1,50 @@
|
||||
package com.jero.project.common;
|
||||
|
||||
public class PayProjectCommon {
|
||||
|
||||
/**
|
||||
* 打包(1:是,0:否)
|
||||
*/
|
||||
public final static Integer PACKAGING1 = 1;
|
||||
/**
|
||||
* 打包(1:是,0:否)
|
||||
*/
|
||||
public final static Integer PACKAGING0 = 0;
|
||||
/**
|
||||
* 到账(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))
|
||||
*/
|
||||
public final static Integer IN_ACCOUNT1 = 1;
|
||||
/**
|
||||
* 到账(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))
|
||||
*/
|
||||
public final static Integer IN_ACCOUNT2 = 2;
|
||||
/**
|
||||
* 到账(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))
|
||||
*/
|
||||
public final static Integer IN_ACCOUNT3 = 3;
|
||||
/**
|
||||
* 开票(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))
|
||||
*/
|
||||
public final static Integer MAKE_INVOICE1 = 1;
|
||||
/**
|
||||
* 开票(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))
|
||||
*/
|
||||
public final static Integer MAKE_INVOICE2 = 2;
|
||||
/**
|
||||
* 开票(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))
|
||||
*/
|
||||
public final static Integer MAKE_INVOICE3 = 3;
|
||||
/**
|
||||
* 邮寄((1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志)))
|
||||
*/
|
||||
public final static Integer MAIL1 = 1;
|
||||
/**
|
||||
* 邮寄((1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志)))
|
||||
*/
|
||||
public final static Integer MAIL2 = 2;
|
||||
/**
|
||||
* 邮寄((1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志)))
|
||||
*/
|
||||
public final static Integer MAIL3 = 3;
|
||||
|
||||
}
|
||||
+7
-1
@@ -10,6 +10,7 @@ import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.util.ValidUtil;
|
||||
import com.jero.company.entity.PayCompanyManagement;
|
||||
import com.jero.project.common.PayProjectCommon;
|
||||
import com.jero.project.service.IPayCommonProjectService;
|
||||
import com.jero.project.entity.PayCommonProject;
|
||||
|
||||
@@ -19,6 +20,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -73,7 +75,7 @@ public class PayCommonProjectController extends JeroController<PayCommonProject,
|
||||
*/
|
||||
@ApiOperation(value="普通项目管理-添加", notes="普通项目管理-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<?> add(@RequestBody PayCommonProject payCommonProject) {
|
||||
public Result<?> add(@RequestBody PayCommonProject payCommonProject, MultipartFile file) {
|
||||
StringBuilder msg = ValidUtil.validateAll(payCommonProject);
|
||||
if(!StringUtils.isBlank(msg)){
|
||||
return Result.error(msg.toString());
|
||||
@@ -91,6 +93,10 @@ public class PayCommonProjectController extends JeroController<PayCommonProject,
|
||||
log.info("普通项目管理-添加异常",e);
|
||||
return Result.error("来款项目已存在!");
|
||||
}
|
||||
payCommonProject.setPackaging(PayProjectCommon.PACKAGING0);
|
||||
payCommonProject.setInAccount(PayProjectCommon.IN_ACCOUNT2);
|
||||
payCommonProject.setMakeInvoice(PayProjectCommon.MAKE_INVOICE2);
|
||||
payCommonProject.setMail(PayProjectCommon.MAIL2);
|
||||
payCommonProjectService.save(payCommonProject);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
+61
-30
@@ -1,9 +1,12 @@
|
||||
package com.jero.project.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.jero.common.aspect.annotation.Dict;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
@@ -13,7 +16,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
/**
|
||||
* @Description: pay_common_project
|
||||
@@ -32,118 +35,146 @@ public class PayCommonProject implements Serializable {
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private java.lang.String id;
|
||||
private String id;
|
||||
/**来款项目*/
|
||||
@Excel(name = "来款项目", width = 15)
|
||||
@ApiModelProperty(value = "来款项目")
|
||||
@NotEmpty(message = "来款项目不能为空!")
|
||||
@Size(max = 100,message = "来款项目长度应小于100个字符")
|
||||
private java.lang.String chargeProject;
|
||||
private String chargeProject;
|
||||
/**运行年份*/
|
||||
@Excel(name = "运行年份", width = 15)
|
||||
@ApiModelProperty(value = "运行年份")
|
||||
private java.lang.Integer year;
|
||||
@NotEmpty(message = "运行年份不能为空!")
|
||||
@Pattern(regexp = "^\\d{4}$",message = "运行年份格式错误")
|
||||
private String year;
|
||||
/**负责人id*/
|
||||
@Excel(name = "负责人id", width = 15)
|
||||
@ApiModelProperty(value = "负责人id")
|
||||
private java.lang.String principalId;
|
||||
@NotEmpty(message = "负责人id不能为空!")
|
||||
@Size(max = 32,message = "来款项目长度应小于32个字符")
|
||||
private String principalId;
|
||||
/**负责人名称*/
|
||||
@Excel(name = "负责人名称", width = 15)
|
||||
@ApiModelProperty(value = "负责人名称")
|
||||
private java.lang.String principalName;
|
||||
@NotEmpty(message = "负责人名称不能为空!")
|
||||
@Size(max = 50,message = "负责人名称长度应小于50个字符")
|
||||
private String principalName;
|
||||
/**来款企业id*/
|
||||
@Excel(name = "来款企业id", width = 15)
|
||||
@ApiModelProperty(value = "来款企业id")
|
||||
private java.lang.String chargeCompanyId;
|
||||
@NotEmpty(message = "来款企业id不能为空!")
|
||||
@Size(max = 32,message = "来款企业id长度应小于32个字符")
|
||||
private String chargeCompanyId;
|
||||
/**来款用途(字典表)*/
|
||||
@Excel(name = "来款用途(字典表)", width = 15)
|
||||
@ApiModelProperty(value = "来款用途(字典表)")
|
||||
private java.lang.String chargeUse;
|
||||
@Dict(dicCode = "payment_charge_use")
|
||||
@NotNull(message = "来款用途不能为空!")
|
||||
private String chargeUse;
|
||||
/**来款企业*/
|
||||
@Excel(name = "来款企业", width = 15)
|
||||
@ApiModelProperty(value = "来款企业")
|
||||
private java.lang.String chargeCompanyName;
|
||||
@NotEmpty(message = "来款企业不能为空!")
|
||||
private String chargeCompanyName;
|
||||
/**联系人id*/
|
||||
@Excel(name = "联系人id", width = 15)
|
||||
@ApiModelProperty(value = "联系人id")
|
||||
private java.lang.String contactsId;
|
||||
@NotEmpty(message = "联系人id不能为空!")
|
||||
@Size(max = 32,message = "来款企业id长度应小于32个字符")
|
||||
private String contactsId;
|
||||
/**联系人名称*/
|
||||
@Excel(name = "联系人名称", width = 15)
|
||||
@ApiModelProperty(value = "联系人名称")
|
||||
private java.lang.String contactsName;
|
||||
@NotEmpty(message = "联系人名称不能为空!")
|
||||
@Size(max = 50,message = "联系人名称长度应小于50个字符")
|
||||
private String contactsName;
|
||||
/**应收金额(元)*/
|
||||
@Excel(name = "应收金额(元)", width = 15)
|
||||
@ApiModelProperty(value = "应收金额(元)")
|
||||
private java.lang.Integer receivableAmount;
|
||||
@NotNull(message = "应收金额(元)不能为空!")
|
||||
@Max(value = 999999999,message = "应收金额(元)格式错误")
|
||||
private Integer receivableAmount;
|
||||
/**实收金额(元)*/
|
||||
@Excel(name = "实收金额(元)", width = 15)
|
||||
@ApiModelProperty(value = "实收金额(元)")
|
||||
private java.lang.Integer paidAmount;
|
||||
@Max(value = 999999999,message = "实收金额(元)格式错误")
|
||||
private Integer paidAmount;
|
||||
/**邮寄联系人id*/
|
||||
@Excel(name = "邮寄联系人id", width = 15)
|
||||
@ApiModelProperty(value = "邮寄联系人id")
|
||||
private java.lang.String mailContactsId;
|
||||
@NotEmpty(message = "邮寄联系人id不能为空!")
|
||||
@Size(max = 32,message = "邮寄联系人id长度应小于32个字符")
|
||||
private String mailContactsId;
|
||||
/**邮寄联系人名称*/
|
||||
@Excel(name = "邮寄联系人名称", width = 15)
|
||||
@ApiModelProperty(value = "邮寄联系人名称")
|
||||
private java.lang.String mailContactsName;
|
||||
@NotEmpty(message = "邮寄联系人名称不能为空!")
|
||||
@Size(max = 50,message = "邮寄联系人名称长度应小于50个字符")
|
||||
private String mailContactsName;
|
||||
/**打包(1:是,0:否)*/
|
||||
@Excel(name = "打包(1:是,0:否)", width = 15)
|
||||
@ApiModelProperty(value = "打包(1:是,0:否)")
|
||||
private java.lang.Integer packaging;
|
||||
private Integer packaging;
|
||||
/**需要发票(1:增值税普通发票,2:增值税专用发票,3:否)*/
|
||||
@Excel(name = "需要发票(1:增值税普通发票,2:增值税专用发票,3:否)", width = 15)
|
||||
@ApiModelProperty(value = "需要发票(1:增值税普通发票,2:增值税专用发票,3:否)")
|
||||
private java.lang.Integer invoice;
|
||||
@NotNull(message = "需要发票不能为空!")
|
||||
private Integer invoice;
|
||||
/**到账(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))*/
|
||||
@Excel(name = "到账(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))", width = 15)
|
||||
@ApiModelProperty(value = "到账(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))")
|
||||
private java.lang.String inAccount;
|
||||
private Integer inAccount;
|
||||
/**开票(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))*/
|
||||
@Excel(name = "开票(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))", width = 15)
|
||||
@ApiModelProperty(value = "开票(1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志))")
|
||||
private java.lang.String makeInvoice;
|
||||
private Integer makeInvoice;
|
||||
/**邮寄((1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志)))*/
|
||||
@Excel(name = "邮寄((1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志)))", width = 15)
|
||||
@ApiModelProperty(value = "邮寄((1:全额(对勾),2:0(X),3:>0 && <总金额(半满标志)))")
|
||||
private java.lang.String mail;
|
||||
private Integer mail;
|
||||
/**来款方式(1:无,2:合同,3:收费通知)*/
|
||||
@Excel(name = "来款方式(1:无,2:合同,3:收费通知)", width = 15)
|
||||
@ApiModelProperty(value = "来款方式(1:无,2:合同,3:收费通知)")
|
||||
private java.lang.Integer chargeWay;
|
||||
@NotNull(message = "需要发票不能为空!")
|
||||
private Integer chargeWay;
|
||||
/**合同编号*/
|
||||
@Excel(name = "合同编号", width = 15)
|
||||
@ApiModelProperty(value = "合同编号")
|
||||
private java.lang.String contractNum;
|
||||
@Size(max = 50,message = "合同编号长度应小于50个字符")
|
||||
private String contractNum;
|
||||
/**收费通知号*/
|
||||
@Excel(name = "收费通知号", width = 15)
|
||||
@ApiModelProperty(value = "收费通知号")
|
||||
private java.lang.String chargeNoticeNo;
|
||||
@Size(max = 50,message = "收费通知号长度应小于50个字符")
|
||||
private String chargeNoticeNo;
|
||||
/**收费通知文件id*/
|
||||
@Excel(name = "收费通知文件id", width = 15)
|
||||
@ApiModelProperty(value = "收费通知文件id")
|
||||
private java.lang.String chargeNoticeId;
|
||||
private String chargeNoticeId;
|
||||
/**催款次数*/
|
||||
@Excel(name = "催款次数", width = 15)
|
||||
@ApiModelProperty(value = "催款次数")
|
||||
private java.lang.Integer pressMoneyTimes;
|
||||
private Integer pressMoneyTimes;
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
private java.lang.String remarks;
|
||||
@Size(max = 200,message = "备注长度应小于200个字符")
|
||||
private String remarks;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private java.lang.String createBy;
|
||||
private String createBy;
|
||||
/**创建时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private java.util.Date createTime;
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private java.lang.String updateBy;
|
||||
private String updateBy;
|
||||
/**更新时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private java.util.Date updateTime;
|
||||
private Date updateTime;
|
||||
}
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package com.jero.project.service.impl;
|
||||
|
||||
import com.jero.project.service.IPayWorkingGroupSubitemService;
|
||||
import com.jero.project.entity.PayWorkingGroupSubitem;
|
||||
import com.jero.project.mapper.PayWorkingGroupSubitemMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: pay_working_group_subitem
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class PayWorkingGroupSubitemServiceImpl extends ServiceImpl<PayWorkingGroupSubitemMapper, PayWorkingGroupSubitem> implements IPayWorkingGroupSubitemService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user