mybatis 中map作为参数

public interface ICodeGenDao extends IBaseDao {

    /***
     * 生成主编码
     * @param paraMaps
     * @throws Exception
     */
    void updateMainCode(Map paraMaps) throws Exception;
}
@Repository
public class CodeGenDao extends BaseDao implements ICodeGenDao {

    /***
     * 生成主编码
     * @param paraMaps
     * @throws Exception
     */
    @Override
    public void updateMainCode(Map paraMaps) throws Exception {
        update("addMainCode", paraMaps);
    }
}

        UPDATE
        T_ASSETS_ALLOCATION SET
        MAIN_CODE=#{mainCode} ,
        MAIN_CODE_STATUS=#{mainCodeStatus},
        IF_PRINT=#{ifPrint},
        IF_ALLOCATION=#{ifAllocation},
        ASSETS_STATUS=NULL
        where id = #{id}
    

        id="AssetsAllocationQueryEntity">
    

 

转载于:https://www.cnblogs.com/acme6/p/9003747.html

你可能感兴趣的:(mybatis 中map作为参数)