Skip to content

Commit

Permalink
fix:社員
Browse files Browse the repository at this point in the history
Update MyBatis mappings and rename columns in 社員マスタ

Refactored auto-generated MyBatis mappings with updated timestamps and renamed "FAX番号" to "fax番号" in 社員マスタ. Added user_id column definition, created migration scripts for schema changes, and inserted demo employee data for initial setup.
  • Loading branch information
k2works committed Dec 27, 2024
1 parent 6493bb4 commit 898893d
Show file tree
Hide file tree
Showing 35 changed files with 658 additions and 416 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,47 @@ public interface ApplicationExecutionHistoryMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.application_execution_history
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int deleteByPrimaryKey(Integer id);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.application_execution_history
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int insert(ApplicationExecutionHistory record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.application_execution_history
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int insertSelective(ApplicationExecutionHistory record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.application_execution_history
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
ApplicationExecutionHistory selectByPrimaryKey(Integer id);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.application_execution_history
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int updateByPrimaryKeySelective(ApplicationExecutionHistory record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.application_execution_history
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int updateByPrimaryKey(ApplicationExecutionHistory record);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="process_name" jdbcType="VARCHAR" property="processName" />
Expand All @@ -22,7 +22,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
id, process_name, process_code, process_type, process_start, process_end, process_flag,
process_details, version, user_id
Expand All @@ -31,7 +31,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
select
<include refid="Base_Column_List" />
Expand All @@ -42,7 +42,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
delete from system.application_execution_history
where id = #{id,jdbcType=INTEGER}
Expand All @@ -51,7 +51,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
insert into system.application_execution_history (id, process_name, process_code,
process_type, process_start, process_end,
Expand All @@ -66,7 +66,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
insert into system.application_execution_history
<trim prefix="(" suffix=")" suffixOverrides=",">
Expand Down Expand Up @@ -138,7 +138,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
update system.application_execution_history
<set>
Expand Down Expand Up @@ -176,7 +176,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
update system.application_execution_history
set process_name = #{processName,jdbcType=VARCHAR},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,47 @@ public interface UsrMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.usr
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int deleteByPrimaryKey(String userId);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.usr
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int insert(Usr record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.usr
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int insertSelective(Usr record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.usr
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
Usr selectByPrimaryKey(String userId);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.usr
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int updateByPrimaryKeySelective(Usr record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system.usr
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int updateByPrimaryKey(Usr record);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
<id column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="first_name" jdbcType="VARCHAR" property="firstName" />
Expand All @@ -17,15 +17,15 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
user_id, first_name, last_name, password, role_name
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
select
<include refid="Base_Column_List" />
Expand All @@ -36,7 +36,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
delete from system.usr
where user_id = #{userId,jdbcType=VARCHAR}
Expand All @@ -45,7 +45,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
insert into system.usr (user_id, first_name, last_name,
password, role_name)
Expand All @@ -56,7 +56,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
insert into system.usr
<trim prefix="(" suffix=")" suffixOverrides=",">
Expand Down Expand Up @@ -98,7 +98,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
update system.usr
<set>
Expand All @@ -121,7 +121,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
update system.usr
set first_name = #{firstName,jdbcType=VARCHAR},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,47 @@ public interface 代替商品Mapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table public.代替商品
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int deleteByPrimaryKey(代替商品Key key);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table public.代替商品
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int insert(代替商品 record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table public.代替商品
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int insertSelective(代替商品 record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table public.代替商品
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
代替商品 selectByPrimaryKey(代替商品Key key);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table public.代替商品
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int updateByPrimaryKeySelective(代替商品 record);

/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table public.代替商品
*
* @mbg.generated Thu Dec 19 20:11:17 JST 2024
* @mbg.generated Fri Dec 27 09:59:07 JST 2024
*/
int updateByPrimaryKey(代替商品 record);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
<id column="商品コード" jdbcType="VARCHAR" property="商品コード" />
<id column="代替商品コード" jdbcType="VARCHAR" property="代替商品コード" />
Expand All @@ -19,15 +19,15 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
商品コード, 代替商品コード, 優先順位, 作成日時, 作成者名, 更新日時, 更新者名
</sql>
<select id="selectByPrimaryKey" parameterType="com.example.sms.infrastructure.datasource.autogen.model.代替商品Key" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
select
<include refid="Base_Column_List" />
Expand All @@ -39,7 +39,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
delete from public.代替商品
where 商品コード = #{商品コード,jdbcType=VARCHAR}
Expand All @@ -49,7 +49,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
insert into public.代替商品 (商品コード, 代替商品コード, 優先順位,
作成日時, 作成者名, 更新日時,
Expand All @@ -62,7 +62,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
insert into public.代替商品
<trim prefix="(" suffix=")" suffixOverrides=",">
Expand Down Expand Up @@ -116,7 +116,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
update public.代替商品
<set>
Expand All @@ -143,7 +143,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Dec 19 20:11:17 JST 2024.
This element was generated on Fri Dec 27 09:59:07 JST 2024.
-->
update public.代替商品
set 優先順位 = #{優先順位,jdbcType=INTEGER},
Expand Down
Loading

0 comments on commit 898893d

Please sign in to comment.