123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="net.chenlin.dp.modules.sys.dao.TestU8Mapper">
-
- <select id="testAll" resultType="int">
- SELECT
- count(1)
- FROM
- AA_Bank
- </select>
- <select id="callGetMaxCode" parameterType="map" statementType="CALLABLE" resultType="int">
- {
- call getMaxCode(
- #{StuNo, mode=IN, jdbcType=VARCHAR}
- )
- }
- </select>
- <select id="callProductIn" parameterType="map" statementType="CALLABLE">
- {
- call product_In(
- #{upTime, mode=IN, jdbcType=VARCHAR}
- )
- }
- </select>
- <select id="callProMaxClassIn" parameterType="map" statementType="CALLABLE">
- {
- call ProMaxClass_In
- }
- </select>
- <select id="callProMinClassIn" parameterType="map" statementType="CALLABLE">
- {
- call ProMinClass_In
- }
- </select>
- <select id="callCurrentStockJiangSu" parameterType="map" statementType="CALLABLE">
- {
- call CurrentStock_jiangSu
- }
- </select>
- <select id="callCurrentStockShanDong" parameterType="map" statementType="CALLABLE">
- {
- call CurrentStock_shanDong
- }
- </select>
- <select id="callSaleBack" parameterType="map" statementType="CALLABLE">
- {
- call sale_Back
- }
- </select>
- <select id="selectView" resultType="net.chenlin.dp.modules.sys.entity.SyViewEntity">
- select oa_Id as oaId from sy_view
- where DATE_FORMAT(create_time,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d')
- and table_type = #{tableType}
- </select>
- <select id="selectViewByError" resultType="net.chenlin.dp.modules.sys.entity.SyViewEntity">
- select oa_Id as oaId from sy_view
- where DATE_FORMAT(create_time,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') and sy_state = "error"
- and table_type = #{tableType}
- </select>
- <select id="selectViewByTrue" resultType="net.chenlin.dp.modules.sys.entity.SyViewEntity">
- select oa_Id as oaId from sy_view
- where DATE_FORMAT(create_time,'%Y-%m-%d') >= DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 10 DAY),'%Y-%m-%d')
- and sy_state = "true" and table_type = #{tableType}
- </select>
- <insert id="save">
- INSERT INTO sy_view (
- oa_id,
- oa_nid,
- par_type,
- account_code,
- dept_name,
- dept_code,
- job_number,
- create_time,
- sy_message,
- sy_state,
- table_type
- )
- VALUES (
- #{oaId},
- #{oaNid},
- #{parType},
- #{accountCode},
- #{deptName},
- #{deptCode},
- #{jobNumber},
- now(),
- #{syMessage},
- #{syState},
- #{tableType}
- )
- </insert>
- </mapper>
|