id类型修改;
This commit is contained in:
@@ -24,8 +24,8 @@ public class BmsInvoiceInfo extends BaseVOEntity {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ID_WORKER_STR)
|
@TableId(type = IdType.AUTO)
|
||||||
private String id;
|
private Long id;
|
||||||
/**用户ID*/
|
/**用户ID*/
|
||||||
@ApiModelProperty(value = "用户ID")
|
@ApiModelProperty(value = "用户ID")
|
||||||
@Excel(name = "用户ID", width = 15)
|
@Excel(name = "用户ID", width = 15)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class BmsInvoiceList extends BaseVOEntity {
|
|||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.AUTO)
|
@TableId(type = IdType.AUTO)
|
||||||
private String id;
|
private Long id;
|
||||||
/**发票抬头*/
|
/**发票抬头*/
|
||||||
@ApiModelProperty(value = "发票抬头")
|
@ApiModelProperty(value = "发票抬头")
|
||||||
@Excel(name = "发票抬头", width = 15)
|
@Excel(name = "发票抬头", width = 15)
|
||||||
|
|||||||
+2
-2
@@ -18,8 +18,8 @@ import java.util.Date;
|
|||||||
@Data
|
@Data
|
||||||
public class BmsSettlementPartyInvoice extends BaseVOEntity {
|
public class BmsSettlementPartyInvoice extends BaseVOEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@TableId(type = IdType.ID_WORKER_STR)
|
@TableId(type = IdType.AUTO)
|
||||||
private String id;
|
private Long id;
|
||||||
|
|
||||||
@ApiModelProperty(value = "结算方姓名")
|
@ApiModelProperty(value = "结算方姓名")
|
||||||
@Excel(name = "结算方姓名", width = 15)
|
@Excel(name = "结算方姓名", width = 15)
|
||||||
|
|||||||
+4
-4
@@ -198,7 +198,7 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
|
|||||||
List<BmsMakeOutInvoice> bmsMakeOutInvoices = bmsInvoiceListDTO.getBmsMakeOutInvoices();
|
List<BmsMakeOutInvoice> bmsMakeOutInvoices = bmsInvoiceListDTO.getBmsMakeOutInvoices();
|
||||||
if(ObjectUtil.isNotNull(bmsMakeOutInvoices)&&bmsMakeOutInvoices.size()>0){
|
if(ObjectUtil.isNotNull(bmsMakeOutInvoices)&&bmsMakeOutInvoices.size()>0){
|
||||||
for (BmsMakeOutInvoice bmsMakeOutInvoice : bmsMakeOutInvoices) {
|
for (BmsMakeOutInvoice bmsMakeOutInvoice : bmsMakeOutInvoices) {
|
||||||
if(StringUtils.isNotBlank(bmsMakeOutInvoice.getId())){
|
if(bmsMakeOutInvoice.getId() != null){
|
||||||
//bmsMakeOutInvoice.setUpdateBy(sysUser.getId());
|
//bmsMakeOutInvoice.setUpdateBy(sysUser.getId());
|
||||||
bmsMakeOutInvoice.setUpdateTime(new Date());
|
bmsMakeOutInvoice.setUpdateTime(new Date());
|
||||||
bmsMakeOutInvoice.setIsDelete(0);
|
bmsMakeOutInvoice.setIsDelete(0);
|
||||||
@@ -208,7 +208,7 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
|
|||||||
String invoiceCode=bmsMakeOutInvoice.getInvoiceCode();
|
String invoiceCode=bmsMakeOutInvoice.getInvoiceCode();
|
||||||
BigDecimal invoiceValue=bmsMakeOutInvoice.getInvoiceValue();
|
BigDecimal invoiceValue=bmsMakeOutInvoice.getInvoiceValue();
|
||||||
BeanUtils.copyProperties(bmsInvoiceList, bmsMakeOutInvoice);
|
BeanUtils.copyProperties(bmsInvoiceList, bmsMakeOutInvoice);
|
||||||
bmsMakeOutInvoice.setId("");
|
//bmsMakeOutInvoice.setId("");
|
||||||
//bmsMakeOutInvoice.setCreateBy(sysUser.getId());
|
//bmsMakeOutInvoice.setCreateBy(sysUser.getId());
|
||||||
bmsMakeOutInvoice.setCreateTime(new Date());
|
bmsMakeOutInvoice.setCreateTime(new Date());
|
||||||
bmsMakeOutInvoice.setInvoiceId(bmsInvoiceList.getId());
|
bmsMakeOutInvoice.setInvoiceId(bmsInvoiceList.getId());
|
||||||
@@ -318,7 +318,7 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
|
|||||||
String invoiceCode=bmsMakeOutInvoice.getInvoiceCode();
|
String invoiceCode=bmsMakeOutInvoice.getInvoiceCode();
|
||||||
BigDecimal invoiceValue=bmsMakeOutInvoice.getInvoiceValue();
|
BigDecimal invoiceValue=bmsMakeOutInvoice.getInvoiceValue();
|
||||||
BeanUtils.copyProperties(bmsInvoiceList, bmsMakeOutInvoice);
|
BeanUtils.copyProperties(bmsInvoiceList, bmsMakeOutInvoice);
|
||||||
bmsMakeOutInvoice.setId("");
|
//bmsMakeOutInvoice.setId("");
|
||||||
//bmsMakeOutInvoice.setCreateBy(sysUser.getId());
|
//bmsMakeOutInvoice.setCreateBy(sysUser.getId());
|
||||||
bmsMakeOutInvoice.setCreateTime(date);
|
bmsMakeOutInvoice.setCreateTime(date);
|
||||||
bmsMakeOutInvoice.setInvoiceId(bmsInvoiceList.getId());
|
bmsMakeOutInvoice.setInvoiceId(bmsInvoiceList.getId());
|
||||||
@@ -705,7 +705,7 @@ public class BmsInvoiceListServiceImpl extends ServiceImpl<BmsInvoiceListMapper,
|
|||||||
if (null == sysUser) {
|
if (null == sysUser) {
|
||||||
throw new ServiceException("未查询到登录人信息");
|
throw new ServiceException("未查询到登录人信息");
|
||||||
}
|
}
|
||||||
if(StringUtils.isBlank(bmsInvoiceListInvoiceStateDTO.getId())){
|
if(bmsInvoiceListInvoiceStateDTO.getId() == null){
|
||||||
throw new ServiceException("未获取到发票信息");
|
throw new ServiceException("未获取到发票信息");
|
||||||
}
|
}
|
||||||
String [] idList = bmsInvoiceListInvoiceStateDTO.getId().split(",");
|
String [] idList = bmsInvoiceListInvoiceStateDTO.getId().split(",");
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ public class BmsInvoiceListDTO implements Serializable {
|
|||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ID_WORKER_STR)
|
@TableId(type = IdType.ID_WORKER_STR)
|
||||||
private String id;
|
private Long id;
|
||||||
/**发票抬头*/
|
/**发票抬头*/
|
||||||
@ApiModelProperty(value = "发票抬头")
|
@ApiModelProperty(value = "发票抬头")
|
||||||
@Excel(name = "发票抬头", width = 15)
|
@Excel(name = "发票抬头", width = 15)
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ public class BmsInvoiceListQueryDTO implements Serializable {
|
|||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ID_WORKER_STR)
|
@TableId(type = IdType.ID_WORKER_STR)
|
||||||
private String id;
|
private Long id;
|
||||||
|
|
||||||
/**发票状态(0-未开票,1-已取消申请,2-已开票,3-已驳回,4-已寄出,5-已作废)*/
|
/**发票状态(0-未开票,1-已取消申请,2-已开票,3-已驳回,4-已寄出,5-已作废)*/
|
||||||
@ApiModelProperty(value = "发票状态(0-未开票,1-已取消申请,2-已开票,3-已驳回,4-已寄出,5-已作废)")
|
@ApiModelProperty(value = "发票状态(0-未开票,1-已取消申请,2-已开票,3-已驳回,4-已寄出,5-已作废)")
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ public class BmsInvoiceListDetailsVO implements Serializable {
|
|||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ID_WORKER_STR)
|
@TableId(type = IdType.ID_WORKER_STR)
|
||||||
private String id;
|
private Long id;
|
||||||
/**发票抬头*/
|
/**发票抬头*/
|
||||||
@ApiModelProperty(value = "发票抬头")
|
@ApiModelProperty(value = "发票抬头")
|
||||||
@Excel(name = "发票抬头", width = 15)
|
@Excel(name = "发票抬头", width = 15)
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ public class BmsInvoiceListVO implements Serializable {
|
|||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ID_WORKER_STR)
|
@TableId(type = IdType.ID_WORKER_STR)
|
||||||
private String id;
|
private Long id;
|
||||||
/**发票申请时间*/
|
/**发票申请时间*/
|
||||||
@ApiModelProperty(value = "发票申请时间")
|
@ApiModelProperty(value = "发票申请时间")
|
||||||
@Excel(name = "发票申请时间", width = 25, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "发票申请时间", width = 25, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
|||||||
+3
-3
@@ -23,12 +23,12 @@ public class BmsMakeOutInvoice extends BaseVOEntity {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ID_WORKER_STR)
|
@TableId(type = IdType.AUTO)
|
||||||
private String id;
|
private Long id;
|
||||||
/**发票ID*/
|
/**发票ID*/
|
||||||
@ApiModelProperty(value = "发票ID")
|
@ApiModelProperty(value = "发票ID")
|
||||||
@Excel(name = "发票ID", width = 15)
|
@Excel(name = "发票ID", width = 15)
|
||||||
private String invoiceId;
|
private Long invoiceId;
|
||||||
/**发票抬头*/
|
/**发票抬头*/
|
||||||
@ApiModelProperty(value = "发票抬头")
|
@ApiModelProperty(value = "发票抬头")
|
||||||
@Excel(name = "发票抬头", width = 15)
|
@Excel(name = "发票抬头", width = 15)
|
||||||
|
|||||||
Reference in New Issue
Block a user