跳至主要內容
C005.23届0609怪

C005.23届0609怪

1.CompanySearchService.java 64-64

gigax 479a5bd2922b52f1b5d0cde70dd0eaacdb8063d7

List<Long> searchLadingId(@NotNull Long companyId);
//
List<Long> searchLadingId(long companyId);

trydofor原创大约 3 分钟技债
C004.23届0525怪

C004.23届0525怪

1.CompanyManageController.java 70-74

gigax 6697d36f75f4ced94545489e61f8c3781ccf5ecd

@RequestMapping("/admin/parcel/company-name.json")
public R<?> searchCompanyName() {
    Map<Long, String> map = companySearchService.searchName(TenantUtil.getTenantable());
    return R.okData(map);
}
// 修改后
@PostMapping("/admin/parcel/company-name.json")
public R<Map<Long, String>> searchCompanyName() {
    final Map<Long, String> map = companySearchService.searchName(TenantUtil.getTenantable());
    return R.okData(map);
}

trydofor原创大约 4 分钟技债
C003.22届0913怪

C003.22届0913怪

1.URLClassPath.java 631-638

java/11.0.2-open 2019-01-18 16:22:01 /java.base/jdk/internal/loader/URLClassPath.java

Resource getResource(final String name, boolean check) {
    final URL url;
    try {
        url = new URL(base, ParseUtil.encodePath(name, false));
    } catch (MalformedURLException e) {
        throw new IllegalArgumentException("name");
    }
    // ....
}

trydofor原创大约 5 分钟技债
C002.22届0818怪

C002.22届0818怪

1.pom.xml 60-63

tail-backend 2022-08-18 18:39:03 /tail-common/pom.xml

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>easyexcel</artifactId>
    <version>2.2.8</version>
</dependency>

trydofor原创大约 5 分钟技债
C001.22届0727怪

C001.22届0727怪

1.ImptUspsFedexBillsServiceImpl.java 266-274

express-home 2022-07-27 20:11:22

//logger.info("ImptUspsFedexBillsService.importUspsFedexBills, deal data");
BigDecimal weightRaw = DecimalUtil.object(row.get(18), BigDecimal.ZERO); //包裹实量
BigDecimal weightIso = DecimalUtil.object(row.get(20), BigDecimal.ZERO); //计费重量
if ((weightIso.doubleValue() > 50.00 && weightIso.doubleValue() < 51.00)
    || (weightIso.doubleValue() > 100.00 && weightIso.doubleValue() < 101.00)
    || (weightIso.doubleValue() > 200.00 && weightIso.doubleValue() < 201.00)
    || (weightIso.doubleValue() > 300.00 && weightIso.doubleValue() < 301.00)
    || (weightIso.doubleValue() > 500.00 && weightIso.doubleValue() < 501.00)) {
    weightIso = weightIso.setScale(0, BigDecimal.ROUND_UP);
}

trydofor原创大约 4 分钟技债