1 文件已重命名
6个文件已删除
1个文件已添加
15个文件已修改
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.Employee"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.Employee"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into employee (id,unionId,userId,cnName,enName,tel,email,imgUrl,apiId,isJob,gender,employeeNo,roleId,isSyncRole,isDel,createTime) values (#{id},#{unionId},#{userId},#{cnName},#{enName},#{tel},#{email},#{imgUrl},#{apiId},#{isJob},#{gender},#{employeeNo},#{roleId},#{isSyncRole},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.Employee" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.Employee" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.Employee" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.Employee" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.Employee" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.Employee" parameterType="java.lang.Object" > |
| | | select |
| | | id,unionId,userId,cnName,enName,tel,email,imgUrl,apiId,isJob,gender,employeeNo,roleId,isSyncRole,isDel,createTime |
| | | from employee |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.Employee" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.Employee" parameterType="java.lang.Object" > |
| | | select |
| | | id,unionId,userId,cnName,enName,tel,email,imgUrl,apiId,isJob,gender,employeeNo,roleId,isSyncRole,isDel,createTime |
| | | from employee |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.Employee"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.Employee"> |
| | | update employee |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.EmployeeRoleAdminAuthority"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.EmployeeRoleAdminAuthority"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into emloyee_role_admin_authority (id,sysAdAuId,roleTypeId,isDel,createTime) values (#{id},#{sysAdAuId},#{roleTypeId},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.EmployeeRoleAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.EmployeeRoleAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.EmployeeRoleAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.EmployeeRoleAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.EmployeeRoleAdminAuthority" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.EmployeeRoleAdminAuthority" parameterType="java.lang.Object" > |
| | | select |
| | | id,sysAdAuId,roleTypeId,isDel,createTime |
| | | from emloyee_role_admin_authority |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.EmployeeRoleAdminAuthority" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.EmployeeRoleAdminAuthority" parameterType="java.lang.Object" > |
| | | select |
| | | id,sysAdAuId,roleTypeId,isDel,createTime |
| | | from emloyee_role_admin_authority |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.EmployeeRoleAdminAuthority"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.EmployeeRoleAdminAuthority"> |
| | | update emloyee_role_admin_authority |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.EmployeeRole"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.EmployeeRole"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into employee_role (id,employeeId,shopId,roleTypeId,roleUniqueStr,oldId,isDel,createTime) values (#{id},#{employeeId},#{shopId},#{roleTypeId},#{roleUniqueStr},#{oldId},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.EmployeeRole" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.EmployeeRole" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.EmployeeRole" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.EmployeeRole" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.EmployeeRole" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.EmployeeRole" parameterType="java.lang.Object" > |
| | | select |
| | | id,employeeId,shopId,roleTypeId,roleUniqueStr,oldId,isDel,createTime |
| | | from employee_role |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.EmployeeRole" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.EmployeeRole" parameterType="java.lang.Object" > |
| | | select |
| | | id,employeeId,shopId,roleTypeId,roleUniqueStr,oldId,isDel,createTime |
| | | from employee_role |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.EmployeeRole"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.EmployeeRole"> |
| | | update employee_role |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.EmployeeRoleType"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.EmployeeRoleType"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into employee_role_type (id,name,uniqueStr,isUp,isDel,createTime) values (#{id},#{name},#{uniqueStr},#{isUp},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.EmployeeRoleType" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.EmployeeRoleType" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.EmployeeRoleType" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.EmployeeRoleType" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.EmployeeRoleType" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.EmployeeRoleType" parameterType="java.lang.Object" > |
| | | select |
| | | id,name,uniqueStr,isUp,isDel,createTime |
| | | from employee_role_type |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.EmployeeRoleType" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.EmployeeRoleType" parameterType="java.lang.Object" > |
| | | select |
| | | id,name,uniqueStr,isUp,isDel,createTime |
| | | from employee_role_type |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.EmployeeRoleType"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.EmployeeRoleType"> |
| | | update employee_role_type |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.SysAdminAuthorityGroup"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.SysAdminAuthorityGroup"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into sys_admin_authority_group (id,name,tag,isDel,createTime) values (#{id},#{name},#{tag},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.SysAdminAuthorityGroup" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.SysAdminAuthorityGroup" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.SysAdminAuthorityGroup" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.SysAdminAuthorityGroup" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.SysAdminAuthorityGroup" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.SysAdminAuthorityGroup" parameterType="java.lang.Object" > |
| | | select |
| | | id,name,tag,isDel,createTime |
| | | from sys_admin_authority_group |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.SysAdminAuthorityGroup" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.SysAdminAuthorityGroup" parameterType="java.lang.Object" > |
| | | select |
| | | id,name,tag,isDel,createTime |
| | | from sys_admin_authority_group |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.SysAdminAuthorityGroup"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.SysAdminAuthorityGroup"> |
| | | update sys_admin_authority_group |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.SysAdminAuthority"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.SysAdminAuthority"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into sys_admin_authority (id,name,tag,gropId,gorpTag,isDel,createTime) values (#{id},#{name},#{tag},#{gropId},#{gorpTag},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.SysAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.SysAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.SysAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.SysAdminAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.SysAdminAuthority" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.SysAdminAuthority" parameterType="java.lang.Object" > |
| | | select |
| | | id,name,tag,gropId,gorpTag,isDel,createTime |
| | | from sys_admin_authority |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.SysAdminAuthority" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.SysAdminAuthority" parameterType="java.lang.Object" > |
| | | select |
| | | id,name,tag,gropId,gorpTag,isDel,createTime |
| | | from sys_admin_authority |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.SysAdminAuthority"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.SysAdminAuthority"> |
| | | update sys_admin_authority |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.SysAdminRoleAuthority"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.SysAdminRoleAuthority"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into sys_admin_role_authority (id,sysAdAuId,sysAdRoId,isDel,createTime) values (#{id},#{sysAdAuId},#{sysAdRoId},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.SysAdminRoleAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.SysAdminRoleAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.SysAdminRoleAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.SysAdminRoleAuthority" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.SysAdminRoleAuthority" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.SysAdminRoleAuthority" parameterType="java.lang.Object" > |
| | | select |
| | | id,sysAdAuId,sysAdRoId,isDel,createTime |
| | | from sys_admin_role_authority |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.SysAdminRoleAuthority" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.SysAdminRoleAuthority" parameterType="java.lang.Object" > |
| | | select |
| | | id,sysAdAuId,sysAdRoId,isDel,createTime |
| | | from sys_admin_role_authority |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.SysAdminRoleAuthority"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.SysAdminRoleAuthority"> |
| | | update sys_admin_role_authority |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phip.model.SystemParameter"> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.SystemParameter"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into system_parameter (id,paramName,paramValue,paramValue1,isDel,createTime) values (#{id},#{paramName},#{paramValue},#{paramValue1},#{isDel},#{createTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phip.model.SystemParameter" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectList" resultType="com.hx.phiappt.model.SystemParameter" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phip.model.SystemParameter" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.SystemParameter" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phip.model.SystemParameter" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.SystemParameter" parameterType="java.lang.Object" > |
| | | select |
| | | id,paramName,paramValue,paramValue1,isDel,createTime |
| | | from system_parameter |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phip.model.SystemParameter" parameterType="java.lang.Object" > |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.SystemParameter" parameterType="java.lang.Object" > |
| | | select |
| | | id,paramName,paramValue,paramValue1,isDel,createTime |
| | | from system_parameter |
| | |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phip.model.SystemParameter"> |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.SystemParameter"> |
| | | update system_parameter |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | |
| | | |
| | | import com.hx.auto.GeneratorUtil; |
| | | import com.hx.auto.common.UrlData; |
| | | import com.hx.phip.model.Employee; |
| | | import com.hx.phiappt.model.*; |
| | | |
| | | /** |
| | | * 自动生成工具 |
| | |
| | | //生成全部的xml和mapper |
| | | //GeneratorUtil.generatorXmlAndMapper("com.hx.medical.model",urlData); |
| | | |
| | | Class<?> clas = Employee.class; |
| | | Class<?> clas = SystemParameter.class; |
| | | //dao |
| | | //GeneratorUtil.generatorDao(clas,urlData); |
| | | GeneratorUtil.generatorDao(clas,urlData); |
| | | //mapper |
| | | //GeneratorUtil.generatorMapper(clas, urlData); |
| | | GeneratorUtil.generatorMapper(clas, urlData); |
| | | // 生成service |
| | | //GeneratorUtil.generatorService(clas,urlData); |
| | | GeneratorUtil.generatorTableByPackUrl("com.hx.medical.model.Employee",urlData); |
| | | //GeneratorUtil.generatorTableByPackUrl("com.hx.medical.model.Employee",urlData); |
| | | |
| | | /*Class cl = TestM2.class; |
| | | Field[] fields = cl.getDeclaredFields(); |
File was renamed from phi_platform_user/src/main/java/com/hx/phip/MedicalUserApplication.java |
| | |
| | | import org.springframework.boot.web.servlet.ServletComponentScan; |
| | | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
| | | import org.springframework.context.annotation.ComponentScan; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | |
| | | @SpringBootApplication |
| | | @MapperScan({"com.gitee.sunchenbin.mybatis.actable.dao.*","com.hx.medical.dao.*"}) |
| | | @ComponentScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*","com.hx.movie.config","com.hx.common.config","com.hx.medical.*","com.hx.common.service.impl","com.hx.redis"},nameGenerator = UniqueNameGenerator.class) |
| | | @MapperScan({"com.gitee.sunchenbin.mybatis.actable.dao.*","com.hx.phip.dao.*"}) |
| | | @ComponentScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*","com.hx.phip.*","com.hx.common.service.impl","com.hx.redis"},nameGenerator = UniqueNameGenerator.class) |
| | | @ServletComponentScan |
| | | //@EnableScheduling |
| | | public class MedicalUserApplication extends SpringBootServletInitializer implements CommandLineRunner { |
| | | public class PhiPlatformUserApplication extends SpringBootServletInitializer implements CommandLineRunner { |
| | | |
| | | public static void main(String[] args) { |
| | | |
| | | //获取项目部署路径 |
| | | String jarWholePath = MedicalUserApplication.class.getProtectionDomain().getCodeSource().getLocation().getFile(); |
| | | String jarWholePath = PhiPlatformUserApplication.class.getProtectionDomain().getCodeSource().getLocation().getFile(); |
| | | /*try { |
| | | jarWholePath = java.net.URLDecoder.decode(jarWholePath, "UTF-8"); |
| | | System.setProperty("address.jarWholePath", jarWholePath); |
| | |
| | | |
| | | //设置配置文件项加密密钥(放在这里使加密密钥和密文分开) |
| | | System.setProperty("jasypt.encryptor.password", AesUtil.SECRET); |
| | | SpringApplication.run(MedicalUserApplication.class, args); |
| | | SpringApplication.run(PhiPlatformUserApplication.class, args); |
| | | } |
| | | |
| | | @Override |
| | | protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { |
| | | return builder.sources(MedicalUserApplication.class); |
| | | return builder.sources(PhiPlatformUserApplication.class); |
| | | } |
| | | |
| | | @Override |
New file |
| | |
| | | package com.hx.phip; |
| | | |
| | | import com.hx.util.AesUtil; |
| | | import org.jasypt.util.text.BasicTextEncryptor; |
| | | |
| | | public class Rsa { |
| | | public static void main(String[] args) { |
| | | //配置文件数据加密 |
| | | BasicTextEncryptor encryptor = new BasicTextEncryptor(); |
| | | encryptor.setPassword(AesUtil.SECRET); |
| | | String encrypted = encryptor.encrypt("UYWoCz#4^@w5Soj*"); |
| | | System.out.println(encrypted); |
| | | //解密 |
| | | //String decrypt = encryptor.decrypt("uFESkQwpAXSxg0SUR6BOlTujZqFC3pfIi3eTfuP0Lmrd0fqxG5XC4X0ho0Sp2FEV"); |
| | | //System.out.println("decrypt:"+decrypt); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | import com.hx.common.dao.CommonDao; |
| | | import com.hx.common.service.CommonService; |
| | | import com.hx.medical.model.BaseEntity; |
| | | import com.hx.medical.model.SystemParameter; |
| | | import com.hx.mp.util.CorpMpUtil; |
| | | import com.hx.mybatisTool.SqlSentence; |
| | | import com.hx.phiappt.model.BaseEntity; |
| | | import com.hx.phiappt.model.SystemParameter; |
| | | import com.hx.phip.dao.mapper.SystemParameterMapper; |
| | | import com.hx.util.StringUtils; |
| | | import net.sf.json.JSONObject; |
| | |
| | | package com.hx.phip.interceptor; |
| | | |
| | | import com.hx.common.BaseController; |
| | | import com.hx.medical.util.RSAUtil; |
| | | import com.hx.resultTool.ResponseCode; |
| | | import com.hx.resultTool.Result; |
| | | import com.hx.util.HttpServletRequestUtil; |
| | | import com.hx.util.StringUtils; |
| | | import com.platform.resultTool.PlatformCode; |
| | | import com.platform.resultTool.PlatformResult; |
| | | import com.platform.verification.VerificationTool; |
| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.context.request.RequestAttributes; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 前端设计一拦截器 |
| | |
| | | package com.hx.phip.service; |
| | | |
| | | import com.hx.phip.model.SystemParameter; |
| | | import com.hx.mybatisTool.SqlSentence; |
| | | import com.hx.phiappt.model.SystemParameter; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | package com.hx.phip.service.impl; |
| | | |
| | | import com.hx.exception.TipsException; |
| | | import com.hx.phiappt.model.SystemParameter; |
| | | import com.hx.phip.dao.mapper.SystemParameterMapper; |
| | | import com.hx.phip.model.SystemParameter; |
| | | import com.hx.phip.service.SystemParameterService; |
| | | import com.hx.mybatisTool.SqlSentence; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | #\u8BBE\u7F6E\u6570\u636E\u5E93\u8FDE\u63A5 |
| | | spring.datasource.url=jdbc:mysql://localhost:3306/medical?useUnicode=true&characterEncoding=UTF-8 |
| | | spring.datasource.username=root |
| | | spring.datasource.password=admin |
| | | spring.datasource.password=root |
| | | spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
| | | |
| | | #\u8BBE\u7F6E\u76D1\u63A7\u8D26\u53F7 |
| | |
| | | # Redis\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u04F6\u02FF\uFFFD |
| | | spring.redis.port=6379 |
| | | # Redis\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uB8E8\u012C\uFFFD\uFFFD\u03AA\uFFFD\u0563\uFFFD |
| | | spring.redis.password=UYWoCz#4^@w5Soj* |
| | | spring.redis.password= |
| | | # \uFFFD\uFFFD\uFFFD\u04F3\uFFFD\u02B1\u02B1\uFFFD\u48E8\uFFFD\uFFFD\uFFFD\uB8E9 |
| | | spring.redis.timeout=1000 |