diff --git a/api-admin/src/main/java/com/glxp/sale/admin/controller/auth/AuthAdminController.java b/api-admin/src/main/java/com/glxp/sale/admin/controller/auth/AuthAdminController.java index 9fa377a..bc3d1aa 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/controller/auth/AuthAdminController.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/controller/auth/AuthAdminController.java @@ -245,6 +245,15 @@ public class AuthAdminController { // 插入角色 if (authAdminSaveRequest.getRoles() != null) { authRoleAdminService.insertRolesAdminIdAll(authAdminSaveRequest.getRoles(), authAdmin.getId()); + } else { + List authRoleAdmins = authRoleAdminService.listByAdminId(curUser.getId()); + List roles = new ArrayList<>(); + if (!authRoleAdmins.isEmpty()) { + for (AuthRoleAdmin authRoleAdmin : authRoleAdmins) { + roles.add(authRoleAdmin.getRole_id()); + } + authRoleAdminService.insertRolesAdminIdAll(roles, authAdmin.getId()); + } } Map res = new HashMap<>(); diff --git a/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/StockQRCodeTextController.java b/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/StockQRCodeTextController.java index 6178b7e..8bb45e4 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/StockQRCodeTextController.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/StockQRCodeTextController.java @@ -3,6 +3,7 @@ package com.glxp.sale.admin.controller.inout; import com.github.pagehelper.PageInfo; import com.glxp.sale.admin.annotation.AuthRuleAnnotation; import com.glxp.sale.admin.constant.Constant; +import com.glxp.sale.admin.entity.basic.BussinessLocalTypeEntity; import com.glxp.sale.admin.entity.basic.StockPrintEntity; import com.glxp.sale.admin.entity.info.CompanyEntity; import com.glxp.sale.admin.entity.inout.StockOrderDetailEntity; @@ -23,6 +24,7 @@ import com.glxp.sale.admin.req.itextpdf.StockQRCodeTextPDFTemplateRequest; import com.glxp.sale.admin.req.itextpdf.SystemPDFTemplateRelevanceRequest; import com.glxp.sale.admin.res.PageSimpleResponse; import com.glxp.sale.admin.res.param.SystemPDFTemplateRelevanceResponse; +import com.glxp.sale.admin.service.basic.BussinessLocalTypeService; import com.glxp.sale.admin.service.info.CompanyService; import com.glxp.sale.admin.service.inout.StockOrderDetailService; import com.glxp.sale.admin.service.inout.StockOrderService; @@ -80,6 +82,8 @@ public class StockQRCodeTextController { private StockPrintTempService stockPrintTempService; @Resource private JaspaperService jaspaperService; + @Resource + private BussinessLocalTypeService bussinessLocalTypeService; @AuthRuleAnnotation("") @GetMapping("/udiwms/stock/qrcode/text/filter") @@ -335,13 +339,18 @@ public class StockQRCodeTextController { if (stockOrderEntity == null) { return ResultVOUtils.error(ResultEnum.DATA_NOT, "未找到该订单"); } - - SystemPDFModuleEntity systemPDFModuleEntity = systemPDFModuleService.selectById(2 + ""); - if (systemPDFModuleEntity == null) return ResultVOUtils.error(ResultEnum.DATA_NOT, "所属模块错误"); - SystemPDFTemplateEntity systemPDFTemplateEntity = - systemPDFTemplateService.selectById(String.valueOf(systemPDFModuleEntity.getTemplateId())); - if (systemPDFTemplateEntity == null) return ResultVOUtils.error(ResultEnum.DATA_NOT, "模板错误"); - + SystemPDFTemplateRelevanceRequest systemPDFTemplateRelevanceRequest = new SystemPDFTemplateRelevanceRequest(); + systemPDFTemplateRelevanceRequest.setModuleId(2); + systemPDFTemplateRelevanceRequest.setLocalAction(stockOrderEntity.getBillType()); + List systemPDFTemplateRelevanceResponses = systemPDFTemplateRelevanceService.filterList(systemPDFTemplateRelevanceRequest); + if (systemPDFTemplateRelevanceResponses.isEmpty()) { + return ResultVOUtils.error(ResultEnum.DATA_NOT, "所属模块错误"); + } else { + SystemPDFTemplateRelevanceResponse systemPDFTemplateRelevanceResponse = systemPDFTemplateRelevanceResponses.get(0); + SystemPDFTemplateEntity systemPDFTemplateEntity = + systemPDFTemplateService.selectById(String.valueOf(systemPDFTemplateRelevanceResponse.getTemplateId())); + if (systemPDFTemplateEntity == null) return ResultVOUtils.error(ResultEnum.DATA_NOT, "模板错误"); + } return ResultVOUtils.success(); } diff --git a/api-admin/src/main/java/com/glxp/sale/admin/entity/inout/WarehouseUserEntity.java b/api-admin/src/main/java/com/glxp/sale/admin/entity/inout/WarehouseUserEntity.java index c22db91..9f4623c 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/entity/inout/WarehouseUserEntity.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/entity/inout/WarehouseUserEntity.java @@ -32,4 +32,6 @@ public class WarehouseUserEntity { */ private boolean isDirector; + private String employeeName; + } \ No newline at end of file diff --git a/api-admin/src/main/java/com/glxp/sale/admin/req/basic/BussinessLocalTypeFilterRequest.java b/api-admin/src/main/java/com/glxp/sale/admin/req/basic/BussinessLocalTypeFilterRequest.java index 51a70f0..30668f8 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/req/basic/BussinessLocalTypeFilterRequest.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/req/basic/BussinessLocalTypeFilterRequest.java @@ -14,5 +14,6 @@ public class BussinessLocalTypeFilterRequest extends ListPageRequest { private Boolean changeEnable; private Boolean spUse; private Boolean isFilter; + private String code; } diff --git a/api-admin/src/main/java/com/glxp/sale/admin/req/basic/FilterUdiInfoRequest.java b/api-admin/src/main/java/com/glxp/sale/admin/req/basic/FilterUdiInfoRequest.java index 432ebeb..c44e3f8 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/req/basic/FilterUdiInfoRequest.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/req/basic/FilterUdiInfoRequest.java @@ -46,4 +46,10 @@ public class FilterUdiInfoRequest extends ListPageRequest { private String corpId; private String billType; + private String ybbm; + private String sptm; + private String unionFilterStr;//产品名称,规格,批文,生产厂家联合查询 + + + } diff --git a/api-admin/src/main/java/com/glxp/sale/admin/req/inout/OrderFilterRequest.java b/api-admin/src/main/java/com/glxp/sale/admin/req/inout/OrderFilterRequest.java index 3f9de86..a7ccbb8 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/req/inout/OrderFilterRequest.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/req/inout/OrderFilterRequest.java @@ -30,5 +30,6 @@ public class OrderFilterRequest extends ListPageRequest { private Integer reviewUser; private Integer userId; + private String locStorageCode; } diff --git a/api-admin/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml b/api-admin/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml index 422fd1c..48c405e 100644 --- a/api-admin/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml @@ -134,6 +134,8 @@ \ No newline at end of file diff --git a/api-admin/src/main/resources/mybatis/mapper/basic/BussinessLocalTypeDao.xml b/api-admin/src/main/resources/mybatis/mapper/basic/BussinessLocalTypeDao.xml index a16ba13..9872128 100644 --- a/api-admin/src/main/resources/mybatis/mapper/basic/BussinessLocalTypeDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/basic/BussinessLocalTypeDao.xml @@ -35,7 +35,8 @@ basic_bussiness_type.action,basic_bussiness_type.checkEnable,basic_bustype_local.advanceType,basic_bustype_local.changeEnable, basic_bustype_local.spUse,basic_bussiness_type.storageCode,basic_bussiness_type.corpType,basic_bussiness_type.mainAction FROM basic_bustype_local - inner join basic_bussiness_type on basic_bustype_local.action = basic_bussiness_type.localAction + inner join basic_bussiness_type + on basic_bustype_local.action = basic_bussiness_type.localAction AND basic_bustype_local.name LIKE concat(#{name},'%') @@ -84,6 +85,9 @@ AND spUse =#{spUse} + + AND inv_warehouse_user.`code` = #{code} + diff --git a/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml b/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml index 55c88ce..6847ad5 100644 --- a/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml @@ -125,7 +125,8 @@ (action,name,enable,remark,mainAction,localAction,thirdSysFk, checkEnable,genUnit,innerOrder,secCheckEnable, checkUdims,checkPdaEd,checkPdaUn,checkPc,checkWebNew,checkChange - ,secCheckUdims,secCheckPdaEd,secCheckPdaUn,secCheckPc,secCheckWebNew,secCheckChange,corpType,basic_bussiness_type.storageCode) + ,secCheckUdims,secCheckPdaEd,secCheckPdaUn,secCheckPc,secCheckWebNew, + secCheckChange,corpType,basic_bussiness_type.storageCode) values ( #{action}, diff --git a/api-admin/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/api-admin/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml index a31be5f..ea6e1a7 100644 --- a/api-admin/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml @@ -65,6 +65,12 @@ AND mainId = #{mainId} + + or basic_products.cpmctymc LIKE concat('%',#{unionFilterStr},'%') + or basic_products.ylqxzcrbarmc LIKE concat('%',#{unionFilterStr},'%') + or basic_products.ggxh LIKE concat('%',#{unionFilterStr},'%') + or basic_products.zczbhhzbapzbh LIKE concat('%',#{unionFilterStr},'%') + AND isAdavence = #{isAdavence} diff --git a/api-admin/src/main/resources/mybatis/mapper/inout/OrderDao.xml b/api-admin/src/main/resources/mybatis/mapper/inout/OrderDao.xml index f6b6eea..bf45065 100644 --- a/api-admin/src/main/resources/mybatis/mapper/inout/OrderDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/inout/OrderDao.xml @@ -144,7 +144,7 @@ INNER JOIN inv_warehouse_user on io_order.locStorageCode = inv_warehouse_user.`code` - and id =#{id} + and io_order.id =#{id} and mainAction =#{mainAction} @@ -194,10 +194,10 @@ and customerId =#{customerId} - + and createUser =#{createUser} - + and reviewUser =#{reviewUser} @@ -206,6 +206,10 @@ and inv_warehouse_user.userId =#{userId} + + and locStorageCode =#{locStorageCode} + + ORDER BY actDate DESC @@ -217,7 +221,7 @@ INNER JOIN inv_warehouse_user on io_order.locStorageCode = inv_warehouse_user.`code` - and id =#{id} + and io_order.id =#{id} and mainAction =#{mainAction} @@ -273,6 +277,9 @@ and inv_warehouse_user.userId =#{userId} + + and locStorageCode =#{locStorageCode} + ORDER BY actDate DESC @@ -284,7 +291,7 @@ INNER JOIN inv_warehouse_user on io_order.locStorageCode = inv_warehouse_user.`code` - and id =#{id} + and io_order.id =#{id} and mainAction =#{mainAction} @@ -340,17 +347,20 @@ and inv_warehouse_user.userId =#{userId} + + and locStorageCode =#{locStorageCode} + ORDER BY actDate DESC diff --git a/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseBussinessTypeDao.xml b/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseBussinessTypeDao.xml index 2726c13..2c39820 100644 --- a/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseBussinessTypeDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseBussinessTypeDao.xml @@ -1,237 +1,247 @@ - - - - - - - - - - - id, code, `action`, `name` - - - - - delete from inv_warehouse_bussiness_type - where id = #{id,jdbcType=INTEGER} - - - - insert into inv_warehouse_bussiness_type (code, `action`, `name` - ) - values (#{code,jdbcType=VARCHAR}, #{action,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR} - ) - - - - insert into inv_warehouse_bussiness_type - - - code, - - - `action`, - - - `name`, - - - - - #{code,jdbcType=VARCHAR}, - - - #{action,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - - - - update inv_warehouse_bussiness_type - - - code = #{code,jdbcType=VARCHAR}, - - + + + + + + + + + + + id, code, `action`, `name` + + + + + delete from inv_warehouse_bussiness_type + where id = #{id,jdbcType=INTEGER} + + + + insert into inv_warehouse_bussiness_type (code, `action`, `name` + ) + values (#{code,jdbcType=VARCHAR}, #{action,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR} + ) + + + + insert into inv_warehouse_bussiness_type + + + code, + + + `action`, + + + `name`, + + + + + #{code,jdbcType=VARCHAR}, + + + #{action,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + + + + update inv_warehouse_bussiness_type + + + code = #{code,jdbcType=VARCHAR}, + + + `action` = #{action,jdbcType=VARCHAR}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + + update inv_warehouse_bussiness_type + set code = #{code,jdbcType=VARCHAR}, `action` = #{action,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=INTEGER} - - - - update inv_warehouse_bussiness_type - set code = #{code,jdbcType=VARCHAR}, - `action` = #{action,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR} - where id = #{id,jdbcType=INTEGER} - - - - update inv_warehouse_bussiness_type - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.action,jdbcType=VARCHAR} + `name` = #{name,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + + + update inv_warehouse_bussiness_type + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.action,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.name,jdbcType=VARCHAR} + + + + where id in + + #{item.id,jdbcType=INTEGER} - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.name,jdbcType=VARCHAR} + + + + update inv_warehouse_bussiness_type + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.action,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.name,jdbcType=VARCHAR} + + + + + where id in + + #{item.id,jdbcType=INTEGER} - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - update inv_warehouse_bussiness_type - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} - + + + + insert into inv_warehouse_bussiness_type + (code, `action`, `name`) + values + + (#{item.code,jdbcType=VARCHAR}, #{item.action,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR} + ) - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.action,jdbcType=VARCHAR} - - - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.name,jdbcType=VARCHAR} - - - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - insert into inv_warehouse_bussiness_type - (code, `action`, `name`) - values - - (#{item.code,jdbcType=VARCHAR}, #{item.action,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR} - ) - - - - - insert into inv_warehouse_bussiness_type - - - id, - - code, - `action`, - `name`, - - values - - - #{id,jdbcType=INTEGER}, - - #{code,jdbcType=VARCHAR}, - #{action,jdbcType=VARCHAR}, - #{name,jdbcType=VARCHAR}, - - on duplicate key update - - - id = #{id,jdbcType=INTEGER}, - - code = #{code,jdbcType=VARCHAR}, - `action` = #{action,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - - - - - insert into inv_warehouse_bussiness_type - - - id, - - - code, - - - `action`, - - - `name`, - - - values - - - #{id,jdbcType=INTEGER}, - - - #{code,jdbcType=VARCHAR}, - - - #{action,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - on duplicate key update - - - id = #{id,jdbcType=INTEGER}, - - - code = #{code,jdbcType=VARCHAR}, - - - `action` = #{action,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - + + + + insert into inv_warehouse_bussiness_type + + + id, + + code, + `action`, + `name`, + + values + + + #{id,jdbcType=INTEGER}, + + #{code,jdbcType=VARCHAR}, + #{action,jdbcType=VARCHAR}, + #{name,jdbcType=VARCHAR}, + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + code = #{code,jdbcType=VARCHAR}, + `action` = #{action,jdbcType=VARCHAR}, + `name` = #{name,jdbcType=VARCHAR}, + + + + + insert into inv_warehouse_bussiness_type + + + id, + + + code, + + + `action`, + + + `name`, + + + values + + + #{id,jdbcType=INTEGER}, + + + #{code,jdbcType=VARCHAR}, + + + #{action,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + + code = #{code,jdbcType=VARCHAR}, + + + `action` = #{action,jdbcType=VARCHAR}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + - + select inv_warehouse_bussiness_type.code, inv_warehouse_bussiness_type.action, basic_bussiness_type.name + from inv_warehouse_bussiness_type + inner join basic_bussiness_type on inv_warehouse_bussiness_type.action = basic_bussiness_type.action + where code = #{code} - - delete from inv_warehouse_bussiness_type where code = #{code} - + + delete + from inv_warehouse_bussiness_type + where code = #{code} + \ No newline at end of file diff --git a/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseUserDao.xml b/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseUserDao.xml index 80e45f9..44dcb96 100644 --- a/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseUserDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/inout/WarehouseUserDao.xml @@ -1,252 +1,266 @@ - - - - - - - - - - - - id, code, userId, userName, isDirector - - - - - delete from inv_warehouse_user - where id = #{id,jdbcType=INTEGER} - - - - insert into inv_warehouse_user (code, userId, userName, isDirector - ) - values (#{code,jdbcType=VARCHAR}, #{userid,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{isDirector} - ) - - - - insert into inv_warehouse_user - - - code, - - - userId, - - - userName, - - isDirector - - - - #{code,jdbcType=VARCHAR}, - - - #{userid,jdbcType=BIGINT}, - - - #{username,jdbcType=VARCHAR}, - - #{isDirector} - - - - - update inv_warehouse_user - - - code = #{code,jdbcType=VARCHAR}, - - + + + + + + + + + + + + id, code, userId, userName, isDirector + + + + + delete from inv_warehouse_user + where id = #{id,jdbcType=INTEGER} + + + + insert into inv_warehouse_user (code, userId, userName, isDirector + ) + values (#{code,jdbcType=VARCHAR}, #{userid,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{isDirector} + ) + + + + insert into inv_warehouse_user + + + code, + + + userId, + + + userName, + + isDirector + + + + #{code,jdbcType=VARCHAR}, + + + #{userid,jdbcType=BIGINT}, + + + #{username,jdbcType=VARCHAR}, + + #{isDirector} + + + + + update inv_warehouse_user + + + code = #{code,jdbcType=VARCHAR}, + + + userId = #{userid,jdbcType=BIGINT}, + + + userName = #{username,jdbcType=VARCHAR}, + + + isDirector = #{isDirector} + where id = #{id,jdbcType=INTEGER} + + + + update inv_warehouse_user + set code = #{code,jdbcType=VARCHAR}, userId = #{userid,jdbcType=BIGINT}, - - - userName = #{username,jdbcType=VARCHAR}, - - - isDirector = #{isDirector} - where id = #{id,jdbcType=INTEGER} - - - - update inv_warehouse_user - set code = #{code,jdbcType=VARCHAR}, - userId = #{userid,jdbcType=BIGINT}, - userName = #{username,jdbcType=VARCHAR} - isDirector = #{isDirector} - where id = #{id,jdbcType=INTEGER} - - - - update inv_warehouse_user - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.userid,jdbcType=BIGINT} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.username,jdbcType=VARCHAR} + userName = #{username,jdbcType=VARCHAR} + isDirector = #{isDirector} + where id = #{id,jdbcType=INTEGER} + + + + update inv_warehouse_user + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.userid,jdbcType=BIGINT} + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.username,jdbcType=VARCHAR} + + + + where id in + + #{item.id,jdbcType=INTEGER} - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - update inv_warehouse_user - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} - + + + + update inv_warehouse_user + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.userid,jdbcType=BIGINT} + + + + + + + when id = #{item.id,jdbcType=INTEGER} then #{item.username,jdbcType=VARCHAR} + + + + + where id in + + #{item.id,jdbcType=INTEGER} - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.userid,jdbcType=BIGINT} - + + + + insert into inv_warehouse_user + (code, userId, userName, isDirector) + values + + (#{item.code,jdbcType=VARCHAR}, #{item.userid,jdbcType=BIGINT}, #{item.username,jdbcType=VARCHAR}, + #{item.isDirector} + ) - - - - - when id = #{item.id,jdbcType=INTEGER} then #{item.username,jdbcType=VARCHAR} - - - - - where id in - - #{item.id,jdbcType=INTEGER} - - - - - insert into inv_warehouse_user - (code, userId, userName, isDirector) - values - - (#{item.code,jdbcType=VARCHAR}, #{item.userid,jdbcType=BIGINT}, #{item.username,jdbcType=VARCHAR}, #{item.isDirector} - ) - - - - - insert into inv_warehouse_user - - - id, - - code, - userId, - userName, - isDirector, - - values - - - #{id,jdbcType=INTEGER}, - - #{code,jdbcType=VARCHAR}, - #{userid,jdbcType=BIGINT}, - #{username,jdbcType=VARCHAR}, - #{isDirector} - - on duplicate key update - - - id = #{id,jdbcType=INTEGER}, - - code = #{code,jdbcType=VARCHAR}, - userId = #{userid,jdbcType=BIGINT}, - userName = #{username,jdbcType=VARCHAR}, - - - - - insert into inv_warehouse_user - - - id, - - - code, - - - userId, - - - userName, - - - values - - - #{id,jdbcType=INTEGER}, - - - #{code,jdbcType=VARCHAR}, - - - #{userid,jdbcType=BIGINT}, - - - #{username,jdbcType=VARCHAR}, - - - on duplicate key update - - - id = #{id,jdbcType=INTEGER}, - - - code = #{code,jdbcType=VARCHAR}, - - - userId = #{userid,jdbcType=BIGINT}, - - - userName = #{username,jdbcType=VARCHAR}, - - - + + + + insert into inv_warehouse_user + + + id, + + code, + userId, + userName, + isDirector, + + values + + + #{id,jdbcType=INTEGER}, + + #{code,jdbcType=VARCHAR}, + #{userid,jdbcType=BIGINT}, + #{username,jdbcType=VARCHAR}, + #{isDirector} + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + code = #{code,jdbcType=VARCHAR}, + userId = #{userid,jdbcType=BIGINT}, + userName = #{username,jdbcType=VARCHAR}, + + + + + insert into inv_warehouse_user + + + id, + + + code, + + + userId, + + + userName, + + + values + + + #{id,jdbcType=INTEGER}, + + + #{code,jdbcType=VARCHAR}, + + + #{userid,jdbcType=BIGINT}, + + + #{username,jdbcType=VARCHAR}, + + + on duplicate key update + + + id = #{id,jdbcType=INTEGER}, + + + code = #{code,jdbcType=VARCHAR}, + + + userId = #{userid,jdbcType=BIGINT}, + + + userName = #{username,jdbcType=VARCHAR}, + + + - + - - delete from inv_warehouse_user where code = #{code} - + + delete + from inv_warehouse_user + where code = #{code} + - - update inv_warehouse_user set isDirector = #{isDirector} where code = #{code} - + + update inv_warehouse_user + set isDirector = #{isDirector} + where code = #{code} + - - update inv_warehouse_user set isDirector = #{isDirector} where id = #{id} - + + update inv_warehouse_user + set isDirector = #{isDirector} + where id = #{id} + \ No newline at end of file