md
This commit is contained in:
parent
f39d976a59
commit
076c2d7927
@ -759,7 +759,7 @@ public class EmisWaybillController extends EmisBaseController
|
||||
}
|
||||
|
||||
@RequestMapping("/getPrintDataByPrinter")
|
||||
public AjaxResult getPrintDataByPrinter(HttpServletRequest request, HttpServletResponse response,String billCode, String billCodeRange,String tplCode, String lang, String printType)
|
||||
public AjaxResult getPrintDataByPrinter(HttpServletRequest request, HttpServletResponse response,String billCode, String billCodeRange,String tplCode, String lang, String printType,String printManCode)
|
||||
{
|
||||
|
||||
if(StringUtils.isEmpty(billCode)){
|
||||
@ -769,7 +769,7 @@ public class EmisWaybillController extends EmisBaseController
|
||||
if(!StringUtils.isEmpty(billCode)){
|
||||
try {
|
||||
|
||||
Map<String, Object> order = emisBaseService.getWaybillPrintOrder(billCode, billCodeRange,tplCode, lang, printType);
|
||||
Map<String, Object> order = emisBaseService.getWaybillPrintOrder(billCode, billCodeRange,tplCode, lang, printType,printManCode);
|
||||
JSONObject printItem = new JSONObject();
|
||||
printItem.put("billCode",billCode);
|
||||
|
||||
|
||||
@ -537,7 +537,7 @@ public class EmisBaseService {
|
||||
* @param printType
|
||||
* @return
|
||||
*/
|
||||
public Map<String,Object> getWaybillPrintOrder(String billCode, String billCodeRange, String tplCode,String lang, String printType) {
|
||||
public Map<String,Object> getWaybillPrintOrder(String billCode, String billCodeRange, String tplCode,String lang, String printType,String printManCode) {
|
||||
if (StringUtils.isEmpty(billCode)) {
|
||||
return null;
|
||||
}
|
||||
@ -751,7 +751,14 @@ public class EmisBaseService {
|
||||
|
||||
String empName="LP";
|
||||
try {
|
||||
empName = getCurrentUser().getEmpName();
|
||||
if(StringUtils.isEmpty(printManCode)) {
|
||||
empName = getCurrentUser().getEmpName();
|
||||
}else{
|
||||
SysUser empUser=getEmisStaffByCode(printManCode);
|
||||
if(empUser!=null) {
|
||||
empName = empUser.getEmpName();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception ex){
|
||||
// 非session 用户打印
|
||||
|
||||
Loading…
Reference in New Issue
Block a user