md
This commit is contained in:
parent
12b495483b
commit
843458c100
@ -841,8 +841,8 @@ public class EmisBaseService {
|
|||||||
* @param problemType
|
* @param problemType
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public EmisProblemType getEmisProblemTypeByType(String problemType){
|
public EmisProblemType getEmisProblemTypeByType(Integer problemType){
|
||||||
return emisProblemTypeMapper.selectEmisProblemTypeById(Long.valueOf(problemType));
|
return emisProblemTypeMapper.selectEmisProblemTypeById(problemType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -852,7 +852,7 @@ public class EmisBaseService {
|
|||||||
* @param problemCause
|
* @param problemCause
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public int changeWaybillProblemInfo(String billCode,String problemType,String problemCause){
|
public int changeWaybillProblemInfo(String billCode,Integer problemType,String problemCause){
|
||||||
EmisWaybill emisWaybill = new EmisWaybill();
|
EmisWaybill emisWaybill = new EmisWaybill();
|
||||||
emisWaybill.setBlIsQuestion("1");
|
emisWaybill.setBlIsQuestion("1");
|
||||||
emisWaybill.setProblemType(problemType);
|
emisWaybill.setProblemType(problemType);
|
||||||
|
|||||||
@ -25,7 +25,7 @@ public interface IEmisProblemTypeService
|
|||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public EmisProblemType selectEmisProblemTypeById(Long id);
|
public EmisProblemType selectEmisProblemTypeById(Integer id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询问题件类型列表
|
* 查询问题件类型列表
|
||||||
|
|||||||
@ -36,7 +36,7 @@ public class EmisProblemTypeServiceImpl implements IEmisProblemTypeService
|
|||||||
* @return 问题件类型
|
* @return 问题件类型
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public EmisProblemType selectEmisProblemTypeById(Long id)
|
public EmisProblemType selectEmisProblemTypeById(Integer id)
|
||||||
{
|
{
|
||||||
return emisProblemTypeMapper.selectEmisProblemTypeById(id);
|
return emisProblemTypeMapper.selectEmisProblemTypeById(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -208,11 +208,7 @@ public class WaybillHelper {
|
|||||||
public static String formatQueryValue(String str) {
|
public static String formatQueryValue(String str) {
|
||||||
if(!StringUtils.isEmpty(str)){
|
if(!StringUtils.isEmpty(str)){
|
||||||
str=str.replaceAll("\\n", ",");
|
str=str.replaceAll("\\n", ",");
|
||||||
if(str.lastIndexOf(",")!=-1) {
|
str=StringUtils.removeEnd(str, ",");
|
||||||
StringBuilder sb = new StringBuilder(str);
|
|
||||||
sb.deleteCharAt(sb.lastIndexOf(","));
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
@ -260,12 +256,16 @@ public class WaybillHelper {
|
|||||||
// System.out.println(WaybillHelper.calcSettledWeight(volumeWeight,"4"));
|
// System.out.println(WaybillHelper.calcSettledWeight(volumeWeight,"4"));
|
||||||
|
|
||||||
// System.out.println(removeUnSeeChar(" Phuc)"));
|
// System.out.println(removeUnSeeChar(" Phuc)"));
|
||||||
String input=" Phuc)";
|
// String input=" Phuc)";
|
||||||
for (char c : input.toCharArray()) {
|
// for (char c : input.toCharArray()) {
|
||||||
if (Character.isISOControl(c)) {
|
// if (Character.isISOControl(c)) {
|
||||||
System.out.println("包含不可见字符:" + c);
|
// System.out.println("包含不可见字符:" + c);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
String str="T123213\n1231232,";
|
||||||
|
str=WaybillHelper.formatQueryValue(str);
|
||||||
|
System.out.print(str);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user