md
This commit is contained in:
parent
1a909479b5
commit
398b39760b
@ -740,10 +740,10 @@ public class WaybillOrder implements Serializable {
|
|||||||
// dbWaybill.setPrintSite(this.getPrintSite());
|
// dbWaybill.setPrintSite(this.getPrintSite());
|
||||||
// dbWaybill.setPrintDate(this.getPrintDate());
|
// dbWaybill.setPrintDate(this.getPrintDate());
|
||||||
// dbWaybill.setPrintCount(this.getPrintCount());
|
// dbWaybill.setPrintCount(this.getPrintCount());
|
||||||
dbWaybill.setBlDispFd(this.getBlDispFd());
|
// dbWaybill.setBlDispFd(this.getBlDispFd());
|
||||||
dbWaybill.setTransferCode(this.getTransferCode());
|
// dbWaybill.setTransferCode(this.getTransferCode());
|
||||||
dbWaybill.setTransferBillcode(this.getTransferBillcode());
|
// dbWaybill.setTransferBillcode(this.getTransferBillcode());
|
||||||
dbWaybill.setDispFdDate(this.getDispFdDate());
|
// dbWaybill.setDispFdDate(this.getDispFdDate());
|
||||||
// dbWaybill.setDispFdReason(this.getDispFdReason());
|
// dbWaybill.setDispFdReason(this.getDispFdReason());
|
||||||
// dbWaybill.setCurrentSiteCode(this.getCurrentSiteCode());
|
// dbWaybill.setCurrentSiteCode(this.getCurrentSiteCode());
|
||||||
// dbWaybill.setNextSiteCode(this.getNextSiteCode());
|
// dbWaybill.setNextSiteCode(this.getNextSiteCode());
|
||||||
|
|||||||
@ -175,6 +175,32 @@ public class WaybillHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保留运单的所有字段
|
||||||
|
* @param obj
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String cvtBillToJsonString(Object obj) {
|
||||||
|
return JSON.toJSONString(obj, (ValueFilter) (object, name, value) -> {
|
||||||
|
if(value == null){
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}, SerializerFeature.WriteMapNullValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static String removeUnSeeChar(String str) {
|
||||||
|
if(!StringUtils.isEmpty(str)){
|
||||||
|
return str.replaceAll("\\p{C}+", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
//1: 1.02 1.1 1.11
|
//1: 1.02 1.1 1.11
|
||||||
@ -209,37 +235,22 @@ public class WaybillHelper {
|
|||||||
// 6000 167
|
// 6000 167
|
||||||
// 3333 300
|
// 3333 300
|
||||||
// 5000 0.1
|
// 5000 0.1
|
||||||
float volumeWeight=166.667f;
|
// float volumeWeight=166.667f;
|
||||||
System.out.println(WaybillHelper.calcSettledWeight(volumeWeight,"3"));
|
// System.out.println(WaybillHelper.calcSettledWeight(volumeWeight,"3"));
|
||||||
System.out.println(WaybillHelper.calcSettledWeight(volumeWeight,"4"));
|
// System.out.println(WaybillHelper.calcSettledWeight(volumeWeight,"4"));
|
||||||
|
|
||||||
|
// System.out.println(removeUnSeeChar(" Phuc)"));
|
||||||
|
String input=" Phuc)";
|
||||||
|
for (char c : input.toCharArray()) {
|
||||||
|
if (Character.isISOControl(c)) {
|
||||||
|
System.out.println("包含不可见字符:" + c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 保留运单的所有字段
|
|
||||||
* @param obj
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String cvtBillToJsonString(Object obj) {
|
|
||||||
return JSON.toJSONString(obj, (ValueFilter) (object, name, value) -> {
|
|
||||||
if(value == null){
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}, SerializerFeature.WriteMapNullValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static String removeUnSeeChar(String str) {
|
|
||||||
if(!StringUtils.isEmpty(str)){
|
|
||||||
return str.replaceAll("\\p{C}+", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectEmisProblemTypeVo">
|
<sql id="selectEmisProblemTypeVo">
|
||||||
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_problem_type
|
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time,create_site,update_site from emis_problem_type
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectEmisProblemTypeList" parameterType="EmisProblemType" resultMap="EmisProblemTypeResult">
|
<select id="selectEmisProblemTypeList" parameterType="EmisProblemType" resultMap="EmisProblemTypeResult">
|
||||||
@ -71,7 +71,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectEmisProblemTypeById" parameterType="Long" resultMap="EmisProblemTypeResult">
|
<select id="selectEmisProblemTypeById" parameterType="Long" resultMap="EmisProblemTypeResult">
|
||||||
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
select id, type_code, type_name, type_name_en, is_send_sms, object_type, delay_day, status, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time,create_site,update_site
|
||||||
from emis_problem_type a
|
from emis_problem_type a
|
||||||
where a.id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user