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