保存进度!
This commit is contained in:
parent
2a92179adf
commit
83be988941
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"java.configuration.updateBuildConfiguration": "automatic",
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
"java.compile.nullAnalysis.mode": "automatic",
|
"java.compile.nullAnalysis.mode": "automatic",
|
||||||
"vue.codeActions.enabled": false
|
"vue.codeActions.enabled": false,
|
||||||
|
"java.debug.settings.onBuildFailureProceed": true
|
||||||
}
|
}
|
@ -9,3 +9,21 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
package com.cpic.xim.utils.archievement;
|
package com.cpic.xim.utils.archievement;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import org.apache.ibatis.session.SqlSession;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import com.cpic.xim.mybatis.mapper.ArchievementMapper;
|
||||||
|
import com.cpic.xim.mybatis.pojo.MensualArchievementItem;
|
||||||
|
import com.cpic.xim.mybatis.utils.MybatisUtils;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
public class CallerArchievement
|
||||||
|
{
|
||||||
|
private static Logger logger = LoggerFactory.getLogger(CallerArchievement.class);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -11,7 +11,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="getCallerArchievement" statementType="CALLABLE" parameterType="java.util.HashMap">
|
<select id="getCallerArchievement" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||||
call telsale_archievement_pkg.caller_archievement(
|
call telsale_archievement_pkg.caller_archievement(
|
||||||
#{a_department_code, mode=IN, jdbcType=VARCHAR},
|
#{a_caller_code, mode=IN, jdbcType=VARCHAR},
|
||||||
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
|
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
|
||||||
#{a_renewal_rate, mode=OUT, jdbcType=VARCHAR},
|
#{a_renewal_rate, mode=OUT, jdbcType=VARCHAR},
|
||||||
#{a_total, mode=OUT, jdbcType=INTEGER, javaType=Integer},
|
#{a_total, mode=OUT, jdbcType=INTEGER, javaType=Integer},
|
||||||
|
@ -85,14 +85,31 @@ public class DesktopArchievementTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void testCallerArchievement() throws IOException
|
@Test
|
||||||
|
public void testCallerArchievement()
|
||||||
{
|
{
|
||||||
SqlSession session = MybatisUtils.getSqlSession();
|
try
|
||||||
ArchievementMapper mapper = session.getMapper( ArchievementMapper.class );
|
{
|
||||||
|
SqlSession session = MybatisUtils.getSqlSession();
|
||||||
|
ArchievementMapper mapper = session.getMapper( ArchievementMapper.class );
|
||||||
|
|
||||||
ArrayList<MensualArchievementItem> mensual = null;
|
ArrayList<MensualArchievementItem> mensual = null;
|
||||||
HashMap<String, Object> params = new HashMap<>();
|
HashMap<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
params.put("a_caller_code", "5500065875");
|
params.put( "a_caller_code", "5500065875" );
|
||||||
|
|
||||||
|
mapper.getCallerArchievement( params );
|
||||||
|
|
||||||
|
mensual = (ArrayList<MensualArchievementItem>) params.get( "a_mensual_cur" );
|
||||||
|
|
||||||
|
System.out.println( params.toString() );
|
||||||
|
System.out.println( mensual.toString() );
|
||||||
|
|
||||||
|
assertTrue( params.size() > 1 );
|
||||||
|
}
|
||||||
|
catch ( IOException error )
|
||||||
|
{
|
||||||
|
assert (false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user