|
@@ -17,12 +17,14 @@ import com.minpay.common.util.DateUtil;
|
|
|
import com.minpay.db.table.mapper.ApCompanyInfMapper;
|
|
|
import com.minpay.db.table.mapper.ApCreditInfMapper;
|
|
|
import com.minpay.db.table.mapper.ApMoreInfMapper;
|
|
|
+import com.minpay.db.table.mapper.ApWarehouseInfMapper;
|
|
|
import com.minpay.db.table.mapper.ImBranchMapper;
|
|
|
import com.minpay.db.table.model.ApCompanyInf;
|
|
|
import com.minpay.db.table.model.ApCreditInf;
|
|
|
import com.minpay.db.table.model.ApCreditInfExample;
|
|
|
import com.minpay.db.table.model.ApMoreInf;
|
|
|
import com.minpay.db.table.model.ApMoreInfExample;
|
|
|
+import com.minpay.db.table.model.ApWarehouseInf;
|
|
|
import com.minpay.db.table.model.ImBranch;
|
|
|
import com.minpay.db.table.model.OwnApCompanyInfExample;
|
|
|
import com.minpay.db.table.own.mapper.CustomerManageMapper;
|
|
@@ -337,20 +339,21 @@ public class CustomerManageAction implements IMINAction {
|
|
|
res.set("phone", phone);//电话
|
|
|
|
|
|
//查询仓库的所属公司
|
|
|
- /*ApWarehouseInf info = Service.lookup(IMINDataBaseService.class).getMybatisMapper(ApWarehouseInfMapper.class)
|
|
|
- .selectByPrimaryKey(wareId);*/
|
|
|
- String companyName = "";
|
|
|
-// if(info != null){
|
|
|
- String companyId = u.getCompanyId();
|
|
|
-// if(!CommonUtil.isEmpty(companyId)){
|
|
|
- ApCompanyInf com = Service.lookup(IMINDataBaseService.class).getMybatisMapper(ApCompanyInfMapper.class)
|
|
|
- .selectByPrimaryKey(companyId);
|
|
|
- if(com != null){
|
|
|
- companyName = com.getName();
|
|
|
- }
|
|
|
-// }
|
|
|
-// }
|
|
|
+ ApWarehouseInf info = Service.lookup(IMINDataBaseService.class).getMybatisMapper(ApWarehouseInfMapper.class)
|
|
|
+ .selectByPrimaryKey(wareId);
|
|
|
|
|
|
+ String companyName = "";
|
|
|
+ if(info != null && !CommonUtil.isEmpty(info.getCompanyId())){
|
|
|
+ ApCompanyInf com = Service.lookup(IMINDataBaseService.class).getMybatisMapper(ApCompanyInfMapper.class)
|
|
|
+ .selectByPrimaryKey(info.getCompanyId());
|
|
|
+ res.set("companyName", com.getName());
|
|
|
+ }
|
|
|
+ String companyId = u.getCompanyId();
|
|
|
+ ApCompanyInf com = Service.lookup(IMINDataBaseService.class).getMybatisMapper(ApCompanyInfMapper.class)
|
|
|
+ .selectByPrimaryKey(companyId);
|
|
|
+ if(com != null){
|
|
|
+ companyName = com.getName();
|
|
|
+ }
|
|
|
res.set("selfCompanyName", companyName);
|
|
|
//获取当前日期
|
|
|
Date currentTime = new Date();
|