and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} ID, GLORGBOOK_CODE, GLORGBOOK_NAME, COMPANY_FLAG, START_DATE, END_DATE, PRODUCT_ID, SUB_PRODUCT_ID, DF_COMPANY, MAP_FLAG, IMPORT_MODE, LAST_DATE, INPUT_MAN, INPUT_TIME, USE_STATE, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, REMARK delete from cw_hs_glorgbook where ID = #{id,jdbcType=VARCHAR} delete from cw_hs_glorgbook insert into cw_hs_glorgbook (ID, GLORGBOOK_CODE, GLORGBOOK_NAME, COMPANY_FLAG, START_DATE, END_DATE, PRODUCT_ID, SUB_PRODUCT_ID, DF_COMPANY, MAP_FLAG, IMPORT_MODE, LAST_DATE, INPUT_MAN, INPUT_TIME, USE_STATE, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, REMARK) values (#{id,jdbcType=VARCHAR}, #{glorgbookCode,jdbcType=VARCHAR}, #{glorgbookName,jdbcType=VARCHAR}, #{companyFlag,jdbcType=VARCHAR}, #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{subProductId,jdbcType=VARCHAR}, #{dfCompany,jdbcType=VARCHAR}, #{mapFlag,jdbcType=VARCHAR}, #{importMode,jdbcType=VARCHAR}, #{lastDate,jdbcType=VARCHAR}, #{inputMan,jdbcType=VARCHAR}, #{inputTime,jdbcType=TIMESTAMP}, #{useState,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) insert into cw_hs_glorgbook ID, GLORGBOOK_CODE, GLORGBOOK_NAME, COMPANY_FLAG, START_DATE, END_DATE, PRODUCT_ID, SUB_PRODUCT_ID, DF_COMPANY, MAP_FLAG, IMPORT_MODE, LAST_DATE, INPUT_MAN, INPUT_TIME, USE_STATE, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, REMARK, #{id,jdbcType=VARCHAR}, #{glorgbookCode,jdbcType=VARCHAR}, #{glorgbookName,jdbcType=VARCHAR}, #{companyFlag,jdbcType=VARCHAR}, #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{subProductId,jdbcType=VARCHAR}, #{dfCompany,jdbcType=VARCHAR}, #{mapFlag,jdbcType=VARCHAR}, #{importMode,jdbcType=VARCHAR}, #{lastDate,jdbcType=VARCHAR}, #{inputMan,jdbcType=VARCHAR}, #{inputTime,jdbcType=TIMESTAMP}, #{useState,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, update cw_hs_glorgbook ID = #{record.id,jdbcType=VARCHAR}, GLORGBOOK_CODE = #{record.glorgbookCode,jdbcType=VARCHAR}, GLORGBOOK_NAME = #{record.glorgbookName,jdbcType=VARCHAR}, COMPANY_FLAG = #{record.companyFlag,jdbcType=VARCHAR}, START_DATE = #{record.startDate,jdbcType=VARCHAR}, END_DATE = #{record.endDate,jdbcType=VARCHAR}, PRODUCT_ID = #{record.productId,jdbcType=VARCHAR}, SUB_PRODUCT_ID = #{record.subProductId,jdbcType=VARCHAR}, DF_COMPANY = #{record.dfCompany,jdbcType=VARCHAR}, MAP_FLAG = #{record.mapFlag,jdbcType=VARCHAR}, IMPORT_MODE = #{record.importMode,jdbcType=VARCHAR}, LAST_DATE = #{record.lastDate,jdbcType=VARCHAR}, INPUT_MAN = #{record.inputMan,jdbcType=VARCHAR}, INPUT_TIME = #{record.inputTime,jdbcType=TIMESTAMP}, USE_STATE = #{record.useState,jdbcType=VARCHAR}, CREATE_USER = #{record.createUser,jdbcType=VARCHAR}, CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP}, UPDATE_USER = #{record.updateUser,jdbcType=VARCHAR}, UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}, REMARK = #{record.remark,jdbcType=VARCHAR}, update cw_hs_glorgbook set ID = #{record.id,jdbcType=VARCHAR}, GLORGBOOK_CODE = #{record.glorgbookCode,jdbcType=VARCHAR}, GLORGBOOK_NAME = #{record.glorgbookName,jdbcType=VARCHAR}, COMPANY_FLAG = #{record.companyFlag,jdbcType=VARCHAR}, START_DATE = #{record.startDate,jdbcType=VARCHAR}, END_DATE = #{record.endDate,jdbcType=VARCHAR}, PRODUCT_ID = #{record.productId,jdbcType=VARCHAR}, SUB_PRODUCT_ID = #{record.subProductId,jdbcType=VARCHAR}, DF_COMPANY = #{record.dfCompany,jdbcType=VARCHAR}, MAP_FLAG = #{record.mapFlag,jdbcType=VARCHAR}, IMPORT_MODE = #{record.importMode,jdbcType=VARCHAR}, LAST_DATE = #{record.lastDate,jdbcType=VARCHAR}, INPUT_MAN = #{record.inputMan,jdbcType=VARCHAR}, INPUT_TIME = #{record.inputTime,jdbcType=TIMESTAMP}, USE_STATE = #{record.useState,jdbcType=VARCHAR}, CREATE_USER = #{record.createUser,jdbcType=VARCHAR}, CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP}, UPDATE_USER = #{record.updateUser,jdbcType=VARCHAR}, UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}, REMARK = #{record.remark,jdbcType=VARCHAR} update cw_hs_glorgbook GLORGBOOK_CODE = #{glorgbookCode,jdbcType=VARCHAR}, GLORGBOOK_NAME = #{glorgbookName,jdbcType=VARCHAR}, COMPANY_FLAG = #{companyFlag,jdbcType=VARCHAR}, START_DATE = #{startDate,jdbcType=VARCHAR}, END_DATE = #{endDate,jdbcType=VARCHAR}, PRODUCT_ID = #{productId,jdbcType=VARCHAR}, SUB_PRODUCT_ID = #{subProductId,jdbcType=VARCHAR}, DF_COMPANY = #{dfCompany,jdbcType=VARCHAR}, MAP_FLAG = #{mapFlag,jdbcType=VARCHAR}, IMPORT_MODE = #{importMode,jdbcType=VARCHAR}, LAST_DATE = #{lastDate,jdbcType=VARCHAR}, INPUT_MAN = #{inputMan,jdbcType=VARCHAR}, INPUT_TIME = #{inputTime,jdbcType=TIMESTAMP}, USE_STATE = #{useState,jdbcType=VARCHAR}, CREATE_USER = #{createUser,jdbcType=VARCHAR}, CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, UPDATE_USER = #{updateUser,jdbcType=VARCHAR}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, REMARK = #{remark,jdbcType=VARCHAR}, where ID = #{id,jdbcType=VARCHAR} update cw_hs_glorgbook set GLORGBOOK_CODE = #{glorgbookCode,jdbcType=VARCHAR}, GLORGBOOK_NAME = #{glorgbookName,jdbcType=VARCHAR}, COMPANY_FLAG = #{companyFlag,jdbcType=VARCHAR}, START_DATE = #{startDate,jdbcType=VARCHAR}, END_DATE = #{endDate,jdbcType=VARCHAR}, PRODUCT_ID = #{productId,jdbcType=VARCHAR}, SUB_PRODUCT_ID = #{subProductId,jdbcType=VARCHAR}, DF_COMPANY = #{dfCompany,jdbcType=VARCHAR}, MAP_FLAG = #{mapFlag,jdbcType=VARCHAR}, IMPORT_MODE = #{importMode,jdbcType=VARCHAR}, LAST_DATE = #{lastDate,jdbcType=VARCHAR}, INPUT_MAN = #{inputMan,jdbcType=VARCHAR}, INPUT_TIME = #{inputTime,jdbcType=TIMESTAMP}, USE_STATE = #{useState,jdbcType=VARCHAR}, CREATE_USER = #{createUser,jdbcType=VARCHAR}, CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, UPDATE_USER = #{updateUser,jdbcType=VARCHAR}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, REMARK = #{remark,jdbcType=VARCHAR} where ID = #{id,jdbcType=VARCHAR} update CW_HS_GLORGBOOK set use_state="0" where ID in ( #{item,jdbcType=VARCHAR} ) insert into cw_hs_subcodemap(ID, BOOK_CODE, COMPANY_FLAG, IMPORT_FLAG, SUB_CODE, SUB_NAME, SEID_ID, STOCK_TYPE, SUB_CODE_V, SUB_NAME_V, PRODUCT_ID, SUB_PRODUCT_ID, USE_STATE, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, REMARK ) select MD5(uuid()) as ID, BOOK_CODE, COMPANY_FLAG, IMPORT_FLAG, SUB_CODE, SUB_NAME, SEID_ID, STOCK_TYPE, SUB_CODE_V, SUB_NAME_V,#{productId,jdbcType=VARCHAR}, SUB_PRODUCT_ID, USE_STATE, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, REMARK from cw_hs_subcodemap b where b.product_id='0' and use_state='1' update cw_hs_glorgbook set MAP_FLAG='2' WHERE PRODUCT_ID=#{projectId,jdbcType=VARCHAR}