This commit is contained in:
linfso 2024-09-22 09:48:50 +08:00
parent 08b28e20f5
commit e64374bf74
7 changed files with 32 additions and 5 deletions

View File

@ -60,7 +60,6 @@
<orderEntry type="library" name="Maven: org.springframework:spring-websocket:5.3.16" level="project" /> <orderEntry type="library" name="Maven: org.springframework:spring-websocket:5.3.16" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.5.10" level="project" /> <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.5.10" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.16" level="project" /> <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.16" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.7" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.5.0" level="project" /> <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.5.0" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.5.0" level="project" /> <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.5.0" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.5.0" level="project" /> <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.5.0" level="project" />
@ -271,5 +270,6 @@
<orderEntry type="library" name="Maven: org.apache.xmlgraphics:batik-codec:1.14" level="project" /> <orderEntry type="library" name="Maven: org.apache.xmlgraphics:batik-codec:1.14" level="project" />
<orderEntry type="library" name="Maven: com.aspose:aspose-words:19.1.0" level="project" /> <orderEntry type="library" name="Maven: com.aspose:aspose-words:19.1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-text:1.10.0" level="project" /> <orderEntry type="library" name="Maven: org.apache.commons:commons-text:1.10.0" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.7" level="project" />
</component> </component>
</module> </module>

View File

@ -230,5 +230,6 @@
<orderEntry type="library" name="Maven: org.apache.xmlgraphics:batik-codec:1.14" level="project" /> <orderEntry type="library" name="Maven: org.apache.xmlgraphics:batik-codec:1.14" level="project" />
<orderEntry type="library" name="Maven: com.aspose:aspose-words:19.1.0" level="project" /> <orderEntry type="library" name="Maven: com.aspose:aspose-words:19.1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-text:1.10.0" level="project" /> <orderEntry type="library" name="Maven: org.apache.commons:commons-text:1.10.0" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.7" level="project" />
</component> </component>
</module> </module>

View File

@ -151,6 +151,10 @@
<artifactId>commons-text</artifactId> <artifactId>commons-text</artifactId>
<version>1.10.0</version> <version>1.10.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
</dependency>
</dependencies> </dependencies>

View File

@ -14,6 +14,8 @@ import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
//import com.xdadan.erp.common.annotation.audit.DataAuditFilter; //import com.xdadan.erp.common.annotation.audit.DataAuditFilter;
import com.xdadan.erp.common.annotation.audit.DataAuditField;
import com.xdadan.erp.common.annotation.audit.DataAuditTable;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.xdadan.erp.common.annotation.Excel; import com.xdadan.erp.common.annotation.Excel;
@ -37,6 +39,7 @@ import lombok.Data;
//@DataAuditFilter //@DataAuditFilter
@Data @Data
@TableName("emis_waybill") @TableName("emis_waybill")
@DataAuditTable(tableName = "emis_waybill",tableComment = "运单表")
public class EmisWaybill extends BaseEntity public class EmisWaybill extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -239,9 +242,11 @@ public class EmisWaybill extends BaseEntity
private Integer parcelQty; private Integer parcelQty;
/* 实际重量 */ /* 实际重量 */
@TableField @TableField
@DataAuditField(fieldComment = "实际重量")
private BigDecimal billWeight; private BigDecimal billWeight;
/* 体积重量 */ /* 体积重量 */
@TableField @TableField
@DataAuditField(fieldComment = "体积重量")
private BigDecimal volumeWeight; private BigDecimal volumeWeight;
/* 费用币种 */ /* 费用币种 */
private String currency; private String currency;

View File

@ -10,6 +10,7 @@
package com.xdadan.erp.emis.service; package com.xdadan.erp.emis.service;
import java.util.List; import java.util.List;
import com.xdadan.erp.emis.domain.EmisBrand; import com.xdadan.erp.emis.domain.EmisBrand;
/** /**
@ -18,7 +19,7 @@ import com.xdadan.erp.emis.domain.EmisBrand;
* @author linfso * @author linfso
* @date 2023-12-14 13:02:48 * @date 2023-12-14 13:02:48
*/ */
public interface IEmisBrandService public interface IEmisBrandService
{ {
/** /**
* 主键查询 * 主键查询

View File

@ -14,6 +14,8 @@ import java.io.OutputStream;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xdadan.erp.common.core.audit.IDataAuditParser;
import com.xdadan.erp.emis.domain.EmisWaybill; import com.xdadan.erp.emis.domain.EmisWaybill;
import com.xdadan.erp.emis.domain.exception.EmisBizError; import com.xdadan.erp.emis.domain.exception.EmisBizError;
import com.xdadan.erp.emis.domain.vo.AddressParseResult; import com.xdadan.erp.emis.domain.vo.AddressParseResult;
@ -27,7 +29,7 @@ import javax.servlet.http.HttpServletResponse;
* @author linfso * @author linfso
* @date 2024-02-29 08:15:14 * @date 2024-02-29 08:15:14
*/ */
public interface IEmisWaybillService public interface IEmisWaybillService extends IDataAuditParser
{ {

View File

@ -113,7 +113,18 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
@Autowired @Autowired
private ISysFileInfoService sysFileInfoService; private ISysFileInfoService sysFileInfoService;
/**
* 获取稽核数据
* @param id
* @param dataAuditLog
* @param pkIdName
* @return
*/
@Override
public Object getAuditObjectById(Object id, DataAuditLog dataAuditLog, String pkIdName) {
EmisWaybill emisWaybill = emisWaybillMapper.selectEmisWaybillById((Long)id);
return emisWaybill;
}
@Override @Override
public EmisWaybill selectById(Long id) public EmisWaybill selectById(Long id)
@ -3428,6 +3439,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
public static void main(String[] args) { public static void main(String[] args) {
// Snowflake snowflake = IdUtil.getSnowflake(0, 0); // Snowflake snowflake = IdUtil.getSnowflake(0, 0);
@ -3444,7 +3457,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
double fee = Double.valueOf(AviatorEvaluator.execute(calcExprStr).toString()); double fee = Double.valueOf(AviatorEvaluator.execute(calcExprStr).toString());
System.out.println(fee); System.out.println(fee);
} }
} }