This commit is contained in:
mashuai 2025-11-11 16:29:09 +08:00
parent d2267cd583
commit 2a76c27522
13 changed files with 62 additions and 27 deletions

View File

@ -94,7 +94,7 @@ public class LeaseApplyInfo extends BaseEntity{
/** 任务编号: 业务联系单号 */
@ApiModelProperty(value = "业务联系单号")
@Excel(name = "业务联系单号")
//@Excel(name = "业务联系单号")
private String businessCode;
/** 任务ID */

View File

@ -4,6 +4,7 @@ import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import java.io.Serializable;
import java.math.BigDecimal;
@ -69,39 +70,39 @@ public class ProjUsingRecordExport implements Serializable {
private BigDecimal backNum;
@ApiModelProperty(value = "需求数量")
@Excel(name = "需求数量")
@Excel(name = "需求数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private String needNum;
@ApiModelProperty(value = "已供数量")
@Excel(name = "已供数量")
@Excel(name = "已供数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private String supplyNum;
@ApiModelProperty(value = "差值")
@Excel(name = "差值")
@Excel(name = "差值", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private String diffNum;
@ApiModelProperty(value = "在用数量")
@Excel(name = "在用数量")
@Excel(name = "在用数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal usNum;
@ApiModelProperty(value = "在库数量")
@Excel(name = "库存数量")
@Excel(name = "库存数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal storeNum;
@ApiModelProperty(value = "在修数量")
@Excel(name = "在修数量")
@Excel(name = "在修数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal repairNum;
@ApiModelProperty(value = "待入库数量")
@Excel(name = "待入库数量")
@Excel(name = "待入库数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal inputNum;
@ApiModelProperty(value = "总保有量")
@Excel(name = "总保有量")
@Excel(name = "总保有量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal allNum;
@ApiModelProperty(value = "总在用数量")
@Excel(name = "总在用工程明细")
@Excel(name = "总在用工程明细", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal allUsNum;

View File

@ -312,4 +312,11 @@ public interface LeaseApplyInfoMapper {
* @return
*/
BigDecimal getInCountNum(LeaseApplyInfo leaseApplyInfo);
/**
* 获取领用该批次的签名数据
* @param applyInfo
* @return
*/
List<Long> selectPublishSignList(LeaseApplyInfo applyInfo);
}

View File

@ -844,6 +844,13 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
list.addAll(leaseApplyOutList);
}
for (LeaseApplyInfo applyInfo : list) {
if (StringUtils.isBlank(applyInfo.getSignUrl()) && applyInfo.getSignId() == null) {
// 如果签名url或者签名id都为空则根据id或者发布批次去出库表查询该单据是否存在其他签名
List<Long> leaseApplyInfoList = leaseApplyInfoMapper.selectPublishSignList(applyInfo);
if (!CollectionUtils.isEmpty(leaseApplyInfoList)) {
applyInfo.setSignId(leaseApplyInfoList.get(0));
}
}
// 判断协议号是否为空
if (StringUtils.isBlank(applyInfo.getAgreementCode())) {
if (applyInfo.getLeaseUnit() != null && applyInfo.getLeaseProjectId() != null) {

View File

@ -4,6 +4,7 @@ import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@ -31,9 +32,9 @@ public class MaTypeHistory {
private String maName;
@Excel(name = "规格型号")
private String maModel;
@Excel(name = "修改前租赁价格(元)")
@Excel(name = "修改前租赁价格(元)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal beforePrice;
@Excel(name = "修改后租赁价格(元)")
@Excel(name = "修改后租赁价格(元)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal afterPrice;
@Excel(name = "修改人")
private String createBy;

View File

@ -69,7 +69,7 @@ public class PartType extends BaseEntity
private BigDecimal buyPrice;
/** 实时库存 */
@Excel(name = "数量",sort=6, align = HorizontalAlignment.RIGHT)
@Excel(name = "数量",sort=6, align = HorizontalAlignment.RIGHT, cellType = Excel.ColumnType.NUMERIC)
@ApiModelProperty(value = "实时库存")
private Long storageNum;

View File

@ -27,6 +27,6 @@ public class PartInventory {
private String unit;
@ApiModelProperty(value = "在库数量")
@Excel(name = "库存",cellType = Excel.ColumnType.NUMERIC)
@Excel(name = "库存",cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal storeNum;
}

View File

@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@ -84,7 +85,7 @@ public class PartTypeCheckInfo extends BaseEntity {
/**
* 采购数量
*/
@Excel(name = "采购数量", sort = 3)
@Excel(name = "采购数量", sort = 3, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "采购数量--外层Table字段")
private BigDecimal purchaseMaNumber;
@ -109,21 +110,21 @@ public class PartTypeCheckInfo extends BaseEntity {
/**
* 采购单价(不含税)
*/
@Excel(name = "采购单价(不含税)", sort = 5)
@Excel(name = "采购单价(不含税)", sort = 5, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "采购单价(不含税)--外层Table字段")
private BigDecimal purchasePrice;
/**
* 采购单价(含税)
*/
@Excel(name = "采购单价(含税)", sort = 4)
@Excel(name = "采购单价(含税)", sort = 4, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "采购单价(含税)--外层Table字段")
private BigDecimal purchaseTaxPrice;
/**
* 税率
*/
@Excel(name = "税率", sort = 6)
@Excel(name = "税率", sort = 6, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "税率 0~100")
@Size(max = 100, message = "税率长度必须介于 0 和 100 之间")
private BigDecimal taxRate;

View File

@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@ -171,7 +172,7 @@ public class IwsCostPushBean implements Serializable {
private BigDecimal pendingNum;
@ApiModelProperty(value = "出库数量")
@Excel(name = "出库数量")
@Excel(name = "出库数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
private BigDecimal outNum;
// 工程id数组
private String[] projectIds;

View File

@ -1,15 +1,14 @@
package com.bonus.material.repair.domain;
import com.bonus.common.biz.domain.BmFileInfo;
import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import java.math.BigDecimal;
import java.util.List;
/**
* 维修配件详细对象 repair_part_details
@ -58,7 +57,7 @@ public class PartDetails extends BaseEntity {
@ApiModelProperty(value = "物资名称")
private String typeModelName;
@Excel(name = "规格型号",sort = 5)
@Excel(name = "规格型号",sort = 5, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "规格型号")
private String typeName;
@ -72,7 +71,7 @@ public class PartDetails extends BaseEntity {
/**
* 配件数量
*/
@Excel(name = "使用数量",sort = 10)
@Excel(name = "使用数量",sort = 10, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "配件数量")
private Integer partNum;
@ -82,7 +81,7 @@ public class PartDetails extends BaseEntity {
/**
* 配件费用
*/
@Excel(name = "金额(元)",sort = 12)
@Excel(name = "金额(元)",sort = 12, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "配件费用")
private BigDecimal partCost;

View File

@ -5,6 +5,7 @@ import com.bonus.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import java.math.BigDecimal;
@ -64,7 +65,7 @@ public class RepairProjectInfo extends BaseEntity {
private String unitName;
/** 在修数量 */
@Excel(name = "在修数量")
@Excel(name = "在修数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
@ApiModelProperty(value = "在修数量(定损+维修)")
private BigDecimal repairNum;

View File

@ -1153,4 +1153,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</if>
</select>
<select id="selectPublishSignList" resultType="java.lang.Long">
SELECT DISTINCT
lease_sign_id
FROM
lease_out_details
<where>
<if test="publishTask != null and publishTask != ''">
and publish_task = #{publishTask}
</if>
<if test="id != null">
and parent_id = #{id}
</if>
</where>
</select>
</mapper>

View File

@ -1293,11 +1293,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_user su2 ON mtr.user_id = su2.user_id
GROUP BY type_id
) AS mtr ON m.type_id = mtr.type_id
WHERE m.del_flag = '0' and
m.parent_id in
WHERE m.del_flag = '0'
<if test="list != null and list.size > 0">
and m.parent_id in
<foreach item="id" collection="list" open="(" separator="," close=")">
#{id}
</foreach>
</if>
<if test="type.keyword != null and type.keyword !=''">
AND (m.type_name like concat('%',#{type.keyword},'%')
or m1.type_name like concat('%',#{type.keyword},'%')