Commit 5f05594b authored by zhangsen's avatar zhangsen

Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6_temp

parents 36766904 f8deb7f6
......@@ -210,6 +210,22 @@ public class OrgUsrController extends BaseController {
}
/**
* 根据单位code查询单位
*
* @param code
* @return
*/
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/getUnit/{code}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "获取单位详情", notes = "获取单位详情")
public ResponseModel<OrgUsrFormDto> selectByCode(HttpServletRequest request, @PathVariable String code) throws Exception {
LambdaQueryWrapper<OrgUsr> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(OrgUsr::getCode, code);
OrgUsr orgUsr = iOrgUsrService.getBaseMapper().selectOne(queryWrapper);
return ResponseHelper.buildResponse(iOrgUsrService.selectCompanyById(orgUsr.getSequenceNbr()));
}
/**
* 根据bizOrgType分页查询
*
* @param bizOrgType
......
......@@ -354,7 +354,7 @@
wls.biz_org_code like concat (#{param.bizOrgCode},'%')
</if>
<if test="param.alarmLogId != null">
and wlesal.id = #{alarmLogId}
and wlesal.id = #{param.alarmLogId}
</if>
<if test="param.warehouseStructureName != null and param.warehouseStructureName != ''">
and wlesal.location like concat(concat("%",#{param.warehouseStructureName}),"%")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment