测试问题修复
This commit is contained in:
parent
f542f7cc79
commit
da7052f4bb
|
|
@ -4,10 +4,13 @@ import java.util.List;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.bonus.common.log.enums.OperaType;
|
||||
import com.bonus.material.basic.domain.BmUnitPerson;
|
||||
import com.bonus.material.basic.service.IBmUnitPersonService;
|
||||
import com.bonus.material.common.annotation.PreventRepeatSubmit;
|
||||
import com.bonus.material.ma.service.ITypeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
|
@ -44,6 +47,9 @@ public class BmUnitController extends BaseController
|
|||
@Autowired
|
||||
private ITypeService typeService;
|
||||
|
||||
@Autowired
|
||||
private IBmUnitPersonService bmUnitPersonService;
|
||||
|
||||
/**
|
||||
* 查询往来单位管理列表
|
||||
*/
|
||||
|
|
@ -69,7 +75,11 @@ public class BmUnitController extends BaseController
|
|||
{
|
||||
Long deptId = typeService.getUserDeptId();
|
||||
bmUnit.setCompanyId(deptId);
|
||||
List<BmUnit> list = bmUnitService.selectBmUnitList(bmUnit);
|
||||
// List<BmUnit> list = bmUnitService.selectBmUnitList(bmUnit);
|
||||
BmUnitPerson bmUnitPerson = new BmUnitPerson();
|
||||
bmUnitPerson.setCompanyId(deptId+"");
|
||||
BeanUtils.copyProperties(bmUnit, bmUnitPerson);
|
||||
List<BmUnit> list = bmUnitPersonService.selectBmUnitList(bmUnitPerson);
|
||||
ExcelUtil<BmUnit> util = new ExcelUtil<BmUnit>(BmUnit.class);
|
||||
util.exportExcel(response, list, "往来单位管理数据");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|||
@Resource
|
||||
private TypeMapper typeMapper;
|
||||
|
||||
|
||||
// @Autowired
|
||||
// private PurchaseInputMapper purchaseInputMapper;
|
||||
|
||||
|
|
@ -61,6 +62,8 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|||
@Override
|
||||
public List<SupplierInfo> selectMaSupplierInfoList(SupplierInfo maSupplierInfo)
|
||||
{
|
||||
Long companyId=typeService.getUserDeptId();
|
||||
maSupplierInfo.setCompanyId(companyId+"");
|
||||
return warehousingMapper.selectMaSupplierInfoList(maSupplierInfo);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,11 @@
|
|||
supplier_id as supplierId ,
|
||||
supplier as supplier
|
||||
FROM ma_supplier_info
|
||||
<where>
|
||||
<if test="companyId !=null and companyId !=''">
|
||||
and company_id = #{companyId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByMaCode" resultType="java.lang.Integer">
|
||||
|
|
|
|||
Loading…
Reference in New Issue